All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] toaster: fix typo in arguments for libtoaster.js function
@ 2016-06-20 12:00 Elliot Smith
  2016-06-21 14:57 ` Michael Wood
  0 siblings, 1 reply; 3+ messages in thread
From: Elliot Smith @ 2016-06-20 12:00 UTC (permalink / raw)
  To: toaster

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.

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
---
 bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
index eafe70d..a1379e1 100644
--- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
+++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
@@ -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;
       });
     }
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] toaster: fix typo in arguments for libtoaster.js function
@ 2016-06-21 14:54 Michael Wood
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Wood @ 2016-06-21 14:54 UTC (permalink / raw)
  To: bitbake-devel

From: Elliot Smith <elliot.smith@intel.com>

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.

Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
---
 lib/toaster/toastergui/static/js/libtoaster.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/toaster/toastergui/static/js/libtoaster.js b/lib/toaster/toastergui/static/js/libtoaster.js
index eafe70d..a1379e1 100644
--- a/lib/toaster/toastergui/static/js/libtoaster.js
+++ b/lib/toaster/toastergui/static/js/libtoaster.js
@@ -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;
       });
     }
-- 
2.7.4



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] toaster: fix typo in arguments for libtoaster.js function
  2016-06-20 12:00 [PATCH] toaster: fix typo in arguments for libtoaster.js function Elliot Smith
@ 2016-06-21 14:57 ` Michael Wood
  0 siblings, 0 replies; 3+ messages in thread
From: Michael Wood @ 2016-06-21 14:57 UTC (permalink / raw)
  To: toaster


Thanks, Submitted up to bitbake-devel and applied to toaster-next
Also opened a bug to create some tests for the project dashboard.

On 20/06/16 13:00, Elliot Smith wrote:
> 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.
>
> Signed-off-by: Elliot Smith <elliot.smith@intel.com>
> ---
>   bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
> index eafe70d..a1379e1 100644
> --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
> +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js
> @@ -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;
>         });
>       }



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-06-21 14:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-20 12:00 [PATCH] toaster: fix typo in arguments for libtoaster.js function Elliot Smith
2016-06-21 14:57 ` Michael Wood
  -- strict thread matches above, loose matches on Subject: below --
2016-06-21 14:54 Michael Wood

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.