Unify the way of how passed argument is checked in removeListener methods to be
consistent with other modules in webapi plugins.
[Verification] Code compiles without error.
I/StarFish(22486): console.log: [tct-widgetservice-tizen-test] - 85 passed, 0 failed, 0 timed out, 0 not run.
Change-Id: I904e4f8ef8b536b2a5c0fc22c3aee2b897c7b90b
Signed-off-by: Lukasz Bardeli <l.bardeli@AMDC967.digital.local>
};
ListenerManager.prototype.removeListener = function(watchId) {
- if (this.listeners[watchId] === null || this.listeners[watchId] === undefined) {
- return;
- }
-
if (this.listeners.hasOwnProperty(watchId)) {
delete this.listeners[watchId];
}