diff --git a/conditioner-core.esm.js b/conditioner-core.esm.js index 86bbd23..b330f04 100644 --- a/conditioner-core.esm.js +++ b/conditioner-core.esm.js @@ -1,4 +1,4 @@ -/* conditioner-core 2.3.2 */ +/* conditioner-core 2.3.3 */ // links the module to the element and exposes a callback api object const bindModule = (element, unbind) => { // gets the name of the module from the element, we assume the name is an alias @@ -289,7 +289,7 @@ const createModule = element => { const query = runPlugin('moduleGetContext', element); // wait for the right context or load the module immidiately if no context supplied - const monitor = createContextualModule(query, boundModule); + const monitor = query && createContextualModule(query, boundModule); // return module return query ? boundModule : boundModule.mount(); diff --git a/conditioner-core.js b/conditioner-core.js index 45cdd80..9c49604 100644 --- a/conditioner-core.js +++ b/conditioner-core.js @@ -1,4 +1,4 @@ -/* conditioner-core 2.3.2 */ +/* conditioner-core 2.3.3 */ (function (global, factory) { if (typeof define === "function" && define.amd) { define(['exports'], factory); @@ -368,7 +368,7 @@ var query = runPlugin('moduleGetContext', element); // wait for the right context or load the module immidiately if no context supplied - var monitor = createContextualModule(query, boundModule); + var monitor = query && createContextualModule(query, boundModule); // return module return query ? boundModule : boundModule.mount(); diff --git a/conditioner-core.min.js b/conditioner-core.min.js index fbedb49..aa096a9 100644 --- a/conditioner-core.min.js +++ b/conditioner-core.min.js @@ -1,2 +1,2 @@ -/* conditioner-core 2.3.2 */ -!function(n,t){if("function"==typeof define&&define.amd)define(["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var e={};t(e),n.conditioner=e}}(this,function(n){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var u=function(n,t){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return function(n,t){var e=[],r=!0,o=!1,u=void 0;try{for(var i,c=n[Symbol.iterator]();!(r=(i=c.next()).done)&&(e.push(i.value),!t||e.length!==t);r=!0);}catch(n){o=!0,u=n}finally{try{!r&&c.return&&c.return()}finally{if(o)throw u}}return e}(n,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function i(n){if(Array.isArray(n)){for(var t=0,e=Array(n.length);t -

Frizz free, context-aware, JavaScript modules

+

Frizz free, context-aware, JavaScript modules

Building a content based website?

@@ -64,10 +64,18 @@

Frizz fr

+

Let's print "Hello World"

+

+