https://bugzilla.wikimedia.org/show_bug.cgi?id=73011

--- Comment #4 from Krinkle <[email protected]> ---
(In reply to Mayank Tiwari from comment #3)
> So you mean to say I shall write it like
> 
> mw.testFunction() = function(){ };
> 
> or say
> 
> mw.testFunction = function(a,b){ return a+b; };
> 
> It won't cost me referenceError in ResourceLoader ?

Indeed. Though I'd recommend grouping them in a container, e.g.

mw.myApp = {};
mw.myApp.testFunction = function(){
};
mw.myApp.testFunction2 = function(){
};

// Or:
mw.myApp = {
  testFunction: function(){
  },
  testFunction2: function(){
  }
};

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to