Skip to content

Commit

Permalink
[Fixes #88] Fix IE8 and up
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyckahn committed Oct 3, 2016
1 parent eea8829 commit 32b45ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shifty.token.js
Expand Up @@ -201,7 +201,7 @@
} else if (chunks.length === 1 ||
// ...or if the string starts with a number component (".", "-", or a
// digit)...
formattedString[0].match(R_NUMBER_COMPONENT)) {
formattedString.charAt(0).match(R_NUMBER_COMPONENT)) {
// ...prepend an empty string here to make sure that the formatted number
// is properly replaced by VALUE_PLACEHOLDER
chunks.unshift('');
Expand Down
4 changes: 3 additions & 1 deletion tests/index.html
Expand Up @@ -29,7 +29,9 @@ <h2 id="qunit-userAgent"></h2>

<script>
(function () {
var log = console.log;
window.console = window.console || {
log: function () {}
};

function forceInternalUpdate (tweenable) {
timeoutHandler(tweenable,
Expand Down

0 comments on commit 32b45ff

Please sign in to comment.