Skip to content

Instantly share code, notes, and snippets.

@kneath
Created August 26, 2010 22:03
Show Gist options
  • Save kneath/552345 to your computer and use it in GitHub Desktop.
Save kneath/552345 to your computer and use it in GitHub Desktop.
(function($){
$.fn.testPlugin = function(options){
var opts = $.extend({}, $.fn.testPlugin.defaults, options);
var insideFunction = function(){
alert('hi!')
}
$fn.testPlugin.callInsideFunction = insideFunction
return this.each(function(){
})
}
$.fn.testPlugin.defaults = {
}
})(jQuery);
// later...
$.fn.testPlugin.callInsideFunction()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment