Created
February 13, 2016 15:46
browserify version of redux-thunk v1.0.3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
(function (global){ | |
var reduxThunk = require('redux-thunk'); | |
global.reduxThunk = reduxThunk; | |
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) | |
},{"redux-thunk":2}],2:[function(require,module,exports){ | |
'use strict'; | |
function thunkMiddleware(_ref) { | |
var dispatch = _ref.dispatch; | |
var getState = _ref.getState; | |
return function (next) { | |
return function (action) { | |
return typeof action === 'function' ? action(dispatch, getState) : next(action); | |
}; | |
}; | |
} | |
module.exports = thunkMiddleware; | |
},{}]},{},[1]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment