mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
DiffHighlighter: Don't display a diff if there's nothing to display
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user