Skip to content

Commit

Permalink
Perlito5 - js2 - caret Var cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
fglock committed Nov 27, 2012
1 parent 72f9f0a commit 22e3af4
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions html/perlito5.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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;
Expand Down
Loading

0 comments on commit 22e3af4

Please sign in to comment.