Skip to content

Make javascript-state-machine amd compliant - #15

Closed
dmbch wants to merge 1 commit into
jakesgordon:masterfrom
dmbch:master
Closed

dmbch wants to merge 1 commit into
jakesgordon:masterfrom
dmbch:master

Conversation

@dmbch

@dmbch dmbch commented Jan 4, 2012

Copy link
Copy Markdown

This patch wraps StateMachine in a self-executing function and either 'define's it, or attaches it to the passed window object. This way, StateMachine can more easily be used with loaders like require.js or curl.js.

jakesgordon added a commit that referenced this pull request Jan 8, 2012
@jakesgordon

Copy link
Copy Markdown
Owner

done in latest master branch v 2.1.0

Thanks!

@jakesgordon jakesgordon closed this Jan 8, 2012
@dmbch

dmbch commented Jan 11, 2012

Copy link
Copy Markdown
Author

Great, thanks!

@james-gardner

Copy link
Copy Markdown

Curious about how you use this within something like RequireJS. Especially getting it to work with callbacks in an existing module.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants