UNPKG

@veams/plugin-dom

Version:

The VeamsDOM plugin is simple plugin for which you need to pass a DOM handler like jQuery. For some other plugins VeamsDOM is a requirement.

21 lines 654 B
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var VeamsDOM = { options: { DOM: null }, pluginName: '$', initialize: function (Veams, _a) { var DOM = _a.DOM; if (!DOM) { console.error('VeamsDOM :: You need to pass an options object with a DOM handler: options.DOM!'); return; } if (Veams.$) { console.log('VeamsDOM :: It seems that you have already defined a DOM handler. I am overwriting it now for you ;)'); } Veams.$ = this.options.DOM = DOM; } }; exports.default = VeamsDOM; //# sourceMappingURL=index.js.map