Skip to content

Instantly share code, notes, and snippets.

@denov
Created September 26, 2014 18:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save denov/fb9521be908297d852d5 to your computer and use it in GitHub Desktop.
Save denov/fb9521be908297d852d5 to your computer and use it in GitHub Desktop.
.then(function (element) {
console.info("=> found somethining..");
element.click(); // this wrong since we are not returning and the chain goes goes on
}).end()
// better?
.click().then(function(){console.info("=> found somethining..")})
.end()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment