Skip to content

Instantly share code, notes, and snippets.

@texel
Created December 2, 2010 21:54
Show Gist options
  • Save texel/726144 to your computer and use it in GitHub Desktop.
Save texel/726144 to your computer and use it in GitHub Desktop.
setStatus : function ( status ) {
var triggerChange = this.get("status") == status;
this.set({status: status});
if (triggerChange)
this.trigger("change:status", this, status);
}
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