yui3/commit

use js_args instead

authorMichiel Hildebrand
Sun Mar 13 12:30:29 2011 +0100
committerMichiel Hildebrand
Sun Mar 13 12:30:29 2011 +0100
commitab5aab0950e43e09bfe68c8de97fe5a879e8e938
tree0329ea8cf1bf4b7d9cd87b597d3b9954290aa0cf
parenteef67859a14a4e137bd6b72d72a39cef40dadee4
Diff style: patch stat
diff --git a/lib/yui3.pl b/lib/yui3.pl
index e7543c861a..8920412480 100644
--- a/lib/yui3.pl
+++ b/lib/yui3.pl
@@ -43,7 +43,7 @@ js_yui3_on(Id, Event, Fn) -->
 %	Emit javascript event handler.
 
 js_yui3_delegate(Select, Context, Event, Fn, Args) -->
-	html(['Y.delegate', '("', Event, '",', Fn, ',"', Select,'", "',Context,'",', Args, ');\n']).
+	html(['Y.delegate', '("', Event, '",', Fn, ',', \js_args([Select]),', "',Context,'",', Args, ');\n']).
 
 
 %%	js_yui3(+Head, +Include, +Body)
@@ -99,13 +99,8 @@ js_vars([H|T]) -->
 
 js_yui3_decl(Name, Value) -->
 	html(['Y.', Name, ' = ']),
-	js_arg(Value),
+	js_args([Value]),
 	html(';\n').
 
 
 
-
-
-
-
-