diff --git a/core/misc/states.js b/core/misc/states.js index b007b70..e61e1bd 100644 --- a/core/misc/states.js +++ b/core/misc/states.js @@ -159,6 +159,9 @@ state = states.State.sanitize(state); + // Initialize the value of this state. + this.values[selector][state.name] = null; + // Monitor state changes of the specified state for this dependee. $(selector).on('state:' + state, {selector: selector, state: state}, stateEventHandler);