Permalink
Browse files

That didn't work...

  • Loading branch information...
1 parent c9435e8 commit 403157c16a9059863b7853ba468c499c61b9db99 @marcuswestin committed Apr 16, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 src/modules/tap.fun
View
@@ -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)
@@ -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)
@@ -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) {

0 comments on commit 403157c

Please sign in to comment.