Added shortcuts
parent
cc862ce437
commit
445566709d
|
|
@ -1,4 +1,5 @@
|
||||||
window.state = window.state || {};
|
window.state = window.state || {};
|
||||||
|
state = window.state;
|
||||||
|
|
||||||
state.constants = {
|
state.constants = {
|
||||||
LS_PREFIX: 'state-'
|
LS_PREFIX: 'state-'
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
window.state = window.state || {};
|
window.state = window.state || {};
|
||||||
|
state = window.state;
|
||||||
|
|
||||||
state.core = (function () {
|
state.core = (function () {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
window.state = window.state || {};
|
window.state = window.state || {};
|
||||||
window.state.extensions = window.state.extensions || {};
|
window.state.extensions = window.state.extensions || {};
|
||||||
|
state = window.state;
|
||||||
|
|
||||||
state.extensions['control-net'] = (function () {
|
state.extensions['control-net'] = (function () {
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
window.state = window.state || {};
|
window.state = window.state || {};
|
||||||
|
state = window.state;
|
||||||
|
|
||||||
state.Store = function Store (prefix) {
|
state.Store = function Store (prefix) {
|
||||||
this.prefix = state.constants.LS_PREFIX + (prefix ? prefix + '-' : '');
|
this.prefix = state.constants.LS_PREFIX + (prefix ? prefix + '-' : '');
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
window.state = window.state || {};
|
window.state = window.state || {};
|
||||||
|
state = window.state;
|
||||||
|
|
||||||
state.utils = {
|
state.utils = {
|
||||||
triggerEvent: function triggerEvent(element, event) {
|
triggerEvent: function triggerEvent(element, event) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue