Skip to content

Instantly share code, notes, and snippets.

@jurberg
Created February 27, 2013 03:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jurberg/5044824 to your computer and use it in GitHub Desktop.
Save jurberg/5044824 to your computer and use it in GitHub Desktop.
define('view/person', ['domain/person', 'jQuery', 'window'], function(Person, $, Win) {
var person = Person.createPerson();
return {
showPerson: function() {
$('#person-div').html(person.name);
Win.alert('Person updated!');
}
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment