Lines Matching refs:node
145 patch:function(node, type, className) {
151 if(node.style[property]) {
152 node.style[property] = null;
155 // just to make sure, also keep track of patched classnames locally on the node
156 if(!node.csshover) node.csshover = [];
159 if(!node.csshover[className]) {
160 node.csshover[className] = true;
163 var element = new CSSHoverElement(node, type, className);
210 function CSSHoverElement(node, type, className) {
215 this.node = node;
220 this.activator = function(){ node.className += ' ' + className; };
221 this.deactivator = function(){ node.className = node.className.replace(replacer, ' '); };
224 node.attachEvent(CSSEvents[type].activator, this.activator);
225 node.attachEvent(CSSEvents[type].deactivator, this.deactivator);
233 this.node.detachEvent(CSSEvents[this.type].activator, this.activator);
234 this.node.detachEvent(CSSEvents[this.type].deactivator, this.deactivator);
239 this.node = null;
249 return function(node, type, className) {
250 if(node) {
252 return CSSHover.patch(node, type, className);
254 // called ondomcontentready via the public:attach node