Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Make some changes for IE support
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonpage committed Jul 31, 2013
1 parent 8bd7409 commit 7b27346
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,16 +393,14 @@
* @api private
*/
Ellipsis.prototype.shouldHideOverflow = function() {
var columns = this.columnCount > 1;
var hasColumns = this.columnCount > 1;

// If there is not enough room to show
// even one line; hide all overflow.
if (this.columnHeight < this.lineHeight) return true;

// Hide all single column overflow
if (!columns) return true;

return columns && !vendor.moz;
return !hasColumns;
};

/**
Expand Down

0 comments on commit 7b27346

Please sign in to comment.