Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@istan
Created July 16, 2012 19:48
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 istan/3124627 to your computer and use it in GitHub Desktop.
Save istan/3124627 to your computer and use it in GitHub Desktop.
# shuts down all taps globally for specified time...
tapped: false
mainLaunch: ->
Ext.Viewport.element.on 'tap', (event) =>
if onthebar.app.tapped
console.log 'busy! come back later!'
event.stopEvent()
return
onthebar.app.tapped = true
Ext.defer ->
onthebar.app.tapped = false
, 500
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment