44module . exports = require ( './components/AltContainer.js' ) ;
55
66} , { "./components/AltContainer.js" :2 } ] , 2 :[ function ( require , module , exports ) {
7- ( function ( global ) {
87/**
98 * AltContainer.
109 *
@@ -63,7 +62,7 @@ module.exports = require('./components/AltContainer.js');
6362 */
6463'use strict' ;
6564
66- var React = ( typeof window !== "undefined" ? window . React : typeof global !== "undefined" ? global . React : null ) ;
65+ var React = ( window . React ) ;
6766var mixinContainer = require ( './mixinContainer' ) ;
6867var assign = require ( '../utils/functions' ) . assign ;
6968
@@ -77,7 +76,6 @@ var AltContainer = React.createClass(assign({
7776
7877module . exports = AltContainer ;
7978
80- } ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
8179} , { "../utils/functions" :27 , "./mixinContainer" :3 } ] , 3 :[ function ( require , module , exports ) {
8280'use strict' ;
8381
@@ -1593,11 +1591,12 @@ var StoreMixin = {
15931591 return x ;
15941592 } ;
15951593
1596- var makeActionHandler = function makeActionHandler ( action ) {
1594+ var makeActionHandler = function makeActionHandler ( action , isError ) {
15971595 return function ( x ) {
15981596 var fire = function fire ( ) {
15991597 loadCounter -= 1 ;
16001598 action ( intercept ( x , action , args ) ) ;
1599+ if ( isError ) throw x ;
16011600 } ;
16021601 return typeof window === 'undefined' ? function ( ) {
16031602 return fire ( ) ;
@@ -1610,7 +1609,7 @@ var StoreMixin = {
16101609 loadCounter += 1 ;
16111610 /* istanbul ignore else */
16121611 if ( spec . loading ) spec . loading ( intercept ( null , spec . loading , args ) ) ;
1613- return spec . remote . apply ( spec , [ state ] . concat ( args ) ) . then ( makeActionHandler ( spec . success ) ) [ 'catch' ] ( makeActionHandler ( spec . error ) ) ;
1612+ return spec . remote . apply ( spec , [ state ] . concat ( args ) ) [ 'catch' ] ( makeActionHandler ( spec . error , 1 ) ) . then ( makeActionHandler ( spec . success ) ) ;
16141613 } else {
16151614 // otherwise emit the change now
16161615 _this . emitChange ( ) ;
@@ -1959,6 +1958,7 @@ var STATE_CONTAINER = (0, _esSymbol2['default'])();
19591958exports . STATE_CONTAINER = STATE_CONTAINER ;
19601959
19611960} , { "es-symbol" :5 } ] , 16 :[ function ( require , module , exports ) {
1961+ /* istanbul ignore next */
19621962'use strict' ;
19631963
19641964Object . defineProperty ( exports , '__esModule' , {
@@ -1969,7 +1969,6 @@ exports.warn = warn;
19691969exports . uid = uid ;
19701970exports . formatAsConstant = formatAsConstant ;
19711971exports . dispatchIdentity = dispatchIdentity ;
1972- /* istanbul ignore next */
19731972function NoopClass ( ) { }
19741973
19751974var builtIns = Object . getOwnPropertyNames ( NoopClass ) ;
@@ -2163,16 +2162,6 @@ exports['default'] = ActionListeners;
21632162module . exports = exports [ 'default' ] ;
21642163
21652164} , { "es-symbol" :5 } ] , 19 :[ function ( require , module , exports ) {
2166- 'use strict' ;
2167-
2168- Object . defineProperty ( exports , '__esModule' , {
2169- value : true
2170- } ) ;
2171-
2172- var _createClass = ( function ( ) { function defineProperties ( target , props ) { for ( var i = 0 ; i < props . length ; i ++ ) { var descriptor = props [ i ] ; descriptor . enumerable = descriptor . enumerable || false ; descriptor . configurable = true ; if ( 'value' in descriptor ) descriptor . writable = true ; Object . defineProperty ( target , descriptor . key , descriptor ) ; } } return function ( Constructor , protoProps , staticProps ) { if ( protoProps ) defineProperties ( Constructor . prototype , protoProps ) ; if ( staticProps ) defineProperties ( Constructor , staticProps ) ; return Constructor ; } ; } ) ( ) ;
2173-
2174- function _classCallCheck ( instance , Constructor ) { if ( ! ( instance instanceof Constructor ) ) { throw new TypeError ( 'Cannot call a class as a function' ) ; } }
2175-
21762165/**
21772166 * AltManager(Alt: AltClass): undefined
21782167 *
@@ -2199,6 +2188,16 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
21992188 * ```
22002189 */
22012190
2191+ 'use strict' ;
2192+
2193+ Object . defineProperty ( exports , '__esModule' , {
2194+ value : true
2195+ } ) ;
2196+
2197+ var _createClass = ( function ( ) { function defineProperties ( target , props ) { for ( var i = 0 ; i < props . length ; i ++ ) { var descriptor = props [ i ] ; descriptor . enumerable = descriptor . enumerable || false ; descriptor . configurable = true ; if ( 'value' in descriptor ) descriptor . writable = true ; Object . defineProperty ( target , descriptor . key , descriptor ) ; } } return function ( Constructor , protoProps , staticProps ) { if ( protoProps ) defineProperties ( Constructor . prototype , protoProps ) ; if ( staticProps ) defineProperties ( Constructor , staticProps ) ; return Constructor ; } ; } ) ( ) ;
2198+
2199+ function _classCallCheck ( instance , Constructor ) { if ( ! ( instance instanceof Constructor ) ) { throw new TypeError ( 'Cannot call a class as a function' ) ; } }
2200+
22022201var AltManager = ( function ( ) {
22032202 function AltManager ( Alt ) {
22042203 _classCallCheck ( this , AltManager ) ;
@@ -2494,12 +2493,12 @@ function atomic(alt) {
24942493module . exports = exports [ 'default' ] ;
24952494
24962495} , { "./functions" :24 , "./makeFinalStore" :25 } ] , 22 :[ function ( require , module , exports ) {
2496+ /*global window*/
24972497'use strict' ;
24982498
24992499Object . defineProperty ( exports , '__esModule' , {
25002500 value : true
25012501} ) ;
2502- /*global window*/
25032502exports [ 'default' ] = chromeDebug ;
25042503
25052504function chromeDebug ( alt ) {
@@ -2510,7 +2509,6 @@ function chromeDebug(alt) {
25102509module . exports = exports [ 'default' ] ;
25112510
25122511} , { } ] , 23 :[ function ( require , module , exports ) {
2513- ( function ( global ) {
25142512/**
25152513 * 'Higher Order Component' that controls the props of a wrapped
25162514 * component via stores.
@@ -2564,7 +2562,7 @@ Object.defineProperty(exports, '__esModule', {
25642562
25652563function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { 'default' : obj } ; }
25662564
2567- var _react = ( typeof window !== "undefined" ? window . React : typeof global !== "undefined" ? global . React : null ) ;
2565+ var _react = ( window . React ) ;
25682566
25692567var _react2 = _interopRequireDefault ( _react ) ;
25702568
@@ -2594,6 +2592,10 @@ function connectToStores(Component) {
25942592 stores . forEach ( function ( store ) {
25952593 store . listen ( _this . onChange ) ;
25962594 } ) ;
2595+ var component = this . refs [ 'connectToStores-component' ] ;
2596+ if ( typeof component . componentDidConnect === 'function' ) {
2597+ component . componentDidConnect ( ) ;
2598+ }
25972599 } ,
25982600
25992601 componentWillUnmount : function componentWillUnmount ( ) {
@@ -2610,7 +2612,9 @@ function connectToStores(Component) {
26102612 } ,
26112613
26122614 render : function render ( ) {
2613- return _react2 [ 'default' ] . createElement ( Component , ( 0 , _functions . assign ) ( { } , this . props , this . state ) ) ;
2615+ return _react2 [ 'default' ] . createElement ( Component , ( 0 , _functions . assign ) ( {
2616+ ref : 'connectToStores-component'
2617+ } , this . props , this . state ) ) ;
26142618 }
26152619 } ) ;
26162620
@@ -2620,7 +2624,6 @@ function connectToStores(Component) {
26202624exports [ 'default' ] = connectToStores ;
26212625module . exports = exports [ 'default' ] ;
26222626
2623- } ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
26242627} , { "./functions" :24 } ] , 24 :[ function ( require , module , exports ) {
26252628'use strict' ;
26262629
@@ -2655,12 +2658,6 @@ function assign(target) {
26552658}
26562659
26572660} , { } ] , 25 :[ function ( require , module , exports ) {
2658- "use strict" ;
2659-
2660- Object . defineProperty ( exports , "__esModule" , {
2661- value : true
2662- } ) ;
2663- exports [ "default" ] = makeFinalStore ;
26642661/**
26652662 * makeFinalStore(alt: AltInstance): AltStore
26662663 *
@@ -2685,6 +2682,12 @@ exports["default"] = makeFinalStore;
26852682 * ```
26862683 */
26872684
2685+ "use strict" ;
2686+
2687+ Object . defineProperty ( exports , "__esModule" , {
2688+ value : true
2689+ } ) ;
2690+ exports [ "default" ] = makeFinalStore ;
26882691function FinalStore ( ) {
26892692 var _this = this ;
26902693
@@ -2707,7 +2710,6 @@ function makeFinalStore(alt) {
27072710module . exports = exports [ "default" ] ;
27082711
27092712} , { } ] , 26 :[ function ( require , module , exports ) {
2710- ( function ( global ) {
27112713'use strict' ;
27122714
27132715Object . defineProperty ( exports , '__esModule' , {
@@ -2717,7 +2719,7 @@ exports['default'] = withAltContext;
27172719
27182720function _interopRequireDefault ( obj ) { return obj && obj . __esModule ? obj : { 'default' : obj } ; }
27192721
2720- var _react = ( typeof window !== "undefined" ? window . React : typeof global !== "undefined" ? global . React : null ) ;
2722+ var _react = ( window . React ) ;
27212723
27222724var _react2 = _interopRequireDefault ( _react ) ;
27232725
@@ -2741,7 +2743,6 @@ function withAltContext(flux) {
27412743
27422744module . exports = exports [ 'default' ] ;
27432745
2744- } ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
27452746} , { } ] , 27 :[ function ( require , module , exports ) {
27462747'use strict' ;
27472748
0 commit comments