Created
September 4, 2013 13:51
-
-
Save eshiota/6437210 to your computer and use it in GitHub Desktop.
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
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")); |
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
<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