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

View File

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