Created
November 7, 2012 13:40
-
-
Save rmurphey/4031632 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
define([ 'jquery' ], function($) { | |
var MyPlugin = function(domNode) { | |
$(domNode).html('foo'); | |
}; | |
$.fn.myPlugin = function() { | |
new MyPlugin( this ); | |
}; | |
return MyPlugin; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment