Skip to content

Commit

Permalink
Added shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
ilian-iliev-io committed Mar 30, 2023
1 parent cc862ce commit 4455667
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions javascript/state.constants.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
window.state = window.state || {};
state = window.state;

state.constants = {
LS_PREFIX: 'state-'
Expand Down
1 change: 1 addition & 0 deletions javascript/state.core.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
window.state = window.state || {};
state = window.state;

state.core = (function () {

Expand Down
1 change: 1 addition & 0 deletions javascript/state.ext.control-net.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
window.state = window.state || {};
window.state.extensions = window.state.extensions || {};
state = window.state;

state.extensions['control-net'] = (function () {

Expand Down
1 change: 1 addition & 0 deletions javascript/state.store.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
window.state = window.state || {};
state = window.state;

state.Store = function Store (prefix) {
this.prefix = state.constants.LS_PREFIX + (prefix ? prefix + '-' : '');
Expand Down
1 change: 1 addition & 0 deletions javascript/state.utils.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
window.state = window.state || {};
state = window.state;

state.utils = {
triggerEvent: function triggerEvent(element, event) {
Expand Down

0 comments on commit 4455667

Please sign in to comment.