hippodrome 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/hippodrome.min.js +3 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc363fc1a6f5b4c711badecad9bdb084890ec197
|
4
|
+
data.tar.gz: fc199a6577fbdb723eb008650122d9867d514af3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae09eb653bafe30c02daac3d801eed039960f5e231f5ce9774607ced38ca858bd788c508bafc8d75c99a67761d719d46aa158cde6805b24c0c1cf7476b3b91cb
|
7
|
+
data.tar.gz: 8a6c2493258e70cf2f4b93ac26fe743147b306713174bc5e8cfe0661170f97106d3b88d7d72fa34f47efb1e6ab1f0eda756ebe3a0b5d7f9b002e45934c7ee9ac
|
@@ -0,0 +1,3 @@
|
|
1
|
+
//= require lodash
|
2
|
+
|
3
|
+
(function(){var t,i,s,r,n,e,a,o,c,l,p,u,h=[].slice;p="undefined"==typeof window,u=p?require("lodash"):this._,r={},o=function(){var t,i,s,r,n;if(s=arguments[0],n=arguments[1],i=3<=arguments.length?h.call(arguments,2):[],!s)throw t=0,r=new Error("Assertion Failed: "+n.replace(/%s/g,function(){return i[t++]})),r.framesToPop=1,r;return s},n=function(t){return this._lastId=1,this._prefix=t},n.prototype.next=function(){return""+this._prefix+"_"+this._lastId++},a=new n("Action_ID"),t=function(t,i){var s,n,e,o;return e=""+a.next()+"_"+t,n=function(){var t;return t=i.apply(null,arguments),t.action=e,t},o=function(t){return r.Dispatcher.dispatch(t)},s=function(){var t;return t=n.apply(null,arguments),o(t)},s.buildPayload=n,s.send=o,s.displayName=t,s.id=e,s.toString=function(){return e},s},r.Action=t,s=function(){return this._callbacksByAction={},this._isStarted={},this._isFinished={},this._isDispatching=!1,this._payload=null},l=new n("Dispatcher_ID"),s.prototype.register=function(){var t,i,s,r,n,e,a;return i=u.compact(arguments),3===i.length?this.register(i[0],i[1],[],i[2]):(e=i[0],t=i[1],n=i[2],s=i[3],null==(a=this._callbacksByAction)[t]&&(a[t]={}),r=l.next(),this._callbacksByAction[t][r]={callback:s,prerequisites:u.map(n,function(i){return i._storeImpl.dispatcherIdsByAction[t]})},r)},s.prototype.unregister=function(t,i){return o(this._callbacksByAction[t][i],"Dispatcher.unregister(%s, %s) does not map to a registered callback.",t.displayName,i),this._callbacksByAction[t][i]=null},s.prototype.waitFor=function(t,i){return o(this._isDispatching,"Dispatcher.waitFor must be invoked while dispatching."),u.forEach(i,function(i){return function(s){return i._isStarted[s]?void o(i._isFinished[s],"Dispatcher.waitFor encountered circular dependency while waiting for `%s` during %s.",s,t.displayName):(o(i._callbacksByAction[t][s],"Dispatcher.waitFor `%s` is not a registered callback for %s.",s,t.displayName),i.invokeCallback(t,s))}}(this))},s.prototype.dispatch=function(t){var i;o(!this._isDispatching,"Dispatch.dispatch cannot be called during dispatch."),this.startDispatching(t);try{return i=t.action,u.forEach(this._callbacksByAction[i],function(t){return function(s,r){return t._isStarted[r]?void 0:t.invokeCallback(i,r)}}(this))}finally{this.stopDispatching()}},s.prototype.invokeCallback=function(t,i){var s,r,n;return this._isStarted[i]=!0,n=this._callbacksByAction[t][i],s=n.callback,r=n.prerequisites,this.waitFor(t,r),s(this._payload),this._isFinished[i]=!0},s.prototype.startDispatching=function(t){return this._isStarted={},this._isFinished={},this._payload=t,this._isDispatching=!0},s.prototype.stopDispatching=function(){return this._payload=null,this._isDispatching=!1},r.Dispatcher=new s,i=function(t){var i,s,n;return o(t.action,"DeferredTask must register for exactly one action."),o(t.task,"DeferredTask must supply exactly one task to run"),i=t.action,n=t.task,"string"==typeof n&&(n=this[n]),n=u.defer.bind(this,n),s=r.Dispatcher.register(this,i.id,[],n),this._dispatcherIdsByAction={},this._dispatcherIdsByAction[i.id]=s,this},r.DeferredTask=i,c=function(t){return function(i,s){return s instanceof Function?s.bind(t):s}},e=function(t){return this._storeImpl={},this._storeImpl.dispatcherIdsByAction={},this._storeImpl.callbacks=[],u.assign(this._storeImpl,u.omit(t,"initialize","dispatches","public"),c(this._storeImpl)),t["public"]&&u.assign(this,t["public"],c(this._storeImpl)),this.displayName=t.displayName,t.initialize&&t.initialize.call(this._storeImpl),t.dispatches&&u.forEach(t.dispatches,function(t){return function(i){var s,n,e,a;return s=i.action,n=i.after,e=i.callback,o(!t._storeImpl.dispatcherIdsByAction[s.id],"Store "+t.displayName+" registered two callbacks for action "+s.displayName),"string"==typeof e&&(e=t._storeImpl[e]),e=e.bind(t._storeImpl),a=r.Dispatcher.register(t,s.id,n,e),t._storeImpl.dispatcherIdsByAction[s.id]=a}}(this)),this},e.prototype.register=function(t){return this._storeImpl.callbacks.push(t)},e.prototype.unregister=function(t){return this._storeImpl.callbacks=u.reject(this._storeImpl.callbacks,function(i){return i===t})},e.prototype.listen=function(t){var i;return i=this,{componentDidMount:function(){return i.register(this[t])},componentWillUnmount:function(){return i.unregister(this[t])}}},e.prototype.trigger=function(){return u.forEach(this._storeImpl.callbacks,function(t){return t()})},r.Store=e,p?module.exports=r:this.Hippodrome=r}).call(this);
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hippodrome
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Kermes
|
@@ -81,6 +81,7 @@ files:
|
|
81
81
|
- LICENSE.txt
|
82
82
|
- README.md
|
83
83
|
- app/assets/javascripts/hippodrome.js
|
84
|
+
- app/assets/javascripts/hippodrome.min.js
|
84
85
|
- lib/hippodrome.rb
|
85
86
|
- lib/hippodrome/version.rb
|
86
87
|
homepage: https://github.com/Structural/hippodrome
|