Prevent error.

This commit is contained in:
Nicolas Stepien 2012-02-11 21:14:29 +01:00
parent 18cbff6b3d
commit edba56a711
2 changed files with 4 additions and 2 deletions

View File

@ -1528,8 +1528,9 @@
};
_Class.prototype.dragEnd = function() {
var el;
$.removeClass(this, 'drag');
return $.removeClass($('.over', this.parentNode), 'over');
if (el = $('.over', this.parentNode)) return $.removeClass(el, 'over');
};
_Class.prototype.rm = function() {

View File

@ -1143,7 +1143,8 @@ qr =
qr.replies.splice newIndex, 0, reply
dragEnd: ->
$.removeClass @, 'drag'
$.removeClass $('.over', @parentNode), 'over'
if el = $ '.over', @parentNode
$.removeClass el, 'over'
rm: ->
qr.resetFileInput()
$.rm @el