Skip to content
This repository was archived by the owner on Jul 28, 2021. It is now read-only.

Commit 2645af5

Browse files
author
Tomek
committed
Merge branch 'master' of https://github.com/galuszkak/djangodash
2 parents 83e19c6 + a9c5434 commit 2645af5

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

game/static/js/game.js

+10-8
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
var canvas = new fabric.Canvas('gamecanvas');
88

99

10-
const HIDDEN = 0;
11-
const SHOWN = 2;
10+
var HIDDEN = 0;
11+
var SHOWN = 2;
1212

1313
function Tile(id, locLeft, locTop, size, canvas) {
1414

@@ -215,19 +215,21 @@ function Game(sizeX, sizeY, canvas) {
215215
var target = obj.callbackTiles[options.target['id']];
216216

217217
if (target && obj.isCallbackEnabled) {
218-
target.toggle();
218+
target.show();
219219
}
220220
}
221221
});
222222

223-
this._preparePictures = function () {
224-
var p = obj.pictures;
225-
p[p.length] = 'https://si0.twimg.com/profile_images/1144713032/Red_Star_Stamp.jpg';
226-
p[p.length] = '';
227-
};
223+
this._preparePictures();
228224

229225
}
230226

227+
Game.prototype._preparePictures = function () {
228+
var p = obj.pictures;
229+
p[p.length] = 'https://si0.twimg.com/profile_images/1144713032/Red_Star_Stamp.jpg';
230+
p[p.length] = '';
231+
};
232+
231233

232234
function sampleFill(canvas) {
233235

0 commit comments

Comments
 (0)