On Mon, Jun 13, 2011 at 12:43 PM, radiate <[email protected]> wrote:
> Thanks for your response.  For clarification purposes, it sounds like
> you are saying I extended the child, which in this case was pick.  Are
> you saying that if I were to "fix" this I would've extended the HTML
> element that pick was derived from (the parent)?

Switch to DOM tab in Firebug (or Chrome Dev Tools) and select the
table cell element, then switch to console tab and type:
> $0.__proto__

This will give you the name of the object that you should extend. E.g.
if __proto__ returns HTMLTableCellElement object, then you can add
createtextbox() method to all table cell elements like this:

HTMLTableCellElement.prototype.createtextbox = function() {
   // place your code here
}

-- 
To view archived discussions from the original JSMentors Mailman list: 
http://www.mail-archive.com/[email protected]/

To search via a non-Google archive, visit here: 
http://www.mail-archive.com/[email protected]/

To unsubscribe from this group, send email to
[email protected]

Reply via email to