Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
semmel opened this issue Mar 27, 2016 · 1 comment
Open

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

semmel opened this issue Mar 27, 2016 · 1 comment
Labels

Comments

@semmel
Copy link

semmel commented Mar 27, 2016

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
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants