Merge "wfProfileOut() for new return added in c6396 (c4e407c)"
[lhc/web/wiklou.git] / resources / jquery / jquery.autoEllipsis.js
index 6253310..9a5fcc9 100644 (file)
@@ -5,7 +5,7 @@
 
 // Cache ellipsed substrings for every string-width-position combination
 var cache = { };
-// Use a seperate cache when match highlighting is enabled
+// Use a separate cache when match highlighting is enabled
 var matchTextCache = { };
 
 $.fn.autoEllipsis = function( options ) {
@@ -25,7 +25,7 @@ $.fn.autoEllipsis = function( options ) {
                                $el.text( $el.data( 'autoEllipsis.originalText' ) );
                        }
                }
-               
+
                // container element - used for measuring against
                var $container = $el;
                // trimmable text element - only the text within this element will be trimmed
@@ -43,7 +43,7 @@ $.fn.autoEllipsis = function( options ) {
                                .empty()
                                .append( $trimmableText );
                }
-               
+
                var text = $container.text();
                var trimmableText = $trimmableText.text();
                var w = $container.width();
@@ -81,7 +81,7 @@ $.fn.autoEllipsis = function( options ) {
                                return;
                        }
                }
-               
+
                if ( $trimmableText.width() + pw > w ) {
                        switch ( options.position ) {
                                case 'right':
@@ -136,7 +136,7 @@ $.fn.autoEllipsis = function( options ) {
                } else {
                        cache[text][w][options.position] = $container.html();
                }
-               
+
        } );
 };