herp, stopPropagation

This commit is contained in:
James Campos 2011-05-02 23:26:53 -07:00
parent 5ce349fee1
commit 61243ab9ec
2 changed files with 8 additions and 8 deletions

View File

@ -1205,9 +1205,9 @@
init: function() {
var node;
node = $('form[name=delform] > *:not([id])');
$.bind(d.body, threading.preventDefault);
$.bind(d, 'DOMNodeInserted', threading.stopPropagation);
threading.thread(node);
return $.unbind(d.body, threading.preventDefault);
return $.unbind(d, 'DOMNodeInserted', threading.stopPropagation);
},
thread: function(node) {
var div, op;
@ -1235,8 +1235,8 @@
return threading.thread(node);
}
},
preventDefault: function(e) {
return e.preventDefault();
stopPropagation: function(e) {
return e.stopPropagation();
}
};
threadHiding = {

View File

@ -934,9 +934,9 @@ threading =
# don't thread image controls
node = $ 'form[name=delform] > *:not([id])'
# don't confuse other scripts *cough*/b/ackwash*cough*
$.bind d.body, threading.preventDefault
$.bind d, 'DOMNodeInserted', threading.stopPropagation
threading.thread node
$.unbind d.body, threading.preventDefault
$.unbind d, 'DOMNodeInserted', threading.stopPropagation
thread: (node) ->
op = $.el 'div',
@ -963,8 +963,8 @@ threading =
unless node.align or node.nodeName is 'CENTER'
threading.thread node
preventDefault: (e) ->
e.preventDefault()
stopPropagation: (e) ->
e.stopPropagation()
threadHiding =
init: ->