/sproutcore-statechart

(Ember Only) Repository for the ported SproutCore Statechart package

Primary LanguageJavaScript

SproutCore Statechart

Description:

This is a port of the SproutCore Statechart library from the SproutCore 1.x framework for use in SproutCore 2.0 applications. It was principally authored by Michael Cohen (aka. FrozenCanuck).

Features / Problems:

  • The stateObserves() helper does not properly work with global paths. These problems are captured in the unit tests
  • There are a few fixes for bugs that are in the SproutCore 1.x version that have not been ported over as of yet.

If you run into a problem, please file an issue on this repository.

Synopsis:

TODO: Add documentation to the README.

For the time being, there are plenty of examples in the source code, and example usage throughout the extensive unit tests.

Requirements:

In order to use the Statechart package, you'll need two libraries:

These dependencies are automatically installed if you're using BPM. If you want to download and use the JS file (and assuming you're already using SproutCore 2.0), don't forget to grab the built version of the Utils package.

Install:

You can use the Statechart package by either downloading the JavaScript files provided in the Downloads section of this repository or using BPM. To install it via BPM, simply run

bpm add sproutcore-statechart

And this will handle adding all of its dependencies as well. You, of course, need to be using BPM for your application or package for this to work ;)