Fixed flippable doctest.

This commit is contained in:
2019-10-02 14:09:09 +02:00
parent b4bc200fbd
commit 7dd7142455
4 changed files with 4 additions and 4 deletions
+1 -1
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})
})
+1 -1
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) {