Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 3fefba1

Browse files
committed
fix initializing plugin without addons
1 parent c86a394 commit 3fefba1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/js/core.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@
285285
Core.prototype.initAddons = function () {
286286
var that = this;
287287

288+
if (!this.options.addons || this.options.addons.length === 0) {
289+
return;
290+
}
291+
288292
$.each(this.options.addons, function (addon, options) {
289293
var addonName = pluginName + ucfirst(addon);
290294

0 commit comments

Comments
 (0)