uberVU / mozaic

JS Framework for building SPA
http://ubervu.github.com/mozaic/
26 stars 17 forks source link

document widgets and all the properties they support #83

Closed topliceanu closed 11 years ago

topliceanu commented 11 years ago

subscribed_channels, template_name, etc.

Do this in widget/widget.coffee

aismail commented 11 years ago

:+1:

topliceanu commented 11 years ago
  1. do is this helpful?
  2. is it the right approach? should I move this to another location?
  3. it needs some help, especially with the state manager properties.

10x CC @aismail @valentinzberea @skidding

ovidiuch commented 11 years ago

Awesome stuff :+1: , I think it's rightly placed. This should open our eyes for naming inconsistencies and having too many variables

valentinzberea commented 11 years ago

Here is the list of widget states: https://github.com/uberVU/mozaic/blob/master/core/widget/states.coffee#L132-L137 It would be great if sometime we could refactor the states strings in a separate structure.

It happened that we put 'initial' instead of 'init' in several places mislead by the variable name: @initial_state