Created
July 24, 2012 20:23
-
-
Save jccrosby/3172409 to your computer and use it in GitHub Desktop.
Backbone/Require View Module Definitions
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( | |
[ | |
// Template | |
'text!tpl/HomeView.tpl' | |
// Control | |
'realeyes/control/Dispatcher' | |
// Model | |
'realeyes/model/AppModel' | |
// View | |
'realeyes/view/HomeView.js' | |
// Util | |
], | |
function( template, dispatcher, appModel, HomeView ) { | |
var HomeView = Backbone.View.extend( { | |
// ===================================== | |
// Properties | |
// ===================================== | |
viewName: HomeView, // add a viewName prop | |
events: { | |
'click #myButton': 'onClickMyButton' | |
}, | |
// ===================================== | |
// Init | |
// ===================================== | |
initialize: function() { | |
} | |
// ===================================== | |
// Control Methods | |
// ===================================== | |
// ===================================== | |
// Handlers | |
// ===================================== | |
} | |
); | |
return HomeView; | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment