Skip to content

Instantly share code, notes, and snippets.

@sdesai
Created June 4, 2013 00:17
Show Gist options
  • Save sdesai/5702618 to your computer and use it in GitHub Desktop.
Save sdesai/5702618 to your computer and use it in GitHub Desktop.
Charts/Attribute, dataProvider, seriesKeys order of operation
# 3.10.0
dataProvider
- addAttr(dataProvider)
- setter(dataProvider)
- seriesKeysExplicitlySet === undefined
- set(seriesKeys, parsedFromDataProvider)
- set AD-HOC (not added yet)
- set value = parsedFromDataProvider
- fireAttrChange(seriesKeys)
- defaultFn
- get(seriesKeys)
- add-out-of_order
- addAttr(seriesKeys, initValue)
- set(seriesKeys)
- setAttrVal
- setter(seriesKeys)
- seriesKeysExplicitlySet = true
- store initValue
- get returns initValue
END RESULT:
* stored value = initValue
* seriesKeysExplicitlySet = true
# With https://github.com/yui/yui3/pull/781
dataProvider
- addAttr(dataProvider)
- setter(dataProvider)
- seriesKeysExplicitlySet === undefined
- set(seriesKeys, parsedFromDataProvider)
- add-out-of-order
- addAttr(seriesKeys, initValue)
- set(seriesKeys)
- setAttrVal
- setter(seriesKeys)
- seriesKeysExplicitlySet = true
- store initValue
- continue with set value = parsedFromDataProvider
END RESULT:
* stored value = parsedFromDataProvider
* seriesKeysExplicitlySet = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment