From 5391c32f990b9426379f36faaf275aa41fd7d677 Mon Sep 17 00:00:00 2001 From: Robert Haritonov Date: Thu, 18 Jun 2015 13:57:55 +0200 Subject: [PATCH] improve check for options object existence --- assets/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/assets/index.js b/assets/index.js index 84beccc..a10eb44 100644 --- a/assets/index.js +++ b/assets/index.js @@ -29,6 +29,7 @@ define([ var moduleCss = new Css("/node_modules/sourcejs-spec-dependencies/assets/css/specDependencies.css"); + this.options.pluginsOptions = this.options.pluginsOptions || this.options.plugins || {}; this.options.pluginsOptions.specDependencies = $.extend(true, { DEPENDENCIES_ROOT_CLASS: "source_deps",