Fixed flippable doctest.

This commit is contained in:
Sebastian Kupke 2019-10-02 14:09:09 +02:00
parent b4bc200fbd
commit 7dd7142455
4 changed files with 4 additions and 4 deletions

2
dist/iwmlib.js vendored
View File

@ -4980,7 +4980,7 @@
scalable: this.scalable,
rotatable: this.rotatable,
overdoScaling: this.overdoScaling,
tapDelegate: this.tapDelegateFactory ? this.tapDelegateFactory(this.cardWrapper) : null
tapDelegate: this.tapDelegateFactory ? new this.tapDelegateFactory(this.cardWrapper) : null
});
if (this.center) {

2
dist/iwmlib.pixi.js vendored
View File

@ -8278,7 +8278,7 @@
scalable: this.scalable,
rotatable: this.rotatable,
overdoScaling: this.overdoScaling,
tapDelegate: this.tapDelegateFactory ? this.tapDelegateFactory(this.cardWrapper) : null
tapDelegate: this.tapDelegateFactory ? new this.tapDelegateFactory(this.cardWrapper) : null
});
if (this.center) {

View File

@ -73,7 +73,7 @@ if (Capabilities.supportsTemplate()) {
flipTemplate,
new ImageLoader('./examples/king.jpeg'),
new ImageLoader('./examples/women.jpeg'),
{ tapDelegateFactory: CardWrapper})
{ tapDelegateFactory: CardWrapper, preloadBack: true})
flip.load().then((flip) => {
flip.centerAt({ x: 150, y: 120})
})

View File

@ -274,7 +274,7 @@ export class DOMFlip {
scalable: this.scalable,
rotatable: this.rotatable,
overdoScaling: this.overdoScaling,
tapDelegate: this.tapDelegateFactory ? this.tapDelegateFactory(this.cardWrapper) : null
tapDelegate: this.tapDelegateFactory ? new this.tapDelegateFactory(this.cardWrapper) : null
})
if (this.center) {