AlloyFinger icon indicating copy to clipboard operation
AlloyFinger copied to clipboard

react 0.15下报错

Open abellee opened this issue 9 years ago • 2 comments

Uncaught TypeError: Cannot read property 'bind' of undefined

var AlloyFinger = function (el, option) {

el.addEventListener("touchstart", this.start.bind(this), false);

el.addEventListener("touchmove", this.move.bind(this), false);

el.addEventListener("touchend", this.end.bind(this), false);

el.addEventListener("touchcancel",this.cancel.bind(this),false);

是这里的start报的

abellee avatar May 31 '16 13:05 abellee

不知道你们有没准备发react版本的 但是npm install下下来的没法正常import 看了一下可能把普通js给import进来的 我直接复制了你们的代码放到我的工程代码才能用

abellee avatar May 31 '16 13:05 abellee

@abellee 确实是把普通js版本引进去了。复制jsx文件吧,暂时不发react版本,但是会跟随这个普通版更新。

dntzhang avatar Jun 01 '16 00:06 dntzhang