can-map.js
function (attr, how, newVal, oldVal, batchNum) {
			canQueues.batch.start();
			if(bubble.isBubbling(this, "change")) {
				canEvent.dispatch.call(this, {
					type: "change",
					target: this,
					batchNum: batchNum
				}, [attr, how, newVal, oldVal]);

			}

			canEvent.dispatch.call(this, {
				type: attr,
				target: this,
				batchNum: batchNum,
				patches: [{type: "set", key: attr, value: newVal}]
			}, [newVal, oldVal]);

			if(how === "remove" || how === "add") {
				canEvent.dispatch.call(this, {
					type: "__keys",
					target: this,
					batchNum: batchNum
				});
			}

			canQueues.batch.stop();
		}
function (attr, how, newVal, oldVal, batchNum) {
			canQueues.batch.start();
			if(bubble.isBubbling(this, "change")) {
				canEvent.dispatch.call(this, {
					type: "change",
					target: this,
					batchNum: batchNum
				}, [attr, how, newVal, oldVal]);

			}

			canEvent.dispatch.call(this, {
				type: attr,
				target: this,
				batchNum: batchNum,
				patches: [{type: "set", key: attr, value: newVal}]
			}, [newVal, oldVal]);

			if(how === "remove" || how === "add") {
				canEvent.dispatch.call(this, {
					type: "__keys",
					target: this,
					batchNum: batchNum
				});
			}

			canQueues.batch.stop();
		}
function ( attr , how , newVal , oldVal , batchNum ) { canQueues . batch . start ( ) ; if ( bubble . isBubbling ( this , "change" ) ) { canEvent . dispatch . call ( this , { type : "change" , target : this , batchNum : batchNum } , [ attr , how , newVal , oldVal ] ) ; } canEvent . dispatch . call ( this , { type : attr , target : this , batchNum : batchNum , patches : [ { type : "set" , key : attr , value : newVal } ] } , [ newVal , oldVal ] ) ; if ( how === "remove" || how === "add" ) { canEvent . dispatch . call ( this , { type : "__keys" , target : this , batchNum : batchNum } ) ; } canQueues . batch . stop ( ) ; }
### _triggerChange A helper function used to trigger events on this map. If the map is bubbling, this will fire a change event. Otherwise, it only fires a "named" event. Triggers a "__keys" event if a property has been added or removed.
### _triggerChange A helper function used to trigger events on this map . If the map is bubbling this will fire a change event . Otherwise it only fires a named event . Triggers a __keys event if a property has been added or removed .