FLUID-824: Port the Tabs example code to the "that-ism" style of component structure.

Metadata

Source
FLUID-824
Type
Improvement
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Colin Clark
Reporter
Colin Clark
Created
2008-06-25T23:13:22.000-0400
Updated
2011-01-21T09:47:16.517-0500
Versions
N/A
Fixed Versions
  1. 0.4
Component
  1. Workshops, Presentations, Reports

Description

The Tabs example, part of our Fearless JavaScript workshop, is designed to show the essential techniques of building Fluid components. It should be updated to illustrate the current approach to handling object state in components using entirely functional idioms. Here are the steps:

  • The constructor function should be replaced with a creator function which refers to "that" as a stable instance reference
  • The use of prototypes should be replaces with plain old object properties
  • Defaults should be stored in the new fluid.defaults store

Comments

  • Colin Clark commented 2008-06-27T17:29:39.000-0400

    Replaced Tabs constructor with a "that-ist" creator function. Removed the use of prototypes, favouring simple property assignment and the new fluid.defaults() api.