summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNo'am Rosenthal <noam.rosenthal@nokia.com>2009-11-07 19:01:11 -0800
committerNo'am Rosenthal <noam.rosenthal@nokia.com>2009-11-07 19:01:11 -0800
commit8e560f8d6c7b1f0c21182fac6e260af1abd1e0ce (patch)
tree7181ca8aa5ee795f8ce2b34d8c2e598331d7344e
parentc39312db7feaa9c698d48f58510a552209c41163 (diff)
Fixed paranthesis problem in eval, now it works on QtWebkit & safari
-rw-r--r--statechartz/statechartz.js2
-rw-r--r--statechartz/style.css2
2 files changed, 2 insertions, 2 deletions
diff --git a/statechartz/statechartz.js b/statechartz/statechartz.js
index 547ab3d..56b3acf 100644
--- a/statechartz/statechartz.js
+++ b/statechartz/statechartz.js
@@ -644,7 +644,7 @@ Statechartz =
function createFunctionFromExecutionContext(args) {
if (args.length==0)
return {};
- var f = "function(_event){with(this){"+(args.join(';'))+";}}";
+ var f = "(function(_event){with(this){"+(args.join(';'))+";}})";
// alert(f);
return eval(f);
}
diff --git a/statechartz/style.css b/statechartz/style.css
index 0e19be1..81df568 100644
--- a/statechartz/style.css
+++ b/statechartz/style.css
@@ -22,7 +22,7 @@
body {
background-image: -webkit-gradient(linear, left top, right bottom, from(#000000), to(#001133));
width: 400px;
- height: 400px;
+ max-height: 400px;
}
div.screen {
position: absolute;