We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec4873d commit 669d3a7Copy full SHA for 669d3a7
jquery.truncator.js
@@ -58,7 +58,7 @@
58
var truncatedChild;
59
node.contents().each(function() {
60
var remaining_length = max_length - new_node.text().length;
61
- if (remaining_length == 0) return;
+ if (remaining_length == 0) return; // breaks the loop
62
truncatedChild = recursivelyTruncate(this, remaining_length);
63
if (truncatedChild) new_node.append(truncatedChild);
64
});
0 commit comments