You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by db...@apache.org on 2015/09/16 03:10:02 UTC
[2/2] docs commit: Fixed React warning in console on plugins page
Fixed React warning in console on plugins page
Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/13f2e050
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/13f2e050
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/13f2e050
Branch: refs/heads/cordova-website
Commit: 13f2e050540bbaec0ae445f1ace3f30de7f721d4
Parents: 1c3217b
Author: riknoll <ri...@microsoft.com>
Authored: Tue Sep 15 15:07:28 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Tue Sep 15 18:09:53 2015 -0700
----------------------------------------------------------------------
www/static/plugins/plugin.jsx | 2 +-
www/static/plugins/supportedplatforms.jsx | 8 +++++++-
2 files changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/13f2e050/www/static/plugins/plugin.jsx
----------------------------------------------------------------------
diff --git a/www/static/plugins/plugin.jsx b/www/static/plugins/plugin.jsx
index 4c8a183..4a41550 100755
--- a/www/static/plugins/plugin.jsx
+++ b/www/static/plugins/plugin.jsx
@@ -78,7 +78,7 @@ var Plugin = React.createClass({
<div className="row">
<div className="col-sm-8">
<p>{this.props.plugin.description}</p>
- <SupportedPlatforms keywords={this.props.plugin.keywords}/>
+ <SupportedPlatforms keywords={this.props.plugin.keywords} plugin={this.props.plugin.name}/>
</div>
<div className="col-sm-3 col-sm-offset-1">
<hr className="visible-xs results-divider-line"/>
http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/13f2e050/www/static/plugins/supportedplatforms.jsx
----------------------------------------------------------------------
diff --git a/www/static/plugins/supportedplatforms.jsx b/www/static/plugins/supportedplatforms.jsx
index cc9c6be..e125cbd 100755
--- a/www/static/plugins/supportedplatforms.jsx
+++ b/www/static/plugins/supportedplatforms.jsx
@@ -56,11 +56,17 @@ var SupportedPlatforms = React.createClass({
}
});
+ var that = this;
+
sortedPlatforms.forEach(function(platform) {
if(platform.present) {
// Becuase these images are taken from a sprite sheet, we have
// to use title rather than alt-text
- platformsSupported.push(<li><div className={platform.icon} title={platform.alt}></div></li>)
+ platformsSupported.push(
+ <li key={that.props.plugin + "-" + platform.alt}>
+ <div className={platform.icon} title={platform.alt}></div>
+ </li>
+ );
}
});
return (
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org