Skip to content

Commit

Permalink
Merge pull request #8 from canjs/fix-webpack-debug-style
Browse files Browse the repository at this point in the history
fix dev code for webpack compatibility
  • Loading branch information
matthewp committed Jun 27, 2018
2 parents 74afa99 + d822e05 commit f7a255c
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions patcher/patcher.js
Expand Up @@ -61,15 +61,17 @@ var Patcher = function(observableOrList, priority) {


//!steal-remove-start
Object.defineProperty(this.onList, "name", {
value: "live.list new list::"+canReflect.getName(observableOrList),
});
Object.defineProperty(this.onPatchesNotify, "name", {
value: "live.list notify::"+canReflect.getName(observableOrList),
});
Object.defineProperty(this.onPatchesDerive, "name", {
value: "live.list derive::"+canReflect.getName(observableOrList),
});
if(process.env.NODE_ENV !== 'production') {
Object.defineProperty(this.onList, "name", {
value: "live.list new list::"+canReflect.getName(observableOrList),
});
Object.defineProperty(this.onPatchesNotify, "name", {
value: "live.list notify::"+canReflect.getName(observableOrList),
});
Object.defineProperty(this.onPatchesDerive, "name", {
value: "live.list derive::"+canReflect.getName(observableOrList),
});
}
//!steal-remove-end
};

Expand Down

0 comments on commit f7a255c

Please sign in to comment.