Skip to content
This repository was archived by the owner on Jan 17, 2020. It is now read-only.

Refactored _exact and _find #23

Merged
merged 1 commit into from
Sep 14, 2015

Conversation

beckyconning
Copy link
Contributor

This also improves error messages in certain cases of _exact.

@beckyconning
Copy link
Contributor Author

this actually also fixes some interesting concurrency issues which resulted from promise anti-patterns.

@@ -111,19 +111,11 @@ function _find(nothing) {
return function(driver) {
return function(by) {
return function(cb) {
driver.isElementPresent(by)
Copy link
Contributor

Choose a reason for hiding this comment

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

Heh, I could see where the old version might go wrong... nice catch!

cryogenian added a commit that referenced this pull request Sep 14, 2015
@cryogenian cryogenian merged commit 5096e84 into slamdata:master Sep 14, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants