Created
December 2, 2010 21:54
-
-
Save texel/726144 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setStatus : function ( status ) { | |
var triggerChange = this.get("status") == status; | |
this.set({status: status}); | |
if (triggerChange) | |
this.trigger("change:status", this, status); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.set({status: status, forceChange: true}); | |
this.set({status: status, silent: true}); | |
this.trigger("change:status", this, status); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment