Skip to content

Commit

Permalink
fix change check presence via utils.object.hasOwnProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz authored Jun 23, 2016
1 parent a248d70 commit 89f90ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ Connection.prototype.onOpen = function(callback) {
// avoid having the collection subscribe to our event emitter
// to prevent 0.3 warning
for (var i in _this.collections) {
if (_this.collections[i]) {
if (utils.object.hasOwnProperty(_this.collections, i)) {
_this.collections[i].onOpen();
}
}
Expand Down Expand Up @@ -606,7 +606,7 @@ Connection.prototype.onClose = function() {
// avoid having the collection subscribe to our event emitter
// to prevent 0.3 warning
for (var i in this.collections) {
if (this.collections[i]) {
if (utils.object.hasOwnProperty(this.collections, i)) {
this.collections[i].onClose();
}
}
Expand Down

0 comments on commit 89f90ac

Please sign in to comment.