search for: prototypeway

Displaying 2 results from an estimated 2 matches for "prototypeway".

2006 Mar 09
0
RE: extending an existing DOM object in a prototypeway
...5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ryan Gahl Sent: Thursday, March 09, 2006 3:38 PM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: RE: [Rails-spinoffs] extending an existing DOM object in a prototypeway This is a good (and common) practice. A good rule I try to stick to is, if more than 1 element needs some specific behaviors/functionality, make a separate class for that, and extend the element with it when needed. There are a couple things to keep in mind. One is, you almost always will need to...
2006 Mar 09
0
RE: extending an existing DOM object in aprototypeway
...h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Ryan Gahl Sent: Thursday, March 09, 2006 3:40 PM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: RE: [Rails-spinoffs] extending an existing DOM object in aprototypeway Gosh darn Outlook seems to have stripped some newlines from my response... last few lines should read... var myActiveSpanBase = new ActiveSpan({"red"}); Object.extend($(''someSpan''), myActiveSpanBase); $(''someSpan'').setup(); Or, more concisely... O...