codalien / operator-overloading-js

Simple Operator overloading library for JS.
160 stars 26 forks source link

No exported function overload in the browser using script tag #17

Open semmel opened 8 years ago

semmel commented 8 years ago

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.

kushal-likhi commented 5 years ago

Hey Apologies for late response, we are getting this project back to life with bigger collaborators team . : )

We will write couple of tests for these and get this resolved.