Skip to content

Commit

Permalink
Fix production build
Browse files Browse the repository at this point in the history
The `steal-remove` comments did not match up with the `process.env.NODE_ENV` check.
  • Loading branch information
Chasen Le Hara authored and chasenlehara committed Oct 14, 2019
1 parent e1faf86 commit 291def9
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions can-simple-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,25 +113,25 @@ var SimpleMap = Construct.extend("SimpleMap",
var quoteString = function quoteString(x) {
return typeof x === "string" ? JSON.stringify(x) : x;
};
}
var meta = ensureMeta(this);
meta.allowedLogKeysSet = meta.allowedLogKeysSet || new Set();

if (key) {
meta.allowedLogKeysSet.add(key);
}
var meta = ensureMeta(this);
meta.allowedLogKeysSet = meta.allowedLogKeysSet || new Set();

this._log = function(prop, current, previous, log) {
if (key && !meta.allowedLogKeysSet.has(prop)) {
return;
if (key) {
meta.allowedLogKeysSet.add(key);
}
dev.log(
canReflect.getName(this),
"\n key ", quoteString(prop),
"\n is ", quoteString(current),
"\n was ", quoteString(previous)
);
};

this._log = function(prop, current, previous, log) {
if (key && !meta.allowedLogKeysSet.has(prop)) {
return;
}
dev.log(
canReflect.getName(this),
"\n key ", quoteString(prop),
"\n is ", quoteString(current),
"\n was ", quoteString(previous)
);
};
}
//!steal-remove-end
}
}
Expand Down

0 comments on commit 291def9

Please sign in to comment.