src/jquery.lory.js
/* globals jQuery */
import {lory} from './lory.js';
function init ($) {
$.fn.lory = function (options) {
return this.each(function () {
var instanceOptions;
if (!$.data(this, 'lory')) {
instanceOptions = $.extend({}, options, $(this).data());
$.data(this, 'lory', lory(this, instanceOptions));
}
});
};
};
if (typeof (jQuery) !== 'undefined') {
init(jQuery);
}