...finger after touchstart touching the element for a long time an JavaScript event handler calling event.preventDefault() on the touchstart event an JavaScript event handler calling event.preventDefault() on the touchend events...
...Only these events will fire: touchstart touchend Caveats when canceling with JavaScript When you call event.preventDefault() on the touchstart or touchend event, you can prevent the subsequent mouse events:
...only for clicking the link, which succeeds instantly. So, the After steps are being called, re-enabling the third party services in our case. \ Any subsequent requests would embed JavaScript...
...for the page to be built, since you are not always waiting for JavaScript calls. After('@javascript, @selenium') do wait_until { page.evaluate_script('$.active') == 0 } if Capybara.current_driver == :selenium
...of=~/.sync.key bs=256 count=1 chmod 600 ~/.sync.key Put this script (let's call it mount-ubuntu-one-sync) somewhere on your path: #!/bin/sh mkdir -p ~/sync KEYFILE=~/.sync.key...
...s functions like _.each, _.map or _.select, which unfortunately clutters your code with awkward calls to the _ helper. Fortunately when you use CoffeeScript you don't need any of that...
Best results in other decks
...in the debugging console: Understand your current position in the program Read local variables Call methods that are reachable from the current scope Switch into a full irb console and...
Move the program position one statement ahead Jump into the next method call Jump out of the current method call Exit debugging console and resume program
...in JavaScript (as opposed to the code we usually write in Ruby)? What are "callbacks" in JavaScript? Can you find examples for libraries that use callbacks to deal with asynchronicity...
...for libraries that use promises to deal with asynchronicity? How can you parallelize multiple calls of an async function? Exercises Judging asynchronous code Look at the following code: async function...