react
Advanced tools
Comparing version 0.14.1 to 0.14.2
@@ -17,3 +17,3 @@ /** | ||
try { | ||
Object.defineProperty({}, 'x', {}); | ||
Object.defineProperty({}, 'x', { get: function () {} }); | ||
canDefineProperty = true; | ||
@@ -20,0 +20,0 @@ } catch (x) { |
@@ -97,2 +97,3 @@ /** | ||
inputMode: MUST_USE_ATTRIBUTE, | ||
integrity: null, | ||
is: MUST_USE_ATTRIBUTE, | ||
@@ -99,0 +100,0 @@ keyParams: MUST_USE_ATTRIBUTE, |
@@ -53,2 +53,3 @@ /** | ||
var CHILDREN = keyOf({ children: null }); | ||
var STYLE = keyOf({ style: null }); | ||
@@ -544,3 +545,5 @@ var HTML = keyOf({ __html: null }); | ||
if (this._tag != null && isCustomComponent(this._tag, props)) { | ||
markup = DOMPropertyOperations.createMarkupForCustomAttribute(propKey, propValue); | ||
if (propKey !== CHILDREN) { | ||
markup = DOMPropertyOperations.createMarkupForCustomAttribute(propKey, propValue); | ||
} | ||
} else { | ||
@@ -805,2 +808,5 @@ markup = DOMPropertyOperations.createMarkupForProperty(propKey, propValue); | ||
} | ||
if (propKey === CHILDREN) { | ||
nextProp = null; | ||
} | ||
DOMPropertyOperations.setValueForAttribute(node, propKey, nextProp); | ||
@@ -807,0 +813,0 @@ } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) { |
@@ -67,7 +67,8 @@ /** | ||
var boundFunc = func.bind(null, a, b); | ||
fakeNode.addEventListener(name, boundFunc, false); | ||
var evtType = 'react-' + name; | ||
fakeNode.addEventListener(evtType, boundFunc, false); | ||
var evt = document.createEvent('Event'); | ||
evt.initEvent(name, false, false); | ||
evt.initEvent(evtType, false, false); | ||
fakeNode.dispatchEvent(evt); | ||
fakeNode.removeEventListener(name, boundFunc, false); | ||
fakeNode.removeEventListener(evtType, boundFunc, false); | ||
}; | ||
@@ -74,0 +75,0 @@ } |
@@ -14,2 +14,2 @@ /** | ||
module.exports = '0.14.1'; | ||
module.exports = '0.14.2'; |
{ | ||
"name": "react", | ||
"description": "React is a JavaScript library for building user interfaces.", | ||
"version": "0.14.1", | ||
"version": "0.14.2", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "react" |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2603823
60975