Created
January 17, 2012 04:33
-
-
Save MikeLarned/1624689 to your computer and use it in GitHub Desktop.
Require JS - Module for Backbone, Underscore and Jquery
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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