Cannot call method 'exitEditMode' of undefined #288
Comments
No need for forks. This is fixed on master BTW. See #177. |
Crazy.. I searched for that issue.. sorry for the dup |
No worries! |
I'm getting this error when I exit edit mode for the second time.
I'm pretty sure my backgrid config is fairly standard:
(Note that duedate is the only editable cell.) |
@sprugman use master. |
Master gas no lib folder and I ran into problems when I tried to build. Guess I'll try again. |
https://github.com/wyuenho/backgrid/blob/master/CONTRIBUTING.md#building No need to install JSDuck if you just want to build the libs. Just type npm dist |
i'm having about the same issue as @sprugman. i can edit multiple cells, no problem if i leave with enter or mouse click. using the cursor keys cause the following error: Cannot call method 'remove' of undefined > backgrid.js:817 i.m using 0.2.6 via bower and chrome latest |
Use master. |
I'm running into the same error, but not consistently (Uncaught TypeError: Cannot call method 'exitEditMode' of undefined - line 2474) I did some poking around, and here is what I found (hopefully it will be useful):
The value of |
@imrane No idea because I can't reproduce it (again?), it's been fixed ages ago in #177. Also, please upgrade all your dependencies to the lastest version. Backgrid's minimal dependency is Backbone 1.1.0, anything older isn't supported. If you are sure you can reproduce this, at least give me a jsfiddle or codepen or something. Use http://rawgithub.com/ as a proxy to get around jsfiddle's warning. |
@imrane - I put a mini-hack in place to work around this. |
As promised a few days back, here is the gist I created for @imrane which details out my (what I think is) very specific situation as well as the dirty dirty (oh God, so dirty) hack that I put in place to get around it: https://gist.github.com/morficus/b7b9e8a03be274eb1169 imrane confirmed that the hack worked for him as well. |
Thanks @morficus that should help us out a lot to figure out what is happening. |
@morficus check the comment on your gist |
I had the following error
Uncaught TypeError: Cannot call method 'exitEditMode' of undefined backgrid.js?bust=1373995691863:2288
Backgrid.Body.Backbone.View.extend.moveToNextCell backgrid.js?bust=1373995691863:2288
triggerEvents backbone.js?bust=1373995691863:206
Backbone.Events.trigger backbone.js?bust=1373995691863:146
_.extend._onModelEvent backbone.js?bust=1373995691863:933
triggerEvents backbone.js?bust=1373995691863:207
Backbone.Events.trigger backbone.js?bust=1373995691863:147
Backgrid.InputCellEditor.CellEditor.extend.saveOrCancel backgrid.js?bust=1373995691863:663
jQuery.event.dispatch jquery.js?bust=1373995691863:3074
jQuery.event.add.elemData.handle
with something like that
I did consider making a fork... but for 3 lines of duckpunch fix..
I thought it would be a bit to much :)
BTW: thanks a lot for the awesome lib!
The text was updated successfully, but these errors were encountered: