Permalink
Browse files

Perlito5 - js2 - caret Var cleanup

  • Loading branch information...
1 parent 72f9f0a commit 22e3af43d260e15be903553d4cc8d66d58a565ea @fglock committed Nov 27, 2012
Showing with 1 addition and 9 deletions.
  1. +0 −4 html/perlito5.js
  2. +1 −1 perlito5.pl
  3. +0 −4 src5/lib/Perlito5/Javascript2/Runtime.pm
View
@@ -197,8 +197,6 @@ function p5scalar_deref(v) {
var c = v.charCodeAt(0);
if (c < 27) {
v = '^' + String.fromCharCode(c + 64) + v.substr(1);
- }
- if (v.substr(0, 1) == '^' ) {
pkg_name = 'main';
}
return p5pkg[pkg_name]["v_"+v];
@@ -219,8 +217,6 @@ function p5scalar_deref_set(v, n) {
var c = v.charCodeAt(0);
if (c < 27) {
v = '^' + String.fromCharCode(c + 64) + v.substr(1);
- }
- if (v.substr(0, 1) == '^' ) {
pkg_name = 'main';
}
p5pkg[pkg_name]["v_"+v] = n;
Oops, something went wrong.

0 comments on commit 22e3af4

Please sign in to comment.