diff --git a/.generator-release b/.generator-release deleted file mode 100644 index db530c2..0000000 --- a/.generator-release +++ /dev/null @@ -1 +0,0 @@ -{"increment":"minor","version":"v0.7.0"} \ No newline at end of file diff --git a/.gitignore b/.gitignore index da23d0d..2cea1d4 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ build/Release # Deployed apps should consider commenting this line out: # see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git node_modules +.generator-release diff --git a/backbone-reaction.min.js b/backbone-reaction.min.js index 3bb9a31..e0b9a29 100644 --- a/backbone-reaction.min.js +++ b/backbone-reaction.min.js @@ -1,4 +1,4 @@ /*! - * https://github.com/jhudson8/backbone-reaction v0.7.0; MIT license; Joe Hudson + * https://github.com/jhudson8/backbone-reaction v0.7.1; MIT license; Joe Hudson */ !function(e){"function"==typeof define&&define.amd?define(["react","backbone","underscore"],e):"undefined"!=typeof exports&&"undefined"!=typeof require?module.exports=function(t,n){e(t,n,require("underscore"))}:e(React,Backbone,_)}(function(React,Backbone,_){!function(){var e=Backbone.sync;Backbone.async=_.extend({},Backbone.Events),Backbone.sync=function(t,n,i){function a(e){var t=i[e];i[e]=function(){var a=arguments;t&&t.apply(this,a);var o=r.indexOf(s);o>=0&&r.splice(o,1);var c="success"===e?[e,n,i]:[e,n,a[1],a[2],i];s.trigger.apply(s,c),c.splice(0,0,"complete"),s.trigger.apply(s,c),0===r.length&&n.trigger("async:load-complete")}}i=i||{},i.url||(i.url=_.result(n,"url"));var r=n._pendingAsyncEvents=n._pendingAsyncEvents||[],o=i&&i.event||t,s=_.extend({},Backbone.Events);r.push(s),s.method=t,s.options=i,s.model=n,n.trigger("async",o,s,i),n.trigger("async:"+o,s,i),_.each([Backbone.async,Backbone.asyncHandler],function(e){e&&(e.trigger("async",o,n,s,i),e.trigger("async:"+o,n,s,i))}),a("success"),a("error");var c=i.intercept;if(c){if("function"==typeof c)return c(i);throw"intercept must be function(options)"}e.call(this,t,n,i)},_.each([Backbone.Model,Backbone.Collection],function(e){e.prototype.isLoading=function(){return this._pendingAsyncEvents&&this._pendingAsyncEvents.length>0?this._pendingAsyncEvents:!1}}),Backbone.async.on("async:read",function(e,t){t.on("success",function(){e.hasBeenFetched=!0,e.hadFetchError=!1}),t.on("error",function(){e.hadFetchError=!0})})}(),function(){function get(values,index,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=React.mixins._mixins[name],checkAgain=!1;if(!mixin)throw new Error('invalid mixin "'+name+'"');if("function"==typeof mixin)mixin=mixin.apply(this,params||[]),checkAgain=!0;else if(params)throw new Error('the mixin "'+name+'" does not support parameters');get(React.mixins._dependsOn[name],index,rtn),get(React.mixins._dependsInjected[name],index,rtn),index[indexName]=!0,checkAgain?get([mixin],index,rtn):rtn.push(mixin)}}function handleMixin(e){e&&(Array.isArray(e)?get(e,index,rtn):"string"==typeof e?addTo(e):rtn.push(e))}if(Array.isArray(values))for(var i=0;i=0,u=c[s]),!u)throw'no callback function exists for "'+s+'"';s=function(){return u.apply(c,d?[]:arguments)}}var f=o.match(a);if(f){var h=f[1],m=f[2].split(/\s*,\s*/),p=f[3],v=React.events.specials[h];if(v)return 1===m.length&&""===m[0]&&(m=[]),s=v.call(c,s,m),e(p,s,c,!0);throw new Error('invalid special event handler "'+h+"'")}var g=o.match(i),y=g[1];path=g[2],handler=t[y];for(var x=0;!handler&&x0?Array.prototype.slice.call(arguments,0):void 0;return{getInitialState:function(){e=n(e||"loadOn",this,"async:{key}",function(e){this.setState({loading:!0}),e.on("complete",function(){this.isMounted()&&this.setState({loading:!1})},this)});var t=this.getModel();if(t){var i,a=t.isLoading();if(a)for(var r=function(){this.isMounted()&&this.setState({loading:!1})},o=0;o=0)return i=e[s],a[o].on("complete",r,this),{loading:!0}}}return{}}}},"modelEventAware"),React.mixins.add("modelUpdateOn",function(){var e=arguments.length>0?Array.prototype.slice.call(arguments,0):void 0;return{getInitialState:function(){n(e||"updateOn",this,"{key}",function(){this.deferUpdate()})}}},"modelEventAware","deferUpdate"),React.events){React.events.mixin=React.events.mixin||Backbone.Events;var r=/^model(\[.+\])?$/;React.events.handle(r,function(e,t){var n=e.key.match(r),i=n[1]&&n[1].substring(1,n[1].length-1),a=i&&(this.props[i]||this.refs[i]);if(!a&&i)throw new Error('no model found with "'+i+'"');var o={model:a,event:e.path,callback:t};return{on:function(){this.modelOn(o)},off:function(){}}});var o=React.events.specials;if(o){var s=["memoize","delay","defer","throttle","debounce","once"];_.each(s,function(e){o[e]=o[e]||function(t,n){return n=a(n),n.splice(0,0,t),_[e].apply(_,n)}})}}}()}); \ No newline at end of file diff --git a/bower.json b/bower.json index 2de17f8..8390c6e 100644 --- a/bower.json +++ b/bower.json @@ -1,7 +1,7 @@ { "name": "backbone-reaction", "main": "ckbone-reaction.js", - "version": "0.7.0", + "version": "0.7.1", "homepage": "https://github.com/jhudson8/backbone-reaction", "authors": [ "Joe Hudson " diff --git a/package.json b/package.json index e2b934f..d8433fc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "backbone-reaction", - "version": "0.7.0", + "version": "0.7.1", "author": "Joe Hudson ", "description": "react, backbone and then some", "repository": { diff --git a/release-notes.md b/release-notes.md index 68e93fe..711261b 100644 --- a/release-notes.md +++ b/release-notes.md @@ -2,7 +2,12 @@ ## Development -[Commits](https://github.com/jhudson8/reactbone/compare/v0.7.0...master) +[Commits](https://github.com/jhudson8/backbone-reaction/compare/v0.7.1...master) + +## v0.7.1 - July 20th, 2014 +- rename to backbone-reaction as reactbone was already taken in registries - bbea235 + +[Commits](https://github.com/jhudson8/reactbone/compare/v0.7.0...v0.7.1) ## v0.7.0 - July 19th, 2014 - update to: diff --git a/release-notes.txt b/release-notes.txt deleted file mode 100644 index fac20c3..0000000 --- a/release-notes.txt +++ /dev/null @@ -1,2 +0,0 @@ -v0.6.1 -no changes - trying to get past an issue while registering this project with bower