Don't copy environment into array environments. Resolves issue #1468.
This commit is contained in:
parent
97b9fbcfab
commit
fcda005c56
|
@ -53,8 +53,10 @@
|
||||||
else if (top) {
|
else if (top) {
|
||||||
this.data.push(item);
|
this.data.push(item);
|
||||||
if (item.env) {
|
if (item.env) {
|
||||||
|
if (item.copyEnv !== false) {
|
||||||
for (var id in this.env)
|
for (var id in this.env)
|
||||||
{if (this.env.hasOwnProperty(id)) {item.env[id] = this.env[id]}}
|
{if (this.env.hasOwnProperty(id)) {item.env[id] = this.env[id]}}
|
||||||
|
}
|
||||||
this.env = item.env;
|
this.env = item.env;
|
||||||
} else {item.env = this.env}
|
} else {item.env = this.env}
|
||||||
}
|
}
|
||||||
|
@ -258,7 +260,8 @@
|
||||||
STACKITEM.array = STACKITEM.Subclass({
|
STACKITEM.array = STACKITEM.Subclass({
|
||||||
type: "array", isOpen: true, arraydef: {},
|
type: "array", isOpen: true, arraydef: {},
|
||||||
Init: function () {
|
Init: function () {
|
||||||
this.table = []; this.row = []; this.env = {}; this.frame = []; this.hfill = [];
|
this.table = []; this.row = []; this.frame = []; this.hfill = [];
|
||||||
|
this.copyEnv = false;
|
||||||
this.SUPER(arguments).Init.apply(this,arguments);
|
this.SUPER(arguments).Init.apply(this,arguments);
|
||||||
},
|
},
|
||||||
checkItem: function (item) {
|
checkItem: function (item) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user