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.js
ofv. 0.5.1
via HTML script tag nooverload
function gets added to the globalwindow
object. Though the prototypes ofNumber
,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 indist/browser
, but no luck so far.Version
0.4.4
from Bower Components is still usable in a browser environment, because it is based uponFunction.prototype.enableOverloading
and not on exported functions.