Hi, when I simply include dist/browser/overload.js of v. 0.5.1 via HTML script tag no overload function gets added to the global window object. Though the prototypes of Number, Function, Object ect. all get the double underscore operator methods.
I'd like to use the operator-overloading in my projects organized as AMD modules. To create an AMD module I could wrap the scripts in dist/browser, but no luck so far.
Version 0.4.4 from Bower Components is still usable in a browser environment, because it is based upon Function.prototype.enableOverloading and not on exported functions.
Hi, when I simply include
dist/browser/overload.jsofv. 0.5.1via HTML script tag nooverloadfunction gets added to the globalwindowobject. Though the prototypes ofNumber,Function,Objectect. all get the double underscore operator methods.I'd like to use the operator-overloading in my projects organized as AMD modules. To create an AMD module I could wrap the scripts in
dist/browser, but no luck so far.Version
0.4.4from Bower Components is still usable in a browser environment, because it is based uponFunction.prototype.enableOverloadingand not on exported functions.