Last active
August 29, 2015 14:03
-
-
Save 44uk/ecbe709bcd2ad962b5db 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
;(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