Skip to content

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

@semmel

Description

@semmel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions