mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Final docs update for 0.14
This commit is contained in:
BIN
downloads/react-0.14.0.zip
Normal file
BIN
downloads/react-0.14.0.zip
Normal file
Binary file not shown.
2
js/react-dom.js
vendored
2
js/react-dom.js
vendored
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* ReactDOM v0.14.0-rc1
|
||||
* ReactDOM v0.14.0
|
||||
*
|
||||
* Copyright 2013-2015, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
|
||||
11
js/react.js
vendored
11
js/react.js
vendored
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* React v0.14.0-rc1
|
||||
* React v0.14.0
|
||||
*/
|
||||
(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){
|
||||
/**
|
||||
@@ -5971,8 +5971,13 @@ var ReactCompositeComponentMixin = {
|
||||
attachRef: function (ref, component) {
|
||||
var inst = this.getPublicInstance();
|
||||
!(inst != null) ? "development" !== 'production' ? invariant(false, 'Stateless function components cannot have refs.') : invariant(false) : undefined;
|
||||
var publicComponentInstance = component.getPublicInstance();
|
||||
if ("development" !== 'production') {
|
||||
var componentName = component && component.getName ? component.getName() : 'a component';
|
||||
"development" !== 'production' ? warning(publicComponentInstance != null, 'Stateless function components cannot be given refs ' + '(See ref "%s" in %s created by %s). ' + 'Attempts to access this ref will fail.', ref, componentName, this.getName()) : undefined;
|
||||
}
|
||||
var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;
|
||||
refs[ref] = component.getPublicInstance();
|
||||
refs[ref] = publicComponentInstance;
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -13825,7 +13830,7 @@ module.exports = ReactUpdates;
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = '0.14.0-rc1';
|
||||
module.exports = '0.14.0';
|
||||
},{}],85:[function(_dereq_,module,exports){
|
||||
/**
|
||||
* Copyright 2013-2015, Facebook, Inc.
|
||||
|
||||
Reference in New Issue
Block a user