Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docs] Remove empty lines to ensure JavaScript is loaded #16917

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,6 @@ to the [Tutorial](docs/tutorial.html).
container.className.replace(RegExp('display-' + type + '-[a-z]+ ?'), '');
event && event.preventDefault();
}

function convertBlocks() {
// Convert <div>...<span><block /></span>...</div>
// Into <div>...<block />...</div>
Expand All @@ -671,12 +670,10 @@ to the [Tutorial](docs/tutorial.html).
}
}
}

function guessPlatformAndOS() {
if (!document.querySelector('block')) {
return;
}

// If we are coming to the page with a hash in it (i.e. from a search, for example), try to get
// us as close as possible to the correct platform and dev os using the hashtag and block walk up.
var foundHash = false;
Expand All @@ -699,7 +696,6 @@ to the [Tutorial](docs/tutorial.html).
if (parent.tagName === 'BLOCK') {
// Could be more than one target os and dev platform, but just choose some sort of order
// of priority here.

// Dev OS
if (parent.className.indexOf('mac') > -1) {
displayTab('os', 'mac');
Expand All @@ -717,7 +713,6 @@ to the [Tutorial](docs/tutorial.html).
} else {
break;
}

// Target Platform
if (parent.className.indexOf('ios') > -1) {
displayTab('platform', 'ios');
Expand All @@ -730,7 +725,6 @@ to the [Tutorial](docs/tutorial.html).
} else {
break;
}

// Guide
if (parent.className.indexOf('native') > -1) {
displayTab('guide', 'native');
Expand All @@ -743,15 +737,13 @@ to the [Tutorial](docs/tutorial.html).
} else {
break;
}

break;
}
parent = parent.parentElement;
}
}
}
}

// Do the default if there is no matching hash
if (!foundHash) {
var isMac = navigator.platform === 'MacIntel';
Expand All @@ -765,7 +757,6 @@ to the [Tutorial](docs/tutorial.html).
displayTab('language', 'objc');
}
}

convertBlocks();
guessPlatformAndOS();
</script>
9 changes: 0 additions & 9 deletions docs/integration-with-existing-apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,6 @@ At this point you can continue developing your app as usual. Refer to our [debug
container.className.replace(RegExp('display-' + type + '-[a-z]+ ?'), '');
event && event.preventDefault();
}

function convertBlocks() {
// Convert <div>...<span><block /></span>...</div>
// Into <div>...<block />...</div>
Expand All @@ -853,12 +852,10 @@ At this point you can continue developing your app as usual. Refer to our [debug
}
}
}

function guessPlatformAndOS() {
if (!document.querySelector('block')) {
return;
}

// If we are coming to the page with a hash in it (i.e. from a search, for example), try to get
// us as close as possible to the correct platform and dev os using the hashtag and block walk up.
var foundHash = false;
Expand All @@ -881,7 +878,6 @@ At this point you can continue developing your app as usual. Refer to our [debug
if (parent.tagName === 'BLOCK') {
// Could be more than one target os and dev platform, but just choose some sort of order
// of priority here.

// Dev OS
if (parent.className.indexOf('mac') > -1) {
displayTab('os', 'mac');
Expand All @@ -899,7 +895,6 @@ At this point you can continue developing your app as usual. Refer to our [debug
} else {
break;
}

// Target Platform
if (parent.className.indexOf('ios') > -1) {
displayTab('platform', 'ios');
Expand All @@ -912,7 +907,6 @@ At this point you can continue developing your app as usual. Refer to our [debug
} else {
break;
}

// Guide
if (parent.className.indexOf('native') > -1) {
displayTab('guide', 'native');
Expand All @@ -925,15 +919,13 @@ At this point you can continue developing your app as usual. Refer to our [debug
} else {
break;
}

break;
}
parent = parent.parentElement;
}
}
}
}

// Do the default if there is no matching hash
if (!foundHash) {
var isMac = navigator.platform === 'MacIntel';
Expand All @@ -947,7 +939,6 @@ At this point you can continue developing your app as usual. Refer to our [debug
displayTab('language', 'objc');
}
}

convertBlocks();
guessPlatformAndOS();
</script>
9 changes: 0 additions & 9 deletions docs/running-on-device.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ You have built a great app using React Native, and you are now itching to releas
container.className = 'display-' + type + '-' + value + ' ' +
container.className.replace(RegExp('display-' + type + '-[a-z]+ ?'), '');
}

function convertBlocks() {
// Convert <div>...<span><block /></span>...</div>
// Into <div>...<block />...</div>
Expand All @@ -390,12 +389,10 @@ You have built a great app using React Native, and you are now itching to releas
}
}
}

function guessPlatformAndOS() {
if (!document.querySelector('block')) {
return;
}

// If we are coming to the page with a hash in it (i.e. from a search, for example), try to get
// us as close as possible to the correct platform and dev os using the hashtag and block walk up.
var foundHash = false;
Expand All @@ -418,7 +415,6 @@ You have built a great app using React Native, and you are now itching to releas
if (parent.tagName === 'BLOCK') {
// Could be more than one target os and dev platform, but just choose some sort of order
// of priority here.

// Dev OS
if (parent.className.indexOf('mac') > -1) {
displayTab('os', 'mac');
Expand All @@ -436,7 +432,6 @@ You have built a great app using React Native, and you are now itching to releas
} else {
break;
}

// Target Platform
if (parent.className.indexOf('ios') > -1) {
displayTab('platform', 'ios');
Expand All @@ -449,7 +444,6 @@ You have built a great app using React Native, and you are now itching to releas
} else {
break;
}

// Guide
if (parent.className.indexOf('native') > -1) {
displayTab('guide', 'native');
Expand All @@ -462,15 +456,13 @@ You have built a great app using React Native, and you are now itching to releas
} else {
break;
}

break;
}
parent = parent.parentElement;
}
}
}
}

// Do the default if there is no matching hash
if (!foundHash) {
var isMac = navigator.platform === 'MacIntel';
Expand All @@ -484,7 +476,6 @@ You have built a great app using React Native, and you are now itching to releas
displayTab('language', 'objc');
}
}

convertBlocks();
guessPlatformAndOS();
</script>