FLUID-5297: Databinding tests fail in strict mode

Metadata

Source
FLUID-5297
Type
Bug
Priority
Blocker
Status
Closed
Resolution
Fixed
Assignee
Antranig Basman
Reporter
Justin Obara
Created
2014-03-27T12:06:50.432-0400
Updated
2024-07-22T09:33:48.192-0400
Versions
N/A
Fixed Versions
  1. 1.5
Component
  1. Data Binder

Description

If Fluid.js is in strict mode ("use strict"😉 the DataBinding tests fail on the "ApplyHolderChangeRequest - cautious application + invalidation" tests for the "Add array at empty root" test.

The issue appears to be caused by root being set to "ADD" in fluid.model.accessImpl. This falls through to the else condition which attempts to assign a value with array notation. In strict mode these are read only, but it seems like an error either way to be assigning values to "ADD" like this.

Comments