|
44 | 44 | /* 0 */ |
45 | 45 | /***/ function(module, exports, __webpack_require__) { |
46 | 46 |
|
47 | | - var React = __webpack_require__(1); |
48 | | - var ReactDOM = __webpack_require__(35); |
| 47 | + /* WEBPACK VAR INJECTION */(function(global) {var React = __webpack_require__(1); |
49 | 48 | var ReactDOMServer = __webpack_require__(199); |
50 | 49 |
|
51 | 50 | React.addons = __webpack_require__(175); |
52 | 51 |
|
53 | | - window.React = React; |
54 | | - window.ReactDOM = ReactDOM; |
55 | | - window.ReactDOMServer = ReactDOMServer; |
56 | | - |
| 52 | + global.React = React; |
| 53 | + global.ReactDOMServer = ReactDOMServer; |
| 54 | + /* WEBPACK VAR INJECTION */}.call(exports, (function() { return this; }()))) |
57 | 55 |
|
58 | 56 | /***/ }, |
59 | 57 | /* 1 */ |
|
174 | 172 | var cachedSetTimeout; |
175 | 173 | var cachedClearTimeout; |
176 | 174 |
|
| 175 | + function defaultSetTimout() { |
| 176 | + throw new Error('setTimeout has not been defined'); |
| 177 | + } |
| 178 | + function defaultClearTimeout () { |
| 179 | + throw new Error('clearTimeout has not been defined'); |
| 180 | + } |
177 | 181 | (function () { |
178 | 182 | try { |
179 | | - cachedSetTimeout = setTimeout; |
180 | | - } catch (e) { |
181 | | - cachedSetTimeout = function () { |
182 | | - throw new Error('setTimeout is not defined'); |
| 183 | + if (typeof setTimeout === 'function') { |
| 184 | + cachedSetTimeout = setTimeout; |
| 185 | + } else { |
| 186 | + cachedSetTimeout = defaultSetTimout; |
183 | 187 | } |
| 188 | + } catch (e) { |
| 189 | + cachedSetTimeout = defaultSetTimout; |
184 | 190 | } |
185 | 191 | try { |
186 | | - cachedClearTimeout = clearTimeout; |
187 | | - } catch (e) { |
188 | | - cachedClearTimeout = function () { |
189 | | - throw new Error('clearTimeout is not defined'); |
| 192 | + if (typeof clearTimeout === 'function') { |
| 193 | + cachedClearTimeout = clearTimeout; |
| 194 | + } else { |
| 195 | + cachedClearTimeout = defaultClearTimeout; |
190 | 196 | } |
| 197 | + } catch (e) { |
| 198 | + cachedClearTimeout = defaultClearTimeout; |
191 | 199 | } |
192 | 200 | } ()) |
193 | 201 | function runTimeout(fun) { |
194 | 202 | if (cachedSetTimeout === setTimeout) { |
195 | 203 | //normal enviroments in sane situations |
196 | 204 | return setTimeout(fun, 0); |
197 | 205 | } |
| 206 | + // if setTimeout wasn't available but was latter defined |
| 207 | + if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) { |
| 208 | + cachedSetTimeout = setTimeout; |
| 209 | + return setTimeout(fun, 0); |
| 210 | + } |
198 | 211 | try { |
199 | 212 | // when when somebody has screwed with setTimeout but no I.E. maddness |
200 | 213 | return cachedSetTimeout(fun, 0); |
|
215 | 228 | //normal enviroments in sane situations |
216 | 229 | return clearTimeout(marker); |
217 | 230 | } |
| 231 | + // if clearTimeout wasn't available but was latter defined |
| 232 | + if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) { |
| 233 | + cachedClearTimeout = clearTimeout; |
| 234 | + return clearTimeout(marker); |
| 235 | + } |
218 | 236 | try { |
219 | 237 | // when when somebody has screwed with setTimeout but no I.E. maddness |
220 | 238 | return cachedClearTimeout(marker); |
|
1266 | 1284 | var warning = emptyFunction; |
1267 | 1285 |
|
1268 | 1286 | if (process.env.NODE_ENV !== 'production') { |
1269 | | - warning = function warning(condition, format) { |
1270 | | - for (var _len = arguments.length, args = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) { |
1271 | | - args[_key - 2] = arguments[_key]; |
1272 | | - } |
1273 | | - |
1274 | | - if (format === undefined) { |
1275 | | - throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); |
1276 | | - } |
1277 | | - |
1278 | | - if (format.indexOf('Failed Composite propType: ') === 0) { |
1279 | | - return; // Ignore CompositeComponent proptype check. |
1280 | | - } |
| 1287 | + (function () { |
| 1288 | + var printWarning = function printWarning(format) { |
| 1289 | + for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) { |
| 1290 | + args[_key - 1] = arguments[_key]; |
| 1291 | + } |
1281 | 1292 |
|
1282 | | - if (!condition) { |
1283 | 1293 | var argIndex = 0; |
1284 | 1294 | var message = 'Warning: ' + format.replace(/%s/g, function () { |
1285 | 1295 | return args[argIndex++]; |
|
1293 | 1303 | // to find the callsite that caused this warning to fire. |
1294 | 1304 | throw new Error(message); |
1295 | 1305 | } catch (x) {} |
1296 | | - } |
1297 | | - }; |
| 1306 | + }; |
| 1307 | + |
| 1308 | + warning = function warning(condition, format) { |
| 1309 | + if (format === undefined) { |
| 1310 | + throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument'); |
| 1311 | + } |
| 1312 | + |
| 1313 | + if (format.indexOf('Failed Composite propType: ') === 0) { |
| 1314 | + return; // Ignore CompositeComponent proptype check. |
| 1315 | + } |
| 1316 | + |
| 1317 | + if (!condition) { |
| 1318 | + for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) { |
| 1319 | + args[_key2 - 2] = arguments[_key2]; |
| 1320 | + } |
| 1321 | + |
| 1322 | + printWarning.apply(undefined, [format].concat(args)); |
| 1323 | + } |
| 1324 | + }; |
| 1325 | + })(); |
1298 | 1326 | } |
1299 | 1327 |
|
1300 | 1328 | module.exports = warning; |
|
4135 | 4163 | /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(3))) |
4136 | 4164 |
|
4137 | 4165 | /***/ }, |
4138 | | -/* 35 */ |
4139 | | -/***/ function(module, exports, __webpack_require__) { |
4140 | | - |
4141 | | - 'use strict'; |
4142 | | - |
4143 | | - module.exports = __webpack_require__(36); |
4144 | | - |
4145 | | - |
4146 | | -/***/ }, |
| 4166 | +/* 35 */, |
4147 | 4167 | /* 36 */ |
4148 | 4168 | /***/ function(module, exports, __webpack_require__) { |
4149 | 4169 |
|
|
10429 | 10449 | * @return {boolean} |
10430 | 10450 | */ |
10431 | 10451 | function hasArrayNature(obj) { |
10432 | | - return( |
| 10452 | + return ( |
10433 | 10453 | // not null/false |
10434 | 10454 | !!obj && ( |
10435 | 10455 | // arrays are objects, NodeLists are functions in Safari |
|
16274 | 16294 | if (x === y) { |
16275 | 16295 | // Steps 1-5, 7-10 |
16276 | 16296 | // Steps 6.b-6.e: +0 != -0 |
16277 | | - return x !== 0 || 1 / x === 1 / y; |
| 16297 | + // Added the nonzero y check to make Flow happy, but it is redundant |
| 16298 | + return x !== 0 || y !== 0 || 1 / x === 1 / y; |
16278 | 16299 | } else { |
16279 | 16300 | // Step 6.a: NaN == NaN |
16280 | 16301 | return x !== x && y !== y; |
|
0 commit comments