Permalink
Browse files

Whitespace

  • Loading branch information...
1 parent 263012d commit 96690026841ddc043c146bfc3623d87a31d5844e @alecperkins alecperkins committed Sep 25, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 js/jquery.slabtext.js
View
@@ -38,12 +38,12 @@
$.extend(settings, options);
};
- var $this = $(this),
+ var $this = $(this),
keepSpans = $("span.slabtext", $this).length,
- words = keepSpans ? [] : String($.trim($this.text())).replace(/\s{2,}/g, " ").split(" "),
- origFontSize = null,
- idealCharPerLine = null,
- fontRatio = settings.fontRatio,
+ words = keepSpans ? [] : String($.trim($this.text())).replace(/\s{2,}/g, " ").split(" "),
+ origFontSize = null,
+ idealCharPerLine = null,
+ fontRatio = settings.fontRatio,
forceNewCharCount = settings.forceNewCharCount,
headerBreakpoint = settings.headerBreakpoint,
viewportBreakpoint = settings.viewportBreakpoint,
@@ -132,7 +132,7 @@
// use that one for the line
if((preDiff < postDiff) && (preText.length > 2)) {
finalText = preText;
- wordIndex--;
+ wordIndex--;
// otherwise, use the longer string for the line
} else {
finalText = postText;

0 comments on commit 9669002

Please sign in to comment.