Update website with 0.13.2 builds
(cherry picked from commit 179f90452570193b4e1037698bafe5628afe5e7b)
Paul O’Shannessy committed
Apr 18, 2015 at 15:33 UTC
1185fdaf1fdc8c79f73444e01d3541a4a1f319ed
3 files changed
+43
-27
docs/downloads/react-0.13.2.zip
Binary files /dev/null and b/docs/downloads/react-0.13.2.zip differ
docs/js/JSXTransformer.js
+14
-19
@@ -1,5 +1,5 @@
1
/**
2
- * JSXTransformer v0.13.1
2
+ * JSXTransformer v0.13.2
3
*/
4
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.JSXTransformer = f()}})(function(){var define,module,exports;return (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(_dereq_,module,exports){
5
/**
@@ -502,8 +502,9 @@ Buffer.TYPED_ARRAY_SUPPORT = (function () {
502
* By augmenting the instances, we can avoid modifying the `Uint8Array`
503
* prototype.
504
*/
505
-function Buffer (subject, encoding, noZero) {
506
- if (!(this instanceof Buffer)) return new Buffer(subject, encoding, noZero)
505
+function Buffer (subject, encoding) {
506
+ var self = this
507
+ if (!(self instanceof Buffer)) return new Buffer(subject, encoding)
508
509
var type = typeof subject
510
var length
@@ -528,12 +529,9 @@ function Buffer (subject, encoding, noZero) {
529
if (length < 0) length = 0
530
else length >>>= 0 // coerce to uint32
531
531
- var self = this
532
if (Buffer.TYPED_ARRAY_SUPPORT) {
533
// Preferred: Return an augmented `Uint8Array` instance for best performance
534
- /*eslint-disable consistent-this */
535
- self = Buffer._augment(new Uint8Array(length))
536
- /*eslint-enable consistent-this */
534
+ self = Buffer._augment(new Uint8Array(length)) // eslint-disable-line consistent-this
535
} else {
536
// Fallback: Return THIS instance of Buffer (created by `new`)
537
self.length = length
@@ -557,7 +555,7 @@ function Buffer (subject, encoding, noZero) {
555
}
556
} else if (type === 'string') {
557
self.write(subject, 0, encoding)
560
- } else if (type === 'number' && !Buffer.TYPED_ARRAY_SUPPORT && !noZero) {
558
+ } else if (type === 'number' && !Buffer.TYPED_ARRAY_SUPPORT) {
559
for (i = 0; i < length; i++) {
560
self[i] = 0
561
}
@@ -568,10 +566,10 @@ function Buffer (subject, encoding, noZero) {
566
return self
567
}
568
571
-function SlowBuffer (subject, encoding, noZero) {
572
- if (!(this instanceof SlowBuffer)) return new SlowBuffer(subject, encoding, noZero)
569
+function SlowBuffer (subject, encoding) {
570
+ if (!(this instanceof SlowBuffer)) return new SlowBuffer(subject, encoding)
571
574
- var buf = new Buffer(subject, encoding, noZero)
572
+ var buf = new Buffer(subject, encoding)
573
delete buf.parent
574
return buf
575
}
@@ -619,7 +617,7 @@ Buffer.isEncoding = function isEncoding (encoding) {
617
}
618
619
Buffer.concat = function concat (list, totalLength) {
622
- if (!isArray(list)) throw new TypeError('Usage: Buffer.concat(list[, length])')
620
+ if (!isArray(list)) throw new TypeError('list argument must be an Array of Buffers.')
621
622
if (list.length === 0) {
623
return new Buffer(0)
@@ -1012,7 +1010,7 @@ Buffer.prototype.slice = function slice (start, end) {
1010
newBuf = Buffer._augment(this.subarray(start, end))
1011
} else {
1012
var sliceLen = end - start
1015
- newBuf = new Buffer(sliceLen, undefined, true)
1013
+ newBuf = new Buffer(sliceLen, undefined)
1014
for (var i = 0; i < sliceLen; i++) {
1015
newBuf[i] = this[i + start]
1016
}
@@ -1456,8 +1454,6 @@ Buffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert
1454
1455
// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)
1456
Buffer.prototype.copy = function copy (target, target_start, start, end) {
1459
- var self = this // source
1460
-
1457
if (!start) start = 0
1458
if (!end && end !== 0) end = this.length
1459
if (target_start >= target.length) target_start = target.length
@@ -1466,13 +1462,13 @@ Buffer.prototype.copy = function copy (target, target_start, start, end) {
1462
1463
// Copy 0 bytes; we're done
1464
if (end === start) return 0
1469
- if (target.length === 0 || self.length === 0) return 0
1465
+ if (target.length === 0 || this.length === 0) return 0
1466
1467
// Fatal error conditions
1468
if (target_start < 0) {
1469
throw new RangeError('targetStart out of bounds')
1470
}
1475
- if (start < 0 || start >= self.length) throw new RangeError('sourceStart out of bounds')
1471
+ if (start < 0 || start >= this.length) throw new RangeError('sourceStart out of bounds')
1472
if (end < 0) throw new RangeError('sourceEnd out of bounds')
1473
1474
// Are we oob?
@@ -1557,8 +1553,7 @@ Buffer._augment = function _augment (arr) {
1553
arr.constructor = Buffer
1554
arr._isBuffer = true
1555
1560
- // save reference to original Uint8Array get/set methods before overwriting
1561
- arr._get = arr.get
1556
+ // save reference to original Uint8Array set method before overwriting
1557
arr._set = arr.set
1558
1559
// deprecated, will be removed in node 0.13+
docs/js/react.js
+29
-8
@@ -1,5 +1,5 @@
1
/**
2
- * React v0.13.1
2
+ * React v0.13.2
3
*/
4
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.React = f()}})(function(){var define,module,exports;return (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(_dereq_,module,exports){
5
/**
@@ -147,7 +147,7 @@ if ("production" !== "development") {
147
}
148
}
149
150
-React.version = '0.13.1';
150
+React.version = '0.13.2';
151
152
module.exports = React;
153
@@ -696,7 +696,9 @@ var isUnitlessNumber = {
696
columnCount: true,
697
flex: true,
698
flexGrow: true,
699
+ flexPositive: true,
700
flexShrink: true,
701
+ flexNegative: true,
702
fontWeight: true,
703
lineClamp: true,
704
lineHeight: true,
@@ -709,7 +711,9 @@ var isUnitlessNumber = {
711
712
// SVG-related properties
713
fillOpacity: true,
712
- strokeOpacity: true
714
+ strokeDashoffset: true,
715
+ strokeOpacity: true,
716
+ strokeWidth: true
717
};
718
719
/**
@@ -3774,6 +3778,7 @@ var HTMLDOMPropertyConfig = {
3778
headers: null,
3779
height: MUST_USE_ATTRIBUTE,
3780
hidden: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
3781
+ high: null,
3782
href: null,
3783
hrefLang: null,
3784
htmlFor: null,
@@ -3784,6 +3789,7 @@ var HTMLDOMPropertyConfig = {
3789
lang: null,
3790
list: MUST_USE_ATTRIBUTE,
3791
loop: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
3792
+ low: null,
3793
manifest: MUST_USE_ATTRIBUTE,
3794
marginHeight: null,
3795
marginWidth: null,
@@ -3798,6 +3804,7 @@ var HTMLDOMPropertyConfig = {
3804
name: null,
3805
noValidate: HAS_BOOLEAN_VALUE,
3806
open: HAS_BOOLEAN_VALUE,
3807
+ optimum: null,
3808
pattern: null,
3809
placeholder: null,
3810
poster: null,
@@ -3811,6 +3818,7 @@ var HTMLDOMPropertyConfig = {
3818
rowSpan: null,
3819
sandbox: null,
3820
scope: null,
3821
+ scoped: HAS_BOOLEAN_VALUE,
3822
scrolling: null,
3823
seamless: MUST_USE_ATTRIBUTE | HAS_BOOLEAN_VALUE,
3824
selected: MUST_USE_PROPERTY | HAS_BOOLEAN_VALUE,
@@ -3852,7 +3860,9 @@ var HTMLDOMPropertyConfig = {
3860
itemID: MUST_USE_ATTRIBUTE,
3861
itemRef: MUST_USE_ATTRIBUTE,
3862
// property is supported for OpenGraph in meta tags.
3855
- property: null
3863
+ property: null,
3864
+ // IE-only attribute that controls focus behavior
3865
+ unselectable: MUST_USE_ATTRIBUTE
3866
},
3867
DOMAttributeNames: {
3868
acceptCharset: 'accept-charset',
@@ -6332,6 +6342,14 @@ var ReactCompositeComponentMixin = {
6342
'Did you mean to define a state property instead?',
6343
this.getName() || 'a component'
6344
) : null);
6345
+ ("production" !== "development" ? warning(
6346
+ !inst.getDefaultProps ||
6347
+ inst.getDefaultProps.isReactClassApproved,
6348
+ 'getDefaultProps was defined on %s, a plain JavaScript class. ' +
6349
+ 'This is only supported for classes created using React.createClass. ' +
6350
+ 'Use a static property to define defaultProps instead.',
6351
+ this.getName() || 'a component'
6352
+ ) : null);
6353
("production" !== "development" ? warning(
6354
!inst.propTypes,
6355
'propTypes was defined as an instance property on %s. Use a static ' +
@@ -6901,7 +6919,7 @@ var ReactCompositeComponentMixin = {
6919
this._renderedComponent,
6920
thisID,
6921
transaction,
6904
- context
6922
+ this._processChildContext(context)
6923
);
6924
this._replaceNodeWithMarkupByID(prevComponentID, nextMarkup);
6925
}
@@ -7769,6 +7787,8 @@ ReactDOMComponent.Mixin = {
7787
if (propKey === STYLE) {
7788
if (nextProp) {
7789
nextProp = this._previousStyleCopy = assign({}, nextProp);
7790
+ } else {
7791
+ this._previousStyleCopy = null;
7792
}
7793
if (lastProp) {
7794
// Unset styles on `lastProp` but not on `nextProp`.
@@ -10375,9 +10395,9 @@ function warnForPropsMutation(propName, element) {
10395
10396
("production" !== "development" ? warning(
10397
false,
10378
- 'Don\'t set .props.%s of the React component%s. ' +
10379
- 'Instead, specify the correct value when ' +
10380
- 'initially creating the element.%s',
10398
+ 'Don\'t set .props.%s of the React component%s. Instead, specify the ' +
10399
+ 'correct value when initially creating the element or use ' +
10400
+ 'React.cloneElement to make a new element with updated props.%s',
10401
propName,
10402
elementInfo,
10403
ownerInfo
@@ -18274,6 +18294,7 @@ assign(
18294
function isInternalComponentType(type) {
18295
return (
18296
typeof type === 'function' &&
18297
+ typeof type.prototype !== 'undefined' &&
18298
typeof type.prototype.mountComponent === 'function' &&
18299
typeof type.prototype.receiveComponent === 'function'
18300
);