Added shortcuts

pull/11/head
ilian.iliev 2023-03-30 16:11:31 +03:00
parent cc862ce437
commit 445566709d
5 changed files with 5 additions and 0 deletions

View File

@ -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-'

View File

@ -1,4 +1,5 @@
window.state = window.state || {}; window.state = window.state || {};
state = window.state;
state.core = (function () { state.core = (function () {

View File

@ -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 () {

View File

@ -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 + '-' : '');

View File

@ -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) {