Skip to content

Commit ef951a9

Browse files
Joyce ChenDi Wu
authored andcommitted
Mixin only once. Set flag to true once mixed
1 parent 4fcb848 commit ef951a9

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

lib/column.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var Column = function(config) {
2424
// mixin only once. This is to avoid circular dependency in
2525
// CommonJS.
2626
if (!valueExpressionMixed) {
27+
valueExpressionMixed = true;
2728
_.extend(Column.prototype, ValueExpressionMixin());
2829
}
2930
};

lib/node/binary.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ var BinaryNode = Node.define(_.extend({
1616
// mixin only once. This is to avoid circular dependency in
1717
// CommonJS.
1818
if (!valueExpressionMixed) {
19+
valueExpressionMixed = true;
1920
_.extend(BinaryNode.prototype, ValueExpressionMixin());
2021
}
2122
},

lib/node/unary.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ var UnaryNode = module.exports = Node.define({
1515
// mixin only once. This is to avoid circular dependency in
1616
// CommonJS.
1717
if (!valueExpressionMixed) {
18+
valueExpressionMixed = true;
1819
_.extend(UnaryNode.prototype, ValueExpressionMixin());
1920
}
2021
}

0 commit comments

Comments
 (0)