From 0547c0dd1885ef13d9f5072277599b5f85d41b0c Mon Sep 17 00:00:00 2001 From: gorhill Date: Wed, 9 Mar 2016 17:13:22 -0500 Subject: [PATCH] code review re. #1443 --- platform/firefox/vapi-client.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/platform/firefox/vapi-client.js b/platform/firefox/vapi-client.js index 39c133500..f748b5d5a 100644 --- a/platform/firefox/vapi-client.js +++ b/platform/firefox/vapi-client.js @@ -237,11 +237,9 @@ vAPI.messaging = { this.pending = Object.create(null); this.pendingCount = 0; for ( var auxId in pending ) { - if ( this.pending.hasOwnProperty(auxId) ) { - callback = pending[auxId]; - if ( typeof callback === 'function' ) { - callback(null); - } + callback = pending[auxId]; + if ( typeof callback === 'function' ) { + callback(null); } } },