Category: Javascript
-
Multiple Inheritance
Do you ever wish for multiple inheritance? That is, being able to inherit the methods and properties from multiple classes? For example, let’s say you have: And you want But you don’t want to have to spell it out because there’s a lot more in functions functionA and functionB than I’ve put here. Conventional wisdom…
-
How Big?
clientWidth = width + padding clientHeight = height + padding offsetWidth = width + padding + border offsetHeight = height + padding + border totalWidth = width + padding + border + margin Use the following prototype definition: totalHeight = height + padding + border + margin Use the following prototype definition: clientTop = top…