|
1 | 1 | /** |
2 | | - * React v0.14.1 |
| 2 | + * React v0.14.2 |
3 | 3 | */ |
4 | 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 | 5 | /** |
@@ -3256,6 +3256,7 @@ var HTMLDOMPropertyConfig = { |
3256 | 3256 | icon: null, |
3257 | 3257 | id: MUST_USE_PROPERTY, |
3258 | 3258 | inputMode: MUST_USE_ATTRIBUTE, |
| 3259 | + integrity: null, |
3259 | 3260 | is: MUST_USE_ATTRIBUTE, |
3260 | 3261 | keyParams: MUST_USE_ATTRIBUTE, |
3261 | 3262 | keyType: MUST_USE_ATTRIBUTE, |
@@ -6272,6 +6273,7 @@ var registrationNameModules = ReactBrowserEventEmitter.registrationNameModules; |
6272 | 6273 | // For quickly matching children type, to test if can be treated as content. |
6273 | 6274 | var CONTENT_TYPES = { 'string': true, 'number': true }; |
6274 | 6275 |
|
| 6276 | +var CHILDREN = keyOf({ children: null }); |
6275 | 6277 | var STYLE = keyOf({ style: null }); |
6276 | 6278 | var HTML = keyOf({ __html: null }); |
6277 | 6279 |
|
@@ -6762,7 +6764,9 @@ ReactDOMComponent.Mixin = { |
6762 | 6764 | } |
6763 | 6765 | var markup = null; |
6764 | 6766 | if (this._tag != null && isCustomComponent(this._tag, props)) { |
6765 | | - markup = DOMPropertyOperations.createMarkupForCustomAttribute(propKey, propValue); |
| 6767 | + if (propKey !== CHILDREN) { |
| 6768 | + markup = DOMPropertyOperations.createMarkupForCustomAttribute(propKey, propValue); |
| 6769 | + } |
6766 | 6770 | } else { |
6767 | 6771 | markup = DOMPropertyOperations.createMarkupForProperty(propKey, propValue); |
6768 | 6772 | } |
@@ -7022,6 +7026,9 @@ ReactDOMComponent.Mixin = { |
7022 | 7026 | if (!node) { |
7023 | 7027 | node = ReactMount.getNode(this._rootNodeID); |
7024 | 7028 | } |
| 7029 | + if (propKey === CHILDREN) { |
| 7030 | + nextProp = null; |
| 7031 | + } |
7025 | 7032 | DOMPropertyOperations.setValueForAttribute(node, propKey, nextProp); |
7026 | 7033 | } else if (DOMProperty.properties[propKey] || DOMProperty.isCustomAttribute(propKey)) { |
7027 | 7034 | if (!node) { |
@@ -9682,11 +9689,12 @@ if ("development" !== 'production') { |
9682 | 9689 | var fakeNode = document.createElement('react'); |
9683 | 9690 | ReactErrorUtils.invokeGuardedCallback = function (name, func, a, b) { |
9684 | 9691 | var boundFunc = func.bind(null, a, b); |
9685 | | - fakeNode.addEventListener(name, boundFunc, false); |
| 9692 | + var evtType = 'react-' + name; |
| 9693 | + fakeNode.addEventListener(evtType, boundFunc, false); |
9686 | 9694 | var evt = document.createEvent('Event'); |
9687 | | - evt.initEvent(name, false, false); |
| 9695 | + evt.initEvent(evtType, false, false); |
9688 | 9696 | fakeNode.dispatchEvent(evt); |
9689 | | - fakeNode.removeEventListener(name, boundFunc, false); |
| 9697 | + fakeNode.removeEventListener(evtType, boundFunc, false); |
9690 | 9698 | }; |
9691 | 9699 | } |
9692 | 9700 | } |
@@ -13829,7 +13837,7 @@ module.exports = ReactUpdates; |
13829 | 13837 |
|
13830 | 13838 | 'use strict'; |
13831 | 13839 |
|
13832 | | -module.exports = '0.14.1'; |
| 13840 | +module.exports = '0.14.2'; |
13833 | 13841 | },{}],85:[function(_dereq_,module,exports){ |
13834 | 13842 | /** |
13835 | 13843 | * Copyright 2013-2015, Facebook, Inc. |
@@ -15853,7 +15861,7 @@ module.exports = adler32; |
15853 | 15861 | var canDefineProperty = false; |
15854 | 15862 | if ("development" !== 'production') { |
15855 | 15863 | try { |
15856 | | - Object.defineProperty({}, 'x', {}); |
| 15864 | + Object.defineProperty({}, 'x', { get: function () {} }); |
15857 | 15865 | canDefineProperty = true; |
15858 | 15866 | } catch (x) { |
15859 | 15867 | // IE will fail on defineProperty |
|
0 commit comments