diff --git a/bower.json b/bower.json index 06c4f4b..bb43561 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "react-mixin-manager", "main": "react-mixin-manager.js", - "version": "0.9.4", + "version": "0.10.0", "homepage": "https://github.com/jhudson8/react-mixin-manager", "authors": [ "Joe Hudson " diff --git a/package.json b/package.json index 48baf46..b364cac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-mixin-manager", - "version": "0.9.4", + "version": "0.10.0", "author": "Joe Hudson ", "description": "simple react mixin registration manager which allows mixins to depend on other mixins", "repository": { diff --git a/react-mixin-manager.js b/react-mixin-manager.js index cfb65f5..7b777c6 100644 --- a/react-mixin-manager.js +++ b/react-mixin-manager.js @@ -1,5 +1,5 @@ /*! - * react-mixin-manager v0.9.4 + * react-mixin-manager v0.10.0 * https://github.com/jhudson8/react-mixin-manager * * diff --git a/react-mixin-manager.min.js b/react-mixin-manager.min.js index f8fab15..a4e58ec 100644 --- a/react-mixin-manager.min.js +++ b/react-mixin-manager.min.js @@ -1,4 +1,4 @@ /*! - * https://github.com/jhudson8/react-mixin-manager v0.9.4; MIT license; Joe Hudson + * https://github.com/jhudson8/react-mixin-manager v0.10.0; MIT license; Joe Hudson */ -!function(e){"function"==typeof define&&define.amd?define([],function(){return e}):"undefined"!=typeof exports&&"undefined"!=typeof require?module.exports=e:e(React)}(function(React){function setState(e,n){if(n.isMounted())n.setState(e);else if(n.state)for(var t in e)e.hasOwnProperty(t)&&(n.state[t]=e[t]);else{var i=n.__temporary_state||{};for(var t in e)e.hasOwnProperty(t)&&(i[t]=e[t]);n.__temporary_state=i}}function getState(e,n){var t=n.state,i=n.__temporary_state;return t&&t[e]||i&&i[e]}function get(values,index,initiatedOnce,rtn){function addTo(name){var indexName=name,match=name.match(/^([^\(]*)\s*\(([^\)]*)\)\s*/),params=match&&match[2];if(name=match&&match[1]||name,!index[indexName]){params&&(params=eval("["+params+"]"));var mixin=_mixins[name],checkAgain=!1,skip=!1;if(!mixin)throw new Error('invalid mixin "'+name+'"');if("function"==typeof mixin)_initiatedOnce[name]?(initiatedOnce[name]=initiatedOnce[name]||[],initiatedOnce[name].push(params),skip=!0):(mixin=mixin.apply(this,params||[]),checkAgain=!0);else if(params)throw new Error('the mixin "'+name+'" does not support parameters');get(_dependsOn[name],index,initiatedOnce,rtn),get(_dependsInjected[name],index,initiatedOnce,rtn),index[indexName]=!0,checkAgain?get([mixin],index,initiatedOnce,rtn):skip||rtn.push(mixin)}}function handleMixin(e){if(e)if(Array.isArray(e))get(e,index,initiatedOnce,rtn);else if("string"==typeof e)addTo(e);else{if(e.mixins){get(e.mixins,index,initiatedOnce,rtn);var n=_mixins[e];if(!n){n={};for(var t in e)"mixins"!==t&&(n[t]=e[t])}_mixins[e]=n,e=n}rtn.push(e)}}if(Array.isArray(values))for(var i=0;i