[extensions-web] js: Fix insert and delete chunks



commit ef0edb567b696a3ab2db55196db6a4f4f9638abd
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Tue Jun 19 13:59:42 2012 -0400

    js: Fix insert and delete chunks

 sweettooth/static/js/diff.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/sweettooth/static/js/diff.js b/sweettooth/static/js/diff.js
index 12c7775..4f43a38 100644
--- a/sweettooth/static/js/diff.js
+++ b/sweettooth/static/js/diff.js
@@ -141,7 +141,7 @@ define(['jquery'], function($) {
     }
 
     function buildInsertChunk(chunk, oldContents, newContents) {
-        return $.map(chunk.lines, function(line) { buildInsertLine(line, newContents); });
+        return $.map(chunk.lines, function(line) { return buildInsertLine(line, newContents); });
     }
 
     function buildDeleteLine(line, contents) {
@@ -157,7 +157,7 @@ define(['jquery'], function($) {
     }
 
     function buildDeleteChunk(chunk, oldContents, newContents) {
-        return $.map(chunk.lines, function(line) { buildDeleteLine(line, oldContents); });
+        return $.map(chunk.lines, function(line) { return buildDeleteLine(line, oldContents); });
     }
 
     function buildReplaceChunk(chunk, oldContents, newContents) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]