[Jifty-commit] jifty branch, master, updated. be0a4a683aadea16014343a8499dd923334b76f8

Jifty commits jifty-commit at lists.jifty.org
Wed Feb 3 03:38:20 EST 2010


The branch, master has been updated
       via  be0a4a683aadea16014343a8499dd923334b76f8 (commit)
      from  c41ff6dab5371b716c401ca14b40532fa13b6588 (commit)

Summary of changes:
 t/TestApp-JiftyJS/lib/TestApp/JiftyJS/View.pm |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

- Log -----------------------------------------------------------------
commit be0a4a683aadea16014343a8499dd923334b76f8
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Feb 3 16:38:06 2010 +0800

    "alert(2)" makes selunium rc sad, while "alert('2')" not

diff --git a/t/TestApp-JiftyJS/lib/TestApp/JiftyJS/View.pm b/t/TestApp-JiftyJS/lib/TestApp/JiftyJS/View.pm
index ad0a0ba..d2621d1 100644
--- a/t/TestApp-JiftyJS/lib/TestApp/JiftyJS/View.pm
+++ b/t/TestApp-JiftyJS/lib/TestApp/JiftyJS/View.pm
@@ -89,7 +89,7 @@ template '/region/multiupdate' => page {
         id => 'update',
         label => "Update All",
         onclick => [
-            "alert(42);",
+            "alert('42');",
             { region => 'content1', replace_with => 'region1' },
             { region => 'content2', replace_with => 'region2' },
             { region => 'content3', replace_with => 'hello_world', arguments => { name => "Pony" } },
@@ -274,7 +274,7 @@ template '/p/two' => sub {
     outs_raw(<<E);
     <script type="text/javascript">
     jQuery(function() {
-        alert( jQuery("p").size() );
+        alert( ''+jQuery("p").size() );
     });
     </script>
 E

-----------------------------------------------------------------------


More information about the Jifty-commit mailing list