Created
November 12, 2013 03:23
-
-
Save zmmbreeze/7424946 to your computer and use it in GitHub Desktop.
module & define
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (typeof module === 'object' && module && typeof module.exports === 'object') { | |
// Node.js module pattern | |
module.exports = jQuery; | |
} else { | |
// AMD | |
if (typeof define === 'function' && define.amd) { | |
define('jquery-onscreen', [], function() { return jQuery; }); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment