Skip to content
This repository has been archived by the owner on Sep 7, 2018. It is now read-only.

Add method to get window by id #243

Merged
merged 7 commits into from
Jul 12, 2017

Conversation

BenLambertNcl
Copy link
Collaborator

@BenLambertNcl BenLambertNcl commented Jul 12, 2017

Builds on the work that @kirilpopov did in #171 (see method). Currently just uses a static method on the window class, but we could move this into a separate class (like the initial PR) if necessary.


let app = null;
let existsPromise: Promise<void>;
if (id.match(new RegExp(idRegex))) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could be improved by having a branch to determine the app id, then then separately doing the appExists -> wrap code (i.e. not having to duplicate that code).

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good idea. Thanks!

@BenLambertNcl
Copy link
Collaborator Author

@DevAndyLee Refactored and remove the .only tag in the wrap test.

Copy link
Collaborator

@andy-lee-eng andy-lee-eng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@BenLambertNcl BenLambertNcl merged commit 3258365 into symphonyoss:master Jul 12, 2017
@BenLambertNcl BenLambertNcl deleted the window-by-id branch July 12, 2017 12:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants