Skip to content

Instantly share code, notes, and snippets.

@acelot
Created October 29, 2012 00:51
Show Gist options
  • Save acelot/3970757 to your computer and use it in GitHub Desktop.
Save acelot/3970757 to your computer and use it in GitHub Desktop.
define(
[
'app',
'backbone'
],
function (app, Backbone) {
'use strict';
return Backbone.View.extend({
template: 'select',
tagName: 'select',
initialize: function () {
this.collection.on('reset', function () {
this.render();
}, this);
}
});
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment