Skip to content

Commit

Permalink
Merge pull request #88 from MYOB-Technology/master
Browse files Browse the repository at this point in the history
Fix start-up delay when creating nil singleton.
  • Loading branch information
vkolgi committed May 3, 2016
2 parents 0dc6eee + f44623f commit 456fede
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uiautomation-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
#import "lang-ext.js";

//We cannot instantiate a UIAElementNil and still get our extensions, so we hold onto one.
UIAElementNilSingleton = UIATarget.localTarget().frontMostApp().mainWindow().staticTexts().firstWithName("notFoundx123hfhfhfhfhfhed");
UIATarget.localTarget().pushTimeout(1);
UIAElementNilSingleton = UIATarget.localTarget().frontMostApp().mainWindow().staticTexts().firstWithName("notFoundx123hfhfhfhfhfhed");
UIATarget.localTarget().popTimeout();

extend(UIATableView.prototype, {
/**
Expand Down

0 comments on commit 456fede

Please sign in to comment.