DiffHighlighter: Don't display a diff if there's nothing to display

This commit is contained in:
Pieter de Bie
2008-12-01 15:56:58 +01:00
parent 415ee91b50
commit 0852f6326c
+3
View File
@@ -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();