Last active
August 29, 2015 14:27
-
-
Save reedling78/095a6fcbb110fb5a9afa to your computer and use it in GitHub Desktop.
Backboneview AMD
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
/*globals window, document, define, $, Backbone, console, Modernizr, Fonts, alert*/ | |
define([], function () { | |
'use strict'; | |
Backbone.View.extend({ | |
el: $('body'), | |
initialize: function () { | |
console.log('View Initialized'); | |
}, | |
events: { | |
'click button': 'something' | |
}, | |
something: function () { | |
alert('something'); | |
} | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment