From dc7faaecb6c1d30c1847420619ac0711eb056623 Mon Sep 17 00:00:00 2001 From: eclifford Date: Thu, 14 Nov 2013 14:10:32 -0800 Subject: [PATCH] fixed version --- bower.json | 2 +- bronson.js | 2 +- bronson.min.js | 2 +- package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bower.json b/bower.json index 1dda3f4..128e21f 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "bronsonjs", - "version": "2.0.6", + "version": "2.0.7", "description": "AMD module framework for building large scale javascript applications", "homepage": "https://github.com/eclifford/bronson", "authors": [ diff --git a/bronson.js b/bronson.js index b910c2f..7f6039b 100644 --- a/bronson.js +++ b/bronson.js @@ -26,7 +26,7 @@ }; extend(Bronson, { - version: '2.0.5', + version: '2.0.7', settings: { autoload: true, diff --git a/bronson.min.js b/bronson.min.js index e51578b..69513d9 100644 --- a/bronson.min.js +++ b/bronson.min.js @@ -1 +1 @@ -/*! bronsonjs - v2.0.5 - eclifford - 2013-11-14 */!function(a,b){"undefined"!=typeof exports?b(a,exports):"function"==typeof define&&define.amd?define(["exports"],function(c){a.Bronson=b(a,c)}):a.Bronson=b(a,{})}(this,function(a,b){var c=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};c(b,{version:"2.0.5",settings:{autoload:!0,autostart:!0,permissions:!1,success:function(){},error:function(){}},modules:{},events:{},publish:function(a){var c,d,e,f,g=/^[a-z]+((:[a-z]+){1})$/,h=a.toLowerCase(),i=[];if(!g.test(h))throw new Error("Bronson.publish: event name must be in format subscriber of channel:topic");if(i=h.split(":"),c=i[0],d=i[1],b.events[c]&&b.events[c][d]){e=b.events[c][d].slice(),f=[].slice.call(arguments,1);for(var j in e)e[j].callback.apply(this,f)}},subscribe:function(a,c,d){var e,f,g,h,i=/^[a-z]+((:[a-z]+){2})$/,j=a.toLowerCase();if(!i.test(j))throw new Error("Bronson.subscribe: event "+j+" must be in format subscriber or subscriber:channel:topic");if("undefined"!=typeof c&&null!==c&&"function"!=typeof c)throw new Error("Bronson.subscribe: callback must be a function");if(e=j.split(":"),f=e[0],g=e[1],h=e[2],this.settings.permissions&&!b.Permissions.validate(f,g))throw new Error("Bronson.subscribe: permissions do not allow this subscriber to listen to that channel");this.events[g]||(this.events[g]={}),this.events[g][h]=this.events[g][h]?this.events[g][h]:[],this.events[g][h].push({subscriber:f,context:d||this,callback:c})},unsubscribe:function(a){var b,c,d,e,f,g=/^[a-z]+((:[a-z]+){2})?$/,h=a.toLowerCase(),i=[];if(!g.test(h))throw new Error("Bronson.unsubscribe: event must be in format subscriber or subscriber:channel:topic");if(i=h.split(":"),b=i[0],c=i[1],d=i[2],1===i.length){for(c in this.events)for(d in this.events[c])for(e=0;e - 2013-11-14 */!function(a,b){"undefined"!=typeof exports?b(a,exports):"function"==typeof define&&define.amd?define(["exports"],function(c){a.Bronson=b(a,c)}):a.Bronson=b(a,{})}(this,function(a,b){var c=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};c(b,{version:"2.0.7",settings:{autoload:!0,autostart:!0,permissions:!1,success:function(){},error:function(){}},modules:{},events:{},publish:function(a){var c,d,e,f,g=/^[a-z]+((:[a-z]+){1})$/,h=a.toLowerCase(),i=[];if(!g.test(h))throw new Error("Bronson.publish: event name must be in format subscriber of channel:topic");if(i=h.split(":"),c=i[0],d=i[1],b.events[c]&&b.events[c][d]){e=b.events[c][d].slice(),f=[].slice.call(arguments,1);for(var j in e)e[j].callback.apply(this,f)}},subscribe:function(a,c,d){var e,f,g,h,i=/^[a-z]+((:[a-z]+){2})$/,j=a.toLowerCase();if(!i.test(j))throw new Error("Bronson.subscribe: event "+j+" must be in format subscriber or subscriber:channel:topic");if("undefined"!=typeof c&&null!==c&&"function"!=typeof c)throw new Error("Bronson.subscribe: callback must be a function");if(e=j.split(":"),f=e[0],g=e[1],h=e[2],this.settings.permissions&&!b.Permissions.validate(f,g))throw new Error("Bronson.subscribe: permissions do not allow this subscriber to listen to that channel");this.events[g]||(this.events[g]={}),this.events[g][h]=this.events[g][h]?this.events[g][h]:[],this.events[g][h].push({subscriber:f,context:d||this,callback:c})},unsubscribe:function(a){var b,c,d,e,f,g=/^[a-z]+((:[a-z]+){2})?$/,h=a.toLowerCase(),i=[];if(!g.test(h))throw new Error("Bronson.unsubscribe: event must be in format subscriber or subscriber:channel:topic");if(i=h.split(":"),b=i[0],c=i[1],d=i[2],1===i.length){for(c in this.events)for(d in this.events[c])for(e=0;e