File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " json-schema-core" ,
3
3
"repo" : " ericgj/json-schema-core" ,
4
4
"description" : " JSON Schema core module" ,
5
- "version" : " 0.0.21 " ,
5
+ "version" : " 0.0.22 " ,
6
6
"keywords" : [],
7
7
"dependencies" : {
8
8
"ericgj/json-schema-uri" : " *" ,
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ Schema.prototype.each = function(fn){
149
149
150
150
Schema . prototype . addCondition = function ( key , val , klass ) {
151
151
var parsed = new klass ( this ) . parse ( val ) ;
152
- if ( parsed instanceof Node ) {
152
+ if ( has . call ( parsed , 'nodeType' ) ) {
153
153
this . set ( key , parsed ) ;
154
154
} else {
155
155
this . addProperty ( key , parsed ) ;
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " json-schema-core-component" ,
3
- "version" : " 0.0.21 " ,
3
+ "version" : " 0.0.22 " ,
4
4
"description" : " JSON Schema core data structures" ,
5
5
"main" : " index.js" ,
6
6
"directories" : {
You can’t perform that action at this time.
0 commit comments