search for: clickhandlerpoint

Displaying 3 results from an estimated 3 matches for "clickhandlerpoint".

Did you mean: clickhandlerpointer
2006 Mar 09
0
RE: extending an existing DOM object in a prototypeway
...is class -- "this" will now be the DOM element extended with the ActiveSpan methods, and not just an "ActiveSpan") this.registerCallbacks(); } registerCallbackss: function() { //ALWAYS store DOM handlers in variables so you can dispose of them (prevent memory leaks) this.clickHandlerPointer = this.clickHandler.bindAsEventListener(this); Event.observe(this, ''click'', this.clickHandlerPointer); }, clickHandler: function(e) { this.style.background = this.options.color || "red"; }, dispose: function() { //get rid of the DOM event handlers... Event....
2006 Mar 09
0
RE: extending an existing DOM object in aprototypeway
...is class -- "this" will now be the DOM element extended with the ActiveSpan methods, and not just an "ActiveSpan") this.registerCallbacks(); } registerCallbackss: function() { //ALWAYS store DOM handlers in variables so you can dispose of them (prevent memory leaks) this.clickHandlerPointer = this.clickHandler.bindAsEventListener(this); Event.observe(this, ''click'', this.clickHandlerPointer); }, clickHandler: function(e) { this.style.background = this.options.color || "red"; }, dispose: function() { //get rid of the DOM event handlers... Event....
2006 Mar 09
2
extending an existing DOM object in a prototype way
I want to take an existing DOM object and extend it with some functionality. I know there''s a way to do this with prototype. Unfortunately, I''m not entirely sure how to do this. Basically, I want to take an existing DOM object and turn it into a ''widget'' by adding some functionality. say we have a span: <span id="blah">some text