mirror of
https://github.com/appium/appium.git
synced 2026-02-12 04:50:08 -06:00
bugfix, simplifying loop avoiding win=undefined
This commit is contained in:
@@ -128,15 +128,7 @@ iOSHybrid.onPageChange = function (pageArray) {
|
||||
}, this)[0];
|
||||
}.bind(this);
|
||||
|
||||
var win = item(pageArray);
|
||||
var ret = false;
|
||||
_.each(item(this.windowHandleCache), function (el, idx, l) {
|
||||
if (l[idx] !== win[idx]) {
|
||||
ret = true;
|
||||
}
|
||||
});
|
||||
|
||||
return ret;
|
||||
return !_.isEqual(item(this.windowHandleCache), item(pageArray));
|
||||
}.bind(this);
|
||||
|
||||
// If a window gets navigated to an anchor it doesn't always fire a page callback event
|
||||
|
||||
Reference in New Issue
Block a user