Skip to content

Commit 16517ce

Browse files
committed
Create Function.call to apply the scope
1 parent 4832c65 commit 16517ce

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

v3/src/checksum.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
var CHECKSUM = {
2-
build: 'd362b9b0-08cd-11e7-b198-a589b735637e'
2+
build: 'd2bec270-08d6-11e7-bb54-f74c36707e05'
33
};
44
module.exports = CHECKSUM;

v3/src/state/GlobalStateManager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ GlobalStateManager.prototype = {
478478
create: function (state)
479479
{
480480
// console.log('create', state.sys.settings.key);
481+
// console.log(state);
481482

482483
// Insert at the correct index, or it just all goes wrong :)
483484

@@ -494,7 +495,7 @@ GlobalStateManager.prototype = {
494495

495496
if (state.create)
496497
{
497-
state.create(state.sys.settings.data);
498+
state.create.call(state, state.sys.settings.data);
498499
}
499500
},
500501

0 commit comments

Comments
 (0)