daffl/jquery.dform — Issue #28: value subscriber runs before option subscriber
Author: six8
Created: 2012-02-03 04:42:28+00:00
State: open

If you have:

{ type: 'select', value: 'b', options: { a: 'A', b: 'B' }}

The value subscriber runs first and since there are no options yet, nothing gets selected.

If you reverse the keys:

{ type: 'select', options: { a: 'A', b: 'B' }, value: 'b'}

It works, however since you can't rely on the sort order of javascript object keys the code should make sure to run the value subscriber last (or at least after the options)