Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_eventTeardown: function () {
callCanReadingOnIdRead = false;
this.constructor.connection.deleteInstanceReference(this);
callCanReadingOnIdRead = true;
return CanMap.prototype._eventTeardown.apply(this, arguments);
},
// Change the behavior of `___set` to account for the store.
_eventSetup: function () {
// this should not call reading
callCanReadingOnIdRead = false;
this.constructor.connection.addInstanceReference(this);
callCanReadingOnIdRead = true;
return CanMap.prototype._eventSetup.apply(this, arguments);
},
_eventTeardown: function () {