FLUID-5902: Update keyboard-a11y demo to make use of new "indexOf" and "dereference" transforms

Metadata

Source
FLUID-5902
Type
Improvement
Priority
Major
Status
Open
Resolution
N/A
Assignee
Cindy Li
Reporter
Antranig Basman
Created
2016-05-04T20:55:11.804-0400
Updated
2016-05-04T20:55:11.804-0400
Versions
N/A
Fixed Versions
N/A
Component
  1. Demos

Description

Our keyboard-a11y demo ("five star ranking") currently makes use of a pair of clumsy fluid.transforms.free relays to manage reading and writing the model.

https://github.com/fluid-project/infusion/blob/master/demos/keyboard-a11y/js/keyboardDemo.js#L84

These should be updated to use the fluid.transforms.dereference and fluid.transforms.indexOf standard transforms that we recently acquired:
https://github.com/fluid-project/infusion/blob/master/src/framework/core/js/ModelTransformationTransforms.js#L629

Since this is the standard demo that we point new users to who ask for examples of a simple but realistic Infusion app, we should actually do this.