Skip to contentSkip to conversation

toaster: fix typo in arguments for libtoaster.js function

PATCH New Michael Wood 1 participant 1 message Jun 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: fix typo in arguments for libtoaster.js function

From: Elliot Smith <[email protected]>

The function for flattening the targets of a previous build to a space-separated list references prev and next arguments which aren't in the function signature. This prevents the "Rebuild" buttons (in the most-recent build section) from working.

Fix the typo so that the buttons work again.

---
 lib/toaster/toastergui/static/js/libtoaster.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/toaster/toastergui/static/js/libtoaster.js +1 -1
index eafe70d..a1379e1 100644
@@ -94,7 +94,7 @@ var libtoaster = (function () {
 
     /* Flatten the array of targets into a space spearated list */
     if (targets instanceof Array){
-      targets = targets.reduce(function(prevV, nextV){
+      targets = targets.reduce(function(prev, next){
         return prev + ' ' + next;
       });
     }
Signature · 1 line
2.7.4