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

requirejs compatibility #34

Open
lacmuch opened this issue Feb 16, 2017 · 0 comments
Open

requirejs compatibility #34

lacmuch opened this issue Feb 16, 2017 · 0 comments

Comments

@lacmuch
Copy link

lacmuch commented Feb 16, 2017

If you change the last line with these:

if (typeof define === 'function' && define.amd) {
define([], function() { return InputMask });
} else if (typeof exports === 'object') {
module.exports = InputMask;
}

...it can be used with requirejs

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

No branches or pull requests

1 participant