diff --git a/javascript/state.constants.js b/javascript/state.constants.js index dd94fd9..8a954a6 100644 --- a/javascript/state.constants.js +++ b/javascript/state.constants.js @@ -1,4 +1,5 @@ window.state = window.state || {}; +state = window.state; state.constants = { LS_PREFIX: 'state-' diff --git a/javascript/state.core.js b/javascript/state.core.js index f9f45ee..ac2e7ef 100644 --- a/javascript/state.core.js +++ b/javascript/state.core.js @@ -1,4 +1,5 @@ window.state = window.state || {}; +state = window.state; state.core = (function () { diff --git a/javascript/state.ext.control-net.js b/javascript/state.ext.control-net.js index ff2096d..65c9b89 100644 --- a/javascript/state.ext.control-net.js +++ b/javascript/state.ext.control-net.js @@ -1,5 +1,6 @@ window.state = window.state || {}; window.state.extensions = window.state.extensions || {}; +state = window.state; state.extensions['control-net'] = (function () { diff --git a/javascript/state.store.js b/javascript/state.store.js index 6d315e6..eb1a58b 100644 --- a/javascript/state.store.js +++ b/javascript/state.store.js @@ -1,4 +1,5 @@ window.state = window.state || {}; +state = window.state; state.Store = function Store (prefix) { this.prefix = state.constants.LS_PREFIX + (prefix ? prefix + '-' : ''); diff --git a/javascript/state.utils.js b/javascript/state.utils.js index 2a1d1aa..e2a1f8f 100644 --- a/javascript/state.utils.js +++ b/javascript/state.utils.js @@ -1,4 +1,5 @@ window.state = window.state || {}; +state = window.state; state.utils = { triggerEvent: function triggerEvent(element, event) {