cancel
Showing results for 
Search instead for 
Did you mean: 

observable

observable

Hello,

I am using magento2, porto theme

every time i load the checkout page, i get a javascript alert with the message below.

i did not change anything, it suddenly appeared, all i did was i added some labels in ko template such as: <strong>name</strong> <!-- ko text: address().firstname -->

and it was working fine, then after a while the strong tag disappeared and i started getting this JS alert. no idea if they are related.

The JS alert is the following:

 

function observable() {
if (arguments.length > 0) {
// Write

// Ignore writes if the value hasn't changed
if (observable.isDifferent(_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;
}
}

 

 

1 REPLY 1

Re: observable

Hi @eaad,

 

Are you getting the same error using the default theme (Luma)?