From 075c44b411fbc04e0fdbf485655ff696ca26c093 Mon Sep 17 00:00:00 2001 From: Brian Bolte Date: Fri, 26 May 2017 10:23:36 -0400 Subject: [PATCH] add missing ';' in lib/index.js, rebuild dist --- dist/index.js | 10 +++++++--- lib/index.js | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 420d967..27175c0 100644 --- a/dist/index.js +++ b/dist/index.js @@ -11,11 +11,15 @@ function _possibleConstructorReturn(self, call) { if (!self) { throw new Referen function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } var $; -if (typeof window !== 'undefined' && window && window.jQuery) { - $ = window.jQuery; +if (typeof window !== 'undefined' && window) { + if (window.jQuery) { + $ = window.jQuery; + } else { + $ = require('jquery'); + window.jQuery = $; + } } else { $ = require('jquery'); - window.jQuery = $; } var BS = require('bootstrap'); diff --git a/lib/index.js b/lib/index.js index 9bd4f2c..8e20e6c 100644 --- a/lib/index.js +++ b/lib/index.js @@ -6,7 +6,7 @@ if (typeof window !== 'undefined' && window) { if (window.jQuery) { $ = window.jQuery; } else { - $ = require('jquery') + $ = require('jquery'); window.jQuery = $; } } else {