Skip to content

Instantly share code, notes, and snippets.

@MikeLarned
Created January 17, 2012 04:33
Show Gist options
  • Save MikeLarned/1624689 to your computer and use it in GitHub Desktop.
Save MikeLarned/1624689 to your computer and use it in GitHub Desktop.
Require JS - Module for Backbone, Underscore and Jquery
define(['jquery', 'underscore', 'backbone'], function ($, _, Backbone) {
var initialize = function () {
User = Backbone.Model.extend({
initialize: function () {
alert("New User " + this.get("name"));
}
});
var user1 = new User({ name: "Mike" });
};
return {
initialize: initialize
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment