Skip to content

Instantly share code, notes, and snippets.

@zkessin
Created September 9, 2012 14:50
Show Gist options
  • Save zkessin/3684824 to your computer and use it in GitHub Desktop.
Save zkessin/3684824 to your computer and use it in GitHub Desktop.
myModel.on("xyzzy", function () {
alert("XYZZY");
});
myModel.trigger("xyzzy");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment