Final docs update for 0.14
Paul O’Shannessy committed
Oct 7, 2015 at 10:23 UTC
30386b2e86b156664a7129af94f88d4f643aab48
3 files changed
+9
-4
docs/downloads/react-0.14.0.zip
Binary files /dev/null and b/docs/downloads/react-0.14.0.zip differ
docs/js/react-dom.js
+1
-1
@@ -1,5 +1,5 @@
1
/**
2
- * ReactDOM v0.14.0-rc1
2
+ * ReactDOM v0.14.0
3
*
4
* Copyright 2013-2015, Facebook, Inc.
5
* All rights reserved.
docs/js/react.js
+8
-3
@@ -1,5 +1,5 @@
1
/**
2
- * React v0.14.0-rc1
2
+ * React v0.14.0
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
/**
@@ -5971,8 +5971,13 @@ var ReactCompositeComponentMixin = {
5971
attachRef: function (ref, component) {
5972
var inst = this.getPublicInstance();
5973
!(inst != null) ? "development" !== 'production' ? invariant(false, 'Stateless function components cannot have refs.') : invariant(false) : undefined;
5974
+ var publicComponentInstance = component.getPublicInstance();
5975
+ if ("development" !== 'production') {
5976
+ var componentName = component && component.getName ? component.getName() : 'a component';
5977
+ "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;
5978
+ }
5979
var refs = inst.refs === emptyObject ? inst.refs = {} : inst.refs;
5975
- refs[ref] = component.getPublicInstance();
5980
+ refs[ref] = publicComponentInstance;
5981
},
5982
5983
/**
@@ -13825,7 +13830,7 @@ module.exports = ReactUpdates;
13830
13831
'use strict';
13832
13828
-module.exports = '0.14.0-rc1';
13833
+module.exports = '0.14.0';
13834
},{}],85:[function(_dereq_,module,exports){
13835
/**
13836
* Copyright 2013-2015, Facebook, Inc.