ionic-team / ionic-v1

The repo for Ionic 1.x. For the latest version of Ionic, please see https://github.com/ionic-team/ionic
Other
192 stars 187 forks source link

Ionic, v1.3.5 : Can't find variable: swap #390

Open stripathix opened 5 years ago

stripathix commented 5 years ago

Short description of the problem:

I can't reproduce it but it got logged to sentry logger. ReferenceError: Can't find variable: swap

UI events captured during error

ui.click | div.collapse_sp > div.box > form#subForm > div.bottom_shadow > a.orr.activated -- | --

Error occured here

function triggerMouseEvent(type, ele, x, y) {
  // using initMouseEvent instead of MouseEvent for our Android friends
  var clickEvent = document.createEvent("MouseEvents");
  clickEvent.initMouseEvent(type, true, true, window, 1, 0, 0, x, y, false, false, false, false, 0, null);
  clickEvent.isIonicTap = true;
  ele.dispatchEvent(clickEvent);
}

Which Ionic Version? 1.x or 2.x v1.3.5

stripathix commented 5 years ago

Environment: iPhone iOS Version: 11.4