Ticket #5985 (closed defect: fixed)
normalize, simplify animateProperty() API, perhaps alias to dojo.animate()
| Reported by: | alex | Owned by: | alex |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.1 |
| Component: | fx | Version: | 1.0 |
| Severity: | normal | Keywords: | |
| Cc: |
Description (last modified by alex) (diff)
the following (currently working) animation call:
dojo.animateProperty({
node: "thinger",
properties: {
left: { end: 100 }
}
}).play()
Should be able to be shortened, without ambiguity, to:
dojo.animateProperty("thinger", { left: 100 }).play();
which implies that we should:
- accept nodes as the first param and properties as the second
- assume that if an object isn't passed for a particular property, we assume it to be the end
- handle positioning (if something isn't relative, make it so, etc.)
Change History
Note: See
TracTickets for help on using
tickets.