Skip to content

Commit

Permalink
Changed hasOwnProperty to _.has
Browse files Browse the repository at this point in the history
  • Loading branch information
Boris Kozorovitzky committed Feb 26, 2015
1 parent c5f46d2 commit dbb9baf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backbone.syphon.typeregistry.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ _.extend(TypeRegistry.prototype, {
// found for the specified type, the default is
// returned.
get: function(type){
if (this.registeredTypes.hasOwnProperty(type)){
if (_.has(this.registeredTypes,type)){
return this.registeredTypes[type];
} else {
return this.registeredTypes['default'];
Expand All @@ -37,7 +37,7 @@ _.extend(TypeRegistry.prototype, {

// Remove an item from a given type registration
unregister: function(type) {
if (this.registeredTypes.hasOwnProperty(type)) {
if (_.has(this.registeredTypes,type)) {
delete this.registeredTypes[type];
}
}
Expand Down

0 comments on commit dbb9baf

Please sign in to comment.