Skip to content

Instantly share code, notes, and snippets.

@44uk
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 44uk/ecbe709bcd2ad962b5db to your computer and use it in GitHub Desktop.
Save 44uk/ecbe709bcd2ad962b5db to your computer and use it in GitHub Desktop.
;(function($) {
"use strict";
$.fn.name_space = function(options) {
var els = this;
var opts = $.extend({
// default option values
}, options);
els.each(function() {
var $this = $(this);
// merge data options
$.extend(opts, $this);
// do something
});
return this;
};
function _private_method(){
// private method
}
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment