Hello there,

I am building a class in a namespace extending jQuery this way :

;(function($) {

  $.myNamespace = $.myNamespace || {};

  $.extend($.myNamespace, {

        myClass: function() {
                this.myPrivilegedFunction = function() { return myVar; }
                var myVar = 42;
        }

 });
})(jQuery);

Now I want to add myOtherPrivilegedFunction to myClass in a separate
file. Every attempt so far failed...
I just wonder if it's possible or if there is an alternative.

Thanks for your help : )

Reply via email to