Skip to content

Commit f66a9ad

Browse files
committed
add Schema#hasProperty; version bump
1 parent 344cd23 commit f66a9ad

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
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.16",
5+
"version": "0.0.17",
66
"keywords": [],
77
"dependencies": {
88
"ericgj/json-schema-uri": "*",

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ Schema.prototype.property = function(key){
159159
return this._properties[key];
160160
}
161161

162+
Schema.prototype.hasProperty = function(key){
163+
return has.call(this._properties,key);
164+
}
165+
162166
// mix in each binding method into a Correlation object
163167
Schema.prototype.bind = function(instance){
164168
var ret = new Correlation(this,instance);

0 commit comments

Comments
 (0)