Skip to content

Instantly share code, notes, and snippets.

@reedling78
Last active August 29, 2015 14:27
Show Gist options
  • Save reedling78/095a6fcbb110fb5a9afa to your computer and use it in GitHub Desktop.
Save reedling78/095a6fcbb110fb5a9afa to your computer and use it in GitHub Desktop.
Backboneview AMD
/*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