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

why is.js require itself #125

Closed
BoltDoggy opened this issue May 10, 2015 · 2 comments
Closed

why is.js require itself #125

BoltDoggy opened this issue May 10, 2015 · 2 comments

Comments

@BoltDoggy
Copy link

why is.js require itself.

if(typeof define === 'function' && define.amd) {
    // AMD. Register as an anonymous module.
    define(['is'], function(is) {
        // Also create a global in case some scripts
        // that are loaded still are looking for
        // a global even when an AMD loader is in use.
        return (root.is = factory(is));
    });
} else if(typeof exports === 'object') {
    // Node. Does not work with strict CommonJS, but
    // only CommonJS-like enviroments that support module.exports,
    // like Node.
    module.exports = factory(require('is_js'));
} else {
    // Browser globals (root is window)
    root.is = factory(root.is);
}
@rubenspgcavalcante
Copy link

Related to #100, problems with circular dependency

@arasatasaygin
Copy link
Owner

This issue is resolved with #138

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

3 participants