Skip to content

Commit

Permalink
DiffHighlighter: Don't display a diff if there's nothing to display
Browse files Browse the repository at this point in the history
  • Loading branch information
pieter committed Dec 1, 2008
1 parent 415ee91 commit 0852f63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions html/lib/diffHighlighter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ if (typeof Controller == 'undefined') {
}

var highlightDiff = function(diff, element, callbacks) {
if (!diff || diff == "")
return;

if (!callbacks)
callbacks = {};
var start = new Date().getTime();
Expand Down

0 comments on commit 0852f63

Please sign in to comment.