Skip to content

Instantly share code, notes, and snippets.

@cowboy
Created January 8, 2010 20:41
Show Gist options
  • Save cowboy/272400 to your computer and use it in GitHub Desktop.
Save cowboy/272400 to your computer and use it in GitHub Desktop.
(function($){
var private1,
myNS = $.myNS = {},
method2;
$.myNS.method1 = function(){
private2();
};
$.myNS.method2 = method2 = function(){
return private1;
};
function private1() {
method2();
}
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment