Skip to content

Commit 03172c5

Browse files
committed
v2.0
1 parent 2c8bf18 commit 03172c5

3 files changed

Lines changed: 6 additions & 5 deletions

File tree

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66

77
exportModule("data-context", function factory() {
88

9-
var isDebug = this.document && Array.from(document.scripts).find(function (s) { return s.src.includes('data-context-binding'); })?.attributes.debug || false,
10-
ignoreMetadata = false;
9+
var script = this.document && Array.from(document.scripts).find(function (s) { return s.src.includes('data-context'); }),
10+
isDebug = script?.attributes.debug || false,
11+
ignoreMetadata = script?.attributes.ignoreMetadata || false;
1112

1213
/**
1314
* Create a new proxy object with the same structure as the original object.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "data-context",
33
"description": "Watch data changes in the browser and node.js",
4-
"version": "2.0.0-rc.1",
4+
"version": "2.0.0-rc.2",
55
"license": "MIT",
66
"keywords": [
77
"conextra",

0 commit comments

Comments
 (0)