jigsawpuzzlegame 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jigsaw-puzzle-game.js +5 -0
- package/package.json +1 -1
package/jigsaw-puzzle-game.js
CHANGED
|
@@ -1895,6 +1895,11 @@ export class JigsawPuzzle {
|
|
|
1895
1895
|
if (!this.tmpImage.parentNode) {
|
|
1896
1896
|
this.puzzle.container.appendChild(this.tmpImage);
|
|
1897
1897
|
}
|
|
1898
|
+
// Call onReady callback when puzzle is ready (image loaded and displayed)
|
|
1899
|
+
// This is needed when loading from savedData since we skip state 10
|
|
1900
|
+
if (this.options.onReady) {
|
|
1901
|
+
this.options.onReady();
|
|
1902
|
+
}
|
|
1898
1903
|
this.state = 20;
|
|
1899
1904
|
break;
|
|
1900
1905
|
}
|