Skip to content

Instantly share code, notes, and snippets.

@4bu
Created December 13, 2011 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save 4bu/1472552 to your computer and use it in GitHub Desktop.
Save 4bu/1472552 to your computer and use it in GitHub Desktop.
window.person = new Person;
var myCallback = function(personModel, enteredName) {
alert(‘Hello’ + enteredName);
};
person.bind('change:name', myCallback);
person.promptName();
@mrienstra
Copy link

Suggestion: change line 3: replace smart quotes with normal quotes, and add a space after 'Hello'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment