Skip to content

Commit

Permalink
Fix start-up delay when creating nil singleton.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rypac committed Jul 9, 2015
1 parent 0dc6eee commit f44623f
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 f44623f

Please sign in to comment.