Permalink
Browse files

Merge pull request #88 from MYOB-Technology/master

Fix start-up delay when creating nil singleton.
  • Loading branch information...
2 parents 0dc6eee + f44623f commit 456fedeb1114b1159b4353b0858ee6ffab90fe59 @vkolgi committed May 3, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 uiautomation-ext.js
View
@@ -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, {
/**

0 comments on commit 456fede

Please sign in to comment.