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

CommonJS + global compatibility #7

Open
jonbri opened this issue Apr 14, 2016 · 0 comments
Open

CommonJS + global compatibility #7

jonbri opened this issue Apr 14, 2016 · 0 comments

Comments

@jonbri
Copy link
Owner

jonbri commented Apr 14, 2016

Detect if in an environment like NodeJS where ticker-log will be used as an NPM module, or loaded like jQuery often is where it just exposes a global variable.

Something like this: https://github.com/jquery/jquery/blob/master/src/wrapper.js

also see: http://sinonjs.org/releases/sinon-1.17.3.js for an example

@jonbri jonbri closed this as completed Sep 26, 2016
@jonbri jonbri changed the title require.js compatible CommonJS + global compatibility Jan 12, 2017
@jonbri jonbri reopened this Jan 12, 2017
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