Skip to content

Instantly share code, notes, and snippets.

@eshiota
Created September 4, 2013 13:51
Module("MYAPP.modules.MyModule", function (MyModule) {
MyModule.fn.initialize = function (el) {
this.element = $(el);
this.select = this.element.find("[data-foo-select]");
}
});
var mymodule = new MYAPP.modules.MyModule($("#mymodule"));
<div id="mymodule">
<select data-foo-select>
<option></option>
</select>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment