enyojs/ares-project — pull request #742 by dod38fr (2014-01-24 15:03:28+00:00)
Title: ENYO-3632: added call-back to codeUpdate and control designer with a FSM

Uses https://github.com/jakesgordon/javascript-state-machine

* ENYO-3632: removed obsolete designerFrameReady attribute
* ENYO-3632: removed obsolete reloadNeeded variable
* ENYO-3632: designDocument reloads broken designer
* ENYO-3632: cleanup
* ENYO-3632: cleanup extra commas
* ENYO-3632: send resize prerenderDrop requestPositionValue dragStart only when FSM is ready
* ENYO-3632: added sendMessageIfReady method (refactor)
* ENYO-3632: handle cleanUp through state machine...
* ENYO-3632: route modify (and subsequent render) through state machine
* ENYO-3632: allow highlight on drag only when fsm is ready
* ENYO-3632: handle selection through the state machine
* ENYO-3632: send msg "selected" after "select" command...
* ENYO-3632: removed obsolete renderCallback attribute
* ENYO-3632: use state machine and callback around codeUpdate or cssUpdate
* ENYO-3632: explicitly fill error message (to track what's inside)
* ENYO-3632: don't delay event coming from designer frame
* ENYO-3632: rendering is handled by fsm
* ENYO-3632: Ready state call back is mandatory
* ENYO-3632: fsm error handler now barfs on bad callbacks
* ENYO-3632: handled error with requestReload through fsm
* ENYO-3632: fixed reload button
* ENYO-3632: aligned and removed duplicated event
* ENYO-3632: updated comments
* ENYO-3632: moved designerFrame load/reload into state machine
* ENYO-3632: added state-machine.min.js in lib/foss ...
* ENYO-3632: updated comments
* ENYO-3658: put comments in the beginning of their block
* ENYO-3632: ENYO-3658: extracted updateSourceCallback invocation
* ENYO-3181: Minor fix of call and return value of deviceChosen... (ENYO-3181)
* ENYO-3181: added comments and logs
* ENYO-3181: pass reloadNeeded in error message...
* ENYO-3181: removed test on error.val.popup (not used in designerFrame)
* ENYO-3181: added comments
* ENYO-3181: renamed client in designerFrame (internal change)
* ENYO-3181: added comments

Related JIRA: https://enyojs.atlassian.net/browse/ENYO-3632

Enyo-DCO-1.1-Signed-off-by: Dominique Dumont