@@ -2,69 +2,39 @@ require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof requ
2
2
// shim for using process in browser
3
3
4
4
var process = module.exports = {};
5
+ var queue = [];
6
+ var draining = false;
5
7
6
- process.nextTick = (function () {
7
- var canSetImmediate = typeof window !== 'undefined'
8
- && window.setImmediate;
9
- var canMutationObserver = typeof window !== 'undefined'
10
- && window.MutationObserver;
11
- var canPost = typeof window !== 'undefined'
12
- && window.postMessage && window.addEventListener
13
- ;
14
-
15
- if (canSetImmediate) {
16
- return function (f) { return window.setImmediate(f) };
17
- }
18
-
19
- var queue = [];
20
-
21
- if (canMutationObserver) {
22
- var hiddenDiv = document.createElement("div");
23
- var observer = new MutationObserver(function () {
24
- var queueList = queue.slice();
25
- queue.length = 0;
26
- queueList.forEach(function (fn) {
27
- fn();
28
- });
29
- });
30
-
31
- observer.observe(hiddenDiv, { attributes: true });
32
-
33
- return function nextTick(fn) {
34
- if (!queue.length) {
35
- hiddenDiv.setAttribute('yes', 'no');
36
- }
37
- queue.push(fn);
38
- };
8
+ function drainQueue() {
9
+ if (draining) {
10
+ return;
39
11
}
40
-
41
- if (canPost) {
42
- window.addEventListener('message', function (ev) {
43
- var source = ev.source;
44
- if ((source === window || source === null) && ev.data === 'process-tick') {
45
- ev.stopPropagation();
46
- if (queue.length > 0) {
47
- var fn = queue.shift();
48
- fn();
49
- }
50
- }
51
- }, true);
52
-
53
- return function nextTick(fn) {
54
- queue.push(fn);
55
- window.postMessage('process-tick', '*');
56
- };
12
+ draining = true;
13
+ var currentQueue;
14
+ var len = queue.length;
15
+ while(len) {
16
+ currentQueue = queue;
17
+ queue = [];
18
+ var i = -1;
19
+ while (++i < len) {
20
+ currentQueue[i]();
21
+ }
22
+ len = queue.length;
57
23
}
58
-
59
- return function nextTick(fn) {
60
- setTimeout(fn, 0);
61
- };
62
- })();
24
+ draining = false;
25
+ }
26
+ process.nextTick = function (fun) {
27
+ queue.push(fun);
28
+ if (!draining) {
29
+ setTimeout(drainQueue, 0);
30
+ }
31
+ };
63
32
64
33
process.title = 'browser';
65
34
process.browser = true;
66
35
process.env = {};
67
36
process.argv = [];
37
+ process.version = ''; // empty string to avoid regexp issues
68
38
69
39
function noop() {}
70
40
@@ -85,6 +55,7 @@ process.cwd = function () { return '/' };
85
55
process.chdir = function (dir) {
86
56
throw new Error('process.chdir is not supported');
87
57
};
58
+ process.umask = function() { return 0; };
88
59
89
60
},{}],2:[function(require,module,exports){
90
61
/**
@@ -466,7 +437,6 @@ module.exports = CSSCore;
466
437
*/
467
438
var isUnitlessNumber = {
468
439
columnCount: true,
469
- fillOpacity: true,
470
440
flex: true,
471
441
flexGrow: true,
472
442
flexShrink: true,
@@ -478,7 +448,11 @@ var isUnitlessNumber = {
478
448
orphans: true,
479
449
widows: true,
480
450
zIndex: true,
481
- zoom: true
451
+ zoom: true,
452
+
453
+ // SVG-related properties
454
+ fillOpacity: true,
455
+ strokeOpacity: true
482
456
};
483
457
484
458
/**
@@ -3718,7 +3692,11 @@ var HTMLDOMPropertyConfig = {
3718
3692
draggable: null,
3719
3693
encType: null,
3720
3694
form: MUST_USE_ATTRIBUTE,
3695
+ formAction: MUST_USE_ATTRIBUTE,
3696
+ formEncType: MUST_USE_ATTRIBUTE,
3697
+ formMethod: MUST_USE_ATTRIBUTE,
3721
3698
formNoValidate: HAS_BOOLEAN_VALUE,
3699
+ formTarget: MUST_USE_ATTRIBUTE,
3722
3700
frameBorder: MUST_USE_ATTRIBUTE,
3723
3701
height: MUST_USE_ATTRIBUTE,
3724
3702
hidden: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
@@ -3733,6 +3711,8 @@ var HTMLDOMPropertyConfig = {
3733
3711
list: MUST_USE_ATTRIBUTE,
3734
3712
loop: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
3735
3713
manifest: MUST_USE_ATTRIBUTE,
3714
+ marginHeight: null,
3715
+ marginWidth: null,
3736
3716
max: null,
3737
3717
maxLength: MUST_USE_ATTRIBUTE,
3738
3718
media: MUST_USE_ATTRIBUTE,
@@ -4464,7 +4444,7 @@ if ("production" !== process.env.NODE_ENV) {
4464
4444
4465
4445
// Version exists only in the open-source version of React, not in Facebook's
4466
4446
// internal version.
4467
- React.version = '0.12.0 ';
4447
+ React.version = '0.12.2 ';
4468
4448
4469
4449
module.exports = React;
4470
4450
@@ -7146,7 +7126,7 @@ var ReactCompositeComponentMixin = {
7146
7126
boundMethod.__reactBoundArguments = null;
7147
7127
var componentName = component.constructor.displayName;
7148
7128
var _bind = boundMethod.bind;
7149
- boundMethod.bind = function(newThis ) {var args=Array.prototype.slice.call (arguments,1 );
7129
+ boundMethod.bind = function(newThis ) {for ( var args=[],$__0=1,$__1=arguments.length;$__0<$__1;$__0++) args.push (arguments[$__0] );
7150
7130
// User is trying to bind() an autobound method; we effectively will
7151
7131
// ignore the value of "this" that the user is trying to use, so
7152
7132
// let's warn.
@@ -9495,7 +9475,7 @@ var ReactDefaultPerf = {
9495
9475
},
9496
9476
9497
9477
measure: function(moduleName, fnName, func) {
9498
- return function() {var args=Array.prototype.slice.call (arguments,0 );
9478
+ return function() {for ( var args=[],$__0=0,$__1=arguments.length;$__0<$__1;$__0++) args.push (arguments[$__0] );
9499
9479
var totalTime;
9500
9480
var rv;
9501
9481
var start;
@@ -9999,7 +9979,7 @@ ReactElement.createElement = function(type, config, children) {
9999
9979
}
10000
9980
10001
9981
// Resolve default props
10002
- if (type.defaultProps) {
9982
+ if (type && type .defaultProps) {
10003
9983
var defaultProps = type.defaultProps;
10004
9984
for (propName in defaultProps) {
10005
9985
if (typeof props[propName] === 'undefined') {
@@ -10068,6 +10048,7 @@ module.exports = ReactElement;
10068
10048
10069
10049
}).call(this,require('_process'))
10070
10050
},{"./ReactContext":41,"./ReactCurrentOwner":42,"./warning":161,"_process":1}],59:[function(require,module,exports){
10051
+ (function (process){
10071
10052
/**
10072
10053
* Copyright 2014, Facebook, Inc.
10073
10054
* All rights reserved.
@@ -10093,6 +10074,7 @@ var ReactPropTypeLocations = require("./ReactPropTypeLocations");
10093
10074
var ReactCurrentOwner = require("./ReactCurrentOwner");
10094
10075
10095
10076
var monitorCodeUse = require("./monitorCodeUse");
10077
+ var warning = require("./warning");
10096
10078
10097
10079
/**
10098
10080
* Warn if there's no key explicitly set on dynamic arrays of children or
@@ -10290,6 +10272,15 @@ function checkPropTypes(componentName, propTypes, props, location) {
10290
10272
var ReactElementValidator = {
10291
10273
10292
10274
createElement: function(type, props, children) {
10275
+ // We warn in this case but don't throw. We expect the element creation to
10276
+ // succeed and there will likely be errors in render.
10277
+ ("production" !== process.env.NODE_ENV ? warning(
10278
+ type != null,
10279
+ 'React.createElement: type should not be null or undefined. It should ' +
10280
+ 'be a string (for DOM elements) or a ReactClass (for composite ' +
10281
+ 'components).'
10282
+ ) : null);
10283
+
10293
10284
var element = ReactElement.createElement.apply(this, arguments);
10294
10285
10295
10286
// The result can be nullish if a mock or a custom function is used.
@@ -10302,22 +10293,24 @@ var ReactElementValidator = {
10302
10293
validateChildKeys(arguments[i], type);
10303
10294
}
10304
10295
10305
- var name = type.displayName;
10306
- if (type.propTypes) {
10307
- checkPropTypes(
10308
- name,
10309
- type.propTypes,
10310
- element.props,
10311
- ReactPropTypeLocations.prop
10312
- );
10313
- }
10314
- if (type.contextTypes) {
10315
- checkPropTypes(
10316
- name,
10317
- type.contextTypes,
10318
- element._context,
10319
- ReactPropTypeLocations.context
10320
- );
10296
+ if (type) {
10297
+ var name = type.displayName;
10298
+ if (type.propTypes) {
10299
+ checkPropTypes(
10300
+ name,
10301
+ type.propTypes,
10302
+ element.props,
10303
+ ReactPropTypeLocations.prop
10304
+ );
10305
+ }
10306
+ if (type.contextTypes) {
10307
+ checkPropTypes(
10308
+ name,
10309
+ type.contextTypes,
10310
+ element._context,
10311
+ ReactPropTypeLocations.context
10312
+ );
10313
+ }
10321
10314
}
10322
10315
return element;
10323
10316
},
@@ -10335,7 +10328,8 @@ var ReactElementValidator = {
10335
10328
10336
10329
module.exports = ReactElementValidator;
10337
10330
10338
- },{"./ReactCurrentOwner":42,"./ReactElement":58,"./ReactPropTypeLocations":78,"./monitorCodeUse":151}],60:[function(require,module,exports){
10331
+ }).call(this,require('_process'))
10332
+ },{"./ReactCurrentOwner":42,"./ReactElement":58,"./ReactPropTypeLocations":78,"./monitorCodeUse":151,"./warning":161,"_process":1}],60:[function(require,module,exports){
10339
10333
(function (process){
10340
10334
/**
10341
10335
* Copyright 2014, Facebook, Inc.
@@ -12783,7 +12777,7 @@ function createInstanceForTag(tag, props, parentType) {
12783
12777
12784
12778
var ReactNativeComponent = {
12785
12779
createInstanceForTag: createInstanceForTag,
12786
- injection: ReactNativeComponentInjection,
12780
+ injection: ReactNativeComponentInjection
12787
12781
};
12788
12782
12789
12783
module.exports = ReactNativeComponent;
@@ -14398,7 +14392,7 @@ var ReactTestUtils = {
14398
14392
mockComponent: function(module, mockTagName) {
14399
14393
mockTagName = mockTagName || module.mockTagName || "div";
14400
14394
14401
- var ConvenienceConstructor = React.createClass({displayName: ' ConvenienceConstructor' ,
14395
+ var ConvenienceConstructor = React.createClass({displayName: " ConvenienceConstructor" ,
14402
14396
render: function() {
14403
14397
return React.createElement(
14404
14398
mockTagName,
@@ -19986,7 +19980,7 @@ var emptyFunction = require("./emptyFunction");
19986
19980
var warning = emptyFunction;
19987
19981
19988
19982
if ("production" !== process.env.NODE_ENV) {
19989
- warning = function(condition, format ) {var args=Array.prototype.slice.call (arguments,2 );
19983
+ warning = function(condition, format ) {for ( var args=[],$__0=2,$__1=arguments.length;$__0<$__1;$__0++) args.push (arguments[$__0] );
19990
19984
if (format === undefined) {
19991
19985
throw new Error(
19992
19986
'`warning(condition, format, ...args)` requires a warning ' +
0 commit comments