×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Javascript
Posted by: Isaac Dettman
Added: Nov 7, 2016 7:57 PM
Modified: Nov 7, 2016 7:58 PM
Views: 6
UMD Wrapper
  1. // @dependencies : $, eol.utils.js
  2.  
  3. (function (root, factory) {
  4.     // CommonJS / Node Env
  5.     if (typeof module === 'object' && module.exports) {
  6.                 module.exports = factory(require('jquery'), require('../../eol.utils').getUserAgentInfo);
  7.     }
  8.     else {
  9.                 factory(root.$, root.eol.utils.getUserAgentInfo);
  10.     }
  11. }(this, function ($, getUserAgentInfo) {
  12.  
  13.  
  14.        
  15.  
  16. }));