Sha256: 875081f250c4b60b71fe75f5735fa6338c47ee899d3799773f1b7ab804570642
Contents?: true
Size: 884 Bytes
Versions: 6
Compression:
Stored size: 884 Bytes
Contents
/** * vis.js module imports */ // Try to load dependencies from the global window object. // If not available there, load via require. var moment = (typeof window !== 'undefined') && window['moment'] || require('moment'); var Emitter = require('emitter-component'); var Hammer; if (typeof window !== 'undefined') { // load hammer.js only when running in a browser (where window is available) Hammer = window['Hammer'] || require('hammerjs'); } else { Hammer = function () { throw Error('hammer.js is only available in a browser, not in node.js.'); } } var mousetrap; if (typeof window !== 'undefined') { // load mousetrap.js only when running in a browser (where window is available) mousetrap = window['mousetrap'] || require('mousetrap'); } else { mousetrap = function () { throw Error('mouseTrap is only available in a browser, not in node.js.'); } }
Version data entries
6 entries across 6 versions & 1 rubygems