Skip to content

Commit

Permalink
Merge pull request #51 from Gloeckchen/feat-class-done
Browse files Browse the repository at this point in the history
add class "is-truncated" to element when trancation is done
  • Loading branch information
Fred Heusschen committed May 21, 2015
2 parents f44ed67 + 4fc1861 commit 8a3e042
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/js/jquery.dotdotdot.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
'update.dot',
function( e, c )
{
$dot.removeClass("is-truncated");
e.preventDefault();
e.stopPropagation();

Expand Down Expand Up @@ -402,7 +403,7 @@
}
}
);

$d.addClass("is-truncated");
return isTruncated;
}
function ellipsisElement( $e, $d, $i, o, after )
Expand Down

0 comments on commit 8a3e042

Please sign in to comment.