Remove default argument syntax on getVersionedGithubPath()

Summary:
Removes ES6 syntax of default arguments to fix website building as per #7434. [More info](https://github.com/facebook/react-native/pull/7434).
Closes https://github.com/facebook/react-native/pull/7439

Differential Revision: D3274206

fb-gh-sync-id: 3a8f5950ead91cf59c27fd384e97bf9587005398
fbshipit-source-id: 3a8f5950ead91cf59c27fd384e97bf9587005398
This commit is contained in:
Milan Pavlik 2016-05-07 14:09:37 -07:00 committed by Facebook Github Bot 9
parent 1d101f4236
commit 0fab691e6f
1 changed files with 3 additions and 2 deletions

View File

@ -12,12 +12,13 @@
var H = require('Header');
var React = require('React');
function getVersionedGithubPath(path, version='next') {
function getVersionedGithubPath(path, version) {
version = version || 'next';
return [
'https://github.com/facebook/react-native/blob',
version === 'next' ? 'master' : version + '-stable',
path
].join('/')
].join('/');
}
var HeaderWithGithub = React.createClass({