How to use the can-map.prototype function in can-map

To help you get started, we’ve selected a few can-map examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github canjs / can-connect / can / model / model.js View on Github external
_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.
github canjs / can-connect / can / model / model.js View on Github external
_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 () {

can-map

Observable Objects

MIT
Latest version published 3 years ago

Package Health Score

54 / 100
Full package analysis