Skip to content

Commit

Permalink
That didn't work...
Browse files Browse the repository at this point in the history
  • Loading branch information
marcuswestin committed Apr 16, 2012
1 parent c9435e8 commit 403157c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/modules/tap.fun
Expand Up @@ -2,8 +2,8 @@ tap = {

button:function(selectHandler) {
hashAttributes = { class:'tap-button' }
<script hashAttributes=hashAttributes selectHandler=selectHandler module=tap>
module = module.__js
<script hashAttributes=hashAttributes selectHandler=selectHandler>
var module = window.__fun_tap
module.registerTapHandler(hashAttributes, 'button', 'onTouchStart', selectHandler)
if (module.supportClick) {
module.registerTapHandler(hashAttributes, 'button', 'onMouseDown', selectHandler)
Expand All @@ -14,8 +14,8 @@ tap = {

listItem:function(selectHandler) {
hashAttributes = { class:'tap-list-item' }
<script hashAttributes=hashAttributes selectHandler=selectHandler module=tap>
module = module.__js
<script hashAttributes=hashAttributes selectHandler=selectHandler>
var module = window.__fun_tap
module.registerTapHandler(hashAttributes, 'listItem', 'onTouchStart', selectHandler)
if (module.supportClick) {
module.registerTapHandler(hashAttributes, 'button', 'onMouseDown', selectHandler)
Expand All @@ -30,7 +30,7 @@ tap = {
var tap = require('fun/node_modules/dom/tap'),
client = require('fun/node_modules/std/client')

module._js = {
window.__fun_tap = {
supportClick: !client.isMobile,
registerTapHandler: function(hashAttributes, type, name, selectHandler) {
hashAttributes.set([name], fun.expressions.Handler(function(funEvent) {
Expand Down

0 comments on commit 403157c

Please sign in to comment.