cc.TableView tableCellTouched does not work

When try to click on the table cell, got the error. The same error on the test too. version is 2.2.2.

Please fix it. Thanks
tableCellTouched:function (table, cell) {
cc.log("cell touched at index: " + cell.getIdx());
},

Uncaught TypeError: Cannot read property ‘x’ of undefined CCAffineTransform.js:76
cc.PointApplyAffineTransform CCAffineTransform.js:76
cc.Node.cc.Class.extend.convertToWorldSpace CCNode.js:1571
cc.TableView.cc.ScrollView.extend.onTouchEnded CCTableView.js:585
cc.TouchDispatcher.cc.Class.extend.touches CCTouchDispatcher.js:372
cc.TouchDispatcher.cc.Class.extend.touchesEnded CCTouchDispatcher.js:497
cc.EGLView.cc.Class.extend.handleTouchesEnd CCEGLView.js:697
cc.EGLView.cc.Class.extend.touchesEnded CCEGLView.js:805
cc.ProcessMouseupEvent CCTouchDispatcher.js:648
(anonymous function) CCTouchDispatcher.js:720

Hi,

This bug has been fixed at https://github.com/cocos2d/cocos2d-html5/commit/4ae8a226822c40e97d8877b2fa5d332400a3b798

Please update the code:
bb._origin = this._parent.convertToWorldSpace(bb.origin);
–> bb._origin = this._parent.convertToWorldSpace(bb._origin);

This is my mistake. :frowning:
David

Hi dingping.lv:

Thank you so much for the quick fix. But I made the change, I still got the same error.

Uncaught TypeError: Cannot read property ‘x’ of undefined CCAffineTransform.js:76
cc.PointApplyAffineTransform CCAffineTransform.js:76
cc.Node.cc.Class.extend.convertToWorldSpace CCNode.js:1571
cc.TableView.cc.ScrollView.extend.onTouchEnded CCTableView.js:585
cc.TouchDispatcher.cc.Class.extend.touches CCTouchDispatcher.js:372
cc.TouchDispatcher.cc.Class.extend.touchesEnded CCTouchDispatcher.js:497
cc.EGLView.cc.Class.extend.handleTouchesEnd CCEGLView.js:697
cc.EGLView.cc.Class.extend.touchesEnded CCEGLView.js:805
cc.ProcessMouseupEvent CCTouchDispatcher.js:648
(anonymous function) CCTouchDispatcher.js:720

I’m sorry

Please update the code:
bb.origin = this.parent.convertToWorldSpace(bb.origin);
–> bb._origin = this.parent.convertToWorldSpace(bb._origin);

Please clear your browser cache and try again.

Best regards
David

Great! it is working now after clear the browser cache.

Thanks David!
@dingping.lv@cocos2d-x.org