Skip to content

Commit 4bfedb2

Browse files
committed
fix to avoid nodejs instanceof behavior
version bump
1 parent 6a55270 commit 4bfedb2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "json-schema-core",
33
"repo": "ericgj/json-schema-core",
44
"description": "JSON Schema core module",
5-
"version": "0.0.21",
5+
"version": "0.0.22",
66
"keywords": [],
77
"dependencies": {
88
"ericgj/json-schema-uri": "*",

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ Schema.prototype.each = function(fn){
149149

150150
Schema.prototype.addCondition = function(key,val,klass){
151151
var parsed = new klass(this).parse(val);
152-
if (parsed instanceof Node){
152+
if (has.call(parsed,'nodeType')){
153153
this.set(key,parsed);
154154
} else {
155155
this.addProperty(key,parsed);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "json-schema-core-component",
3-
"version": "0.0.21",
3+
"version": "0.0.22",
44
"description": "JSON Schema core data structures",
55
"main": "index.js",
66
"directories": {

0 commit comments

Comments
 (0)