Skip to content

Commit

Permalink
perf fix
Browse files Browse the repository at this point in the history
  • Loading branch information
maccman committed Sep 17, 2011
1 parent dfd434b commit 72c36eb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/controllers/currencies.coffee
Expand Up @@ -45,7 +45,7 @@ class Currencies extends Panel
'.output': 'outputEl'

events:
'tap .pad div': 'enter'
'touchend .pad div': 'enter'
'tap .pad .clear': 'clear'
'tap .pad .point': 'point'
'tap .input': 'changeFrom'
Expand All @@ -54,6 +54,7 @@ class Currencies extends Panel

constructor: ->
super
@el.bind 'touchmove', (e) -> e.preventDefault()
@from = @to = Currency.default()
@clear()
@active()
Expand All @@ -68,7 +69,7 @@ class Currencies extends Panel
@html require('views/currency')(@)

enter: (e) ->
num = $(e.target).data('num')
num = $(e.currentTarget).data('num')
return unless num?

return if @hasOverflow()
Expand Down
2 changes: 1 addition & 1 deletion public/application.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/cache.manifest
@@ -1,5 +1,5 @@
CACHE MANIFEST
# v4.8
# v4.9
NETWORK:
*
CACHE:
Expand Down

0 comments on commit 72c36eb

Please sign in to comment.