Skip to content

Commit

Permalink
quick hack to fix ellipsis freezing
Browse files Browse the repository at this point in the history
  • Loading branch information
cameron committed Mar 15, 2014
1 parent b7ce599 commit aee3e4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion squirt.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ sq.host = window.location.search.match('sq-dev') ?
length--;
}
if(',.?!:;"'.indexOf(lastChar) != -1) length--;
return length == 1 ? 0 :
return length <= 1 ? 0 :
(length == 2 ? 1 :
(length == 3 ? 1 :
Math.floor(length / 2) - 1));
Expand Down

0 comments on commit aee3e4c

Please sign in to comment.