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: Fix simple typo, hopfully -> hopefully #943

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
114 changes: 57 additions & 57 deletions docs/assets/js/add-preview-buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,12 @@ return /******/ (function(modules) { // webpackBootstrap
return Object.prototype.toString.call(arg) === '[object Array]';
};

/**
* Loads the given name (or [name, options] pair) from the given table object
* holding the available presets or plugins.
*
* Returns undefined if the preset or plugin is not available; passes through
* name unmodified if it (or the first element of the pair) is not a string.
/**
* Loads the given name (or [name, options] pair) from the given table object
* holding the available presets or plugins.
*
* Returns undefined if the preset or plugin is not available; passes through
* name unmodified if it (or the first element of the pair) is not a string.
*/
function loadBuiltin(builtinTable, name) {
if (isArray(name) && typeof name[0] === 'string') {
Expand All @@ -216,8 +216,8 @@ return /******/ (function(modules) { // webpackBootstrap
return name;
}

/**
* Parses plugin names and presets from the specified options.
/**
* Parses plugin names and presets from the specified options.
*/
function processOptions(options) {
// Parse preset names
Expand Down Expand Up @@ -265,37 +265,37 @@ return /******/ (function(modules) { // webpackBootstrap
var availablePlugins = exports.availablePlugins = {};
var availablePresets = exports.availablePresets = {};
var buildExternalHelpers = exports.buildExternalHelpers = Babel.buildExternalHelpers;
/**
* Registers a named plugin for use with Babel.
/**
* Registers a named plugin for use with Babel.
*/
function registerPlugin(name, plugin) {
if (availablePlugins.hasOwnProperty(name)) {
console.warn('A plugin named "' + name + '" is already registered, it will be overridden');
}
availablePlugins[name] = plugin;
}
/**
* Registers multiple plugins for use with Babel. `newPlugins` should be an object where the key
* is the name of the plugin, and the value is the plugin itself.
/**
* Registers multiple plugins for use with Babel. `newPlugins` should be an object where the key
* is the name of the plugin, and the value is the plugin itself.
*/
function registerPlugins(newPlugins) {
Object.keys(newPlugins).forEach(function (name) {
return registerPlugin(name, newPlugins[name]);
});
}

/**
* Registers a named preset for use with Babel.
/**
* Registers a named preset for use with Babel.
*/
function registerPreset(name, preset) {
if (availablePresets.hasOwnProperty(name)) {
console.warn('A preset named "' + name + '" is already registered, it will be overridden');
}
availablePresets[name] = preset;
}
/**
* Registers multiple presets for use with Babel. `newPresets` should be an object where the key
* is the name of the preset, and the value is the preset itself.
/**
* Registers multiple presets for use with Babel. `newPresets` should be an object where the key
* is the name of the preset, and the value is the preset itself.
*/
function registerPresets(newPresets) {
Object.keys(newPresets).forEach(function (name) {
Expand Down Expand Up @@ -415,16 +415,16 @@ return /******/ (function(modules) { // webpackBootstrap
}, false);
}

/**
* Transform <script> tags with "text/babel" type.
* @param {Array} scriptTags specify script tags to transform, transform all in the <head> if not given
/**
* Transform <script> tags with "text/babel" type.
* @param {Array} scriptTags specify script tags to transform, transform all in the <head> if not given
*/
function transformScriptTags(scriptTags) {
(0, _transformScriptTags.runScripts)(transform, scriptTags);
}

/**
* Disables automatic transformation of <script> tags with "text/babel" type.
/**
* Disables automatic transformation of <script> tags with "text/babel" type.
*/
function disableScriptTags() {
window.removeEventListener('DOMContentLoaded', transformScriptTags);
Expand Down Expand Up @@ -1747,7 +1747,7 @@ return /******/ (function(modules) { // webpackBootstrap
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedSetTimeout.call(null, fun, 0);
} catch (e) {
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
// same as above but when it's a version of I.E. that must have the global object for 'this', hopefully our context correct otherwise it will throw a global error
return cachedSetTimeout.call(this, fun, 0);
}
}
Expand All @@ -1770,7 +1770,7 @@ return /******/ (function(modules) { // webpackBootstrap
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
return cachedClearTimeout.call(null, marker);
} catch (e) {
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
// same as above but when it's a version of I.E. that must have the global object for 'this', hopefully our context correct otherwise it will throw a global error.
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
return cachedClearTimeout.call(this, marker);
}
Expand Down Expand Up @@ -4324,7 +4324,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 49 */
/***/ (function(module, exports) {

/* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__;
/* WEBPACK VAR INJECTION */(function(__webpack_amd_options__) {module.exports = __webpack_amd_options__;

/* WEBPACK VAR INJECTION */}.call(exports, {}))

Expand Down Expand Up @@ -61543,9 +61543,9 @@ return /******/ (function(modules) { // webpackBootstrap
Object.defineProperty(exports, "__esModule", {
value: true
});
/**
* A shim that replaces Babel's require('package.json') statement.
* Babel requires the entire package.json file just to get the version number.
/**
* A shim that replaces Babel's require('package.json') statement.
* Babel requires the entire package.json file just to get the version number.
*/
var version = exports.version = ("6.26.0");

Expand All @@ -61562,22 +61562,22 @@ return /******/ (function(modules) { // webpackBootstrap
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

exports.runScripts = runScripts;
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of the React source tree. An additional
* grant of patent rights can be found in the PATENTS file in the same directory.
/**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of the React source tree. An additional
* grant of patent rights can be found in the PATENTS file in the same directory.
*/

var scriptTypes = ['text/jsx', 'text/babel'];

var headEl = void 0;
var inlineScriptCount = 0;

/**
* Actually transform the code.
/**
* Actually transform the code.
*/
function transformCode(transformFn, script) {
var source = void 0;
Expand All @@ -61596,9 +61596,9 @@ return /******/ (function(modules) { // webpackBootstrap
}, buildBabelOptions(script))).code;
}

/**
* Builds the Babel options for transforming the specified script, using some
* sensible default presets and plugins if none were explicitly provided.
/**
* Builds the Babel options for transforming the specified script, using some
* sensible default presets and plugins if none were explicitly provided.
*/
function buildBabelOptions(script) {
return {
Expand All @@ -61608,18 +61608,18 @@ return /******/ (function(modules) { // webpackBootstrap
};
}

/**
* Appends a script element at the end of the <head> with the content of code,
* after transforming it.
/**
* Appends a script element at the end of the <head> with the content of code,
* after transforming it.
*/
function run(transformFn, script) {
var scriptEl = document.createElement('script');
scriptEl.text = transformCode(transformFn, script);
headEl.appendChild(scriptEl);
}

/**
* Load script from the provided url and pass the content to the callback.
/**
* Load script from the provided url and pass the content to the callback.
*/
function load(url, successCallback, errorCallback) {
var xhr = new XMLHttpRequest();
Expand All @@ -61643,10 +61643,10 @@ return /******/ (function(modules) { // webpackBootstrap
return xhr.send(null);
}

/**
* Converts a comma-separated data attribute string into an array of values. If
* the string is empty, returns an empty array. If the string is not defined,
* returns null.
/**
* Converts a comma-separated data attribute string into an array of values. If
* the string is empty, returns an empty array. If the string is not defined,
* returns null.
*/
function getPluginsOrPresetsFromScript(script, attributeName) {
var rawValue = script.getAttribute(attributeName);
Expand All @@ -61664,10 +61664,10 @@ return /******/ (function(modules) { // webpackBootstrap
});
}

/**
* Loop over provided script tags and get the content, via innerHTML if an
* inline script, or by using XHR. Transforms are applied if needed. The scripts
* are executed in the order they are found on the page.
/**
* Loop over provided script tags and get the content, via innerHTML if an
* inline script, or by using XHR. Transforms are applied if needed. The scripts
* are executed in the order they are found on the page.
*/
function loadScripts(transformFn, scripts) {
var result = [];
Expand Down Expand Up @@ -61725,9 +61725,9 @@ return /******/ (function(modules) { // webpackBootstrap
check();
}

/**
* Run script tags with type="text/jsx".
* @param {Array} scriptTags specify script tags to run, run all in the <head> if not given
/**
* Run script tags with type="text/jsx".
* @param {Array} scriptTags specify script tags to run, run all in the <head> if not given
*/
function runScripts(transformFn, scripts) {
headEl = document.getElementsByTagName('head')[0];
Expand Down
Loading