-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #308 from anteprimorac/fix-293
Replace `stringsElement`'s `for ... of` loop with a standard `for` loop
- Loading branch information
Showing
4 changed files
with
17 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
* | ||
* typed.js - A JavaScript Typing Animation Library | ||
* Author: Matt Boldt <[email protected]> | ||
* Version: v2.0.4 | ||
* Version: v2.0.5 | ||
* Url: https://github.com/mattboldt/typed.js | ||
* License(s): MIT | ||
* | ||
|
@@ -669,28 +669,12 @@ return /******/ (function(modules) { // webpackBootstrap | |
self.strings = []; | ||
self.stringsElement.style.display = 'none'; | ||
var strings = Array.prototype.slice.apply(self.stringsElement.children); | ||
var _iteratorNormalCompletion = true; | ||
var _didIteratorError = false; | ||
var _iteratorError = undefined; | ||
var stringsLength = strings.length; | ||
|
||
try { | ||
for (var _iterator = strings[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var s = _step.value; | ||
|
||
self.strings.push(s.innerHTML.trim()); | ||
} | ||
} catch (err) { | ||
_didIteratorError = true; | ||
_iteratorError = err; | ||
} finally { | ||
try { | ||
if (!_iteratorNormalCompletion && _iterator['return']) { | ||
_iterator['return'](); | ||
} | ||
} finally { | ||
if (_didIteratorError) { | ||
throw _iteratorError; | ||
} | ||
if (stringsLength) { | ||
for (var i = 0; i < stringsLength; i += 1) { | ||
var stringEl = strings[i]; | ||
self.strings.push(stringEl.innerHTML.trim()); | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.