1 Reply Latest reply on Feb 28, 2010 7:55 PM by David_F57

    Dispatch event from spark skin

    flairjax Level 1

      Is it best practice to dispatch events from a spark skin?

        • 1. Re: Dispatch event from spark skin
          David_F57 Level 5

          Hi,

           

          Short answer probably not...

           

          Long answer, clean functional code that bends best practices is always going to be superior to best practice code that doesn't work as well.

           

          The trouble with spark skins is they don't fit neatly into a particular category for the developer, there will be those that feel a skin is a graphic part of component and should not do anything beyond that, others will see skins as a powerful extension to components which allows the developer to enhance/extend a component negating the need to modify/override the normal behaviour  of that component(i.e creating a new component along with all the debugging/testing issues it can create).

           

          Its really a matter of what you feel is the better option, Clients very rarely complain about 'best practise' they do complain about cost, and at the end of the day if placing an eventhandler in the skin saves an hour or 2 the clients going to be happy.

           

           

          David