Last active
December 24, 2015 17:49
-
-
Save kovaldn/5611608 to your computer and use it in GitHub Desktop.
Javascript: backbone
This file contains hidden or 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
/* | |
* BACKBONE | |
*/ | |
// VIEW | |
define([ | |
'jquery', | |
'backbone', | |
'text!..template.php' | |
], function($, Backbone, Tpl) { | |
var SomeView = Backbone.View.extend({ | |
initialize: function() {}, | |
el: $(''), | |
render: function () { | |
$('').append(Tpl); | |
}, | |
events: { | |
'click .some' : 'someFun' | |
}, | |
somefun: function () {} | |
}); | |
return SomeView; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment