You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I haven't managed to produce a simple reproduction, but I have had an issue when merely including the localStorage plugin in the scripts section, underneath Knockout 3.0.0.
The issue manifests itself by outputting the observable function code, e.g.
function observable() { if (arguments.length > 0) { // Write // Ignore writes if the value hasn't changed if (!observable['equalityComparer'] || !observable['equalityComparer'](_latestValue, arguments[0])) { observable.valueWillMutate(); _latestValue = arguments[0]; if (DEBUG) observable._latestValue = _latestValue; observable.valueHasMutated(); } return this; // Permits chained assignments } else { // Read ko.dependencyDetection.registerDependency(observable); // The caller only needs to be notified of changes if they did a "read" operation return _latestValue; } }
instead of the observable value.
This occurs even with a simple text binding, e.g.
<span data-bind="text: myObservable"></span>
If I remove the knockout.localStorage.js file, then the bindings work as expected.
Any ideas why this might be happening?
The text was updated successfully, but these errors were encountered:
I haven't managed to produce a simple reproduction, but I have had an issue when merely including the localStorage plugin in the scripts section, underneath Knockout 3.0.0.
The issue manifests itself by outputting the observable function code, e.g.
instead of the observable value.
This occurs even with a simple text binding, e.g.
If I remove the knockout.localStorage.js file, then the bindings work as expected.
Any ideas why this might be happening?
The text was updated successfully, but these errors were encountered: