Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Coca-code
javascript-state-machine
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
javascript-state-machine
test
on
master
User selector
All users
Datepicker
All time
Commit history
Commits on Jan 21, 2015
fix issue #74 - new transitions() method is broken
jakesgordon
committed
f247a9b
View commit details
Copy full SHA for f247a9b
View code at this point
Browse repository at this point
Commits on Jan 13, 2015
Added method which returned allowable transitions from current state.
Mathew Goldsborough
committed
f6596f0
View commit details
Copy full SHA for f6596f0
View code at this point
Browse repository at this point
Commits on Oct 14, 2014
fix(exports):fixed window test to add web worker compatibility
Offirmo
committed
0bff1b1
View commit details
Copy full SHA for 0bff1b1
View code at this point
Browse repository at this point
Commits on Mar 15, 2014
only define as a requirejs module when define.amd is present
jakesgordon
committed
6d61d92
View commit details
Copy full SHA for 6d61d92
View code at this point
Browse repository at this point
Added nodejs support (finally) along with node-qunit test/runner.js
jakesgordon
committed
c783928
View commit details
Copy full SHA for c783928
View code at this point
Browse repository at this point
upgrade to latest version of qunit
jakesgordon
committed
db5f5b7
View commit details
Copy full SHA for db5f5b7
View code at this point
Browse repository at this point
Commits on Jan 26, 2013
Added optional `final` state(s) and `isFinished()` helper method (issue #23)
jakesgordon
committed
6319311
View commit details
Copy full SHA for 6319311
View code at this point
Browse repository at this point
extended `fsm.is()` to accept an array of states (in addition to just a single state)
jakesgordon
committed
131af49
View commit details
Copy full SHA for 131af49
View code at this point
Browse repository at this point
[issue #28] - Added generalized callbacks for intercepting all events and state transitions (instead of having a callback per-event/state)
Show description for f5eb7e3
jakesgordon
committed
f5eb7e3
View commit details
Copy full SHA for f5eb7e3
View code at this point
Browse repository at this point
Renamed Result.ASYNC to Result.PENDING to avoid confusion with existing ASYNC constant (that is used to request an asynchronous transition)
jakesgordon
committed
4f584f0
View commit details
Copy full SHA for 4f584f0
View code at this point
Browse repository at this point
Tweaks after pull #34 - release notes, minified version, whitespace alignment
jakesgordon
committed
41db8e8
View commit details
Copy full SHA for 41db8e8
View code at this point
Browse repository at this point
Commits on Sep 19, 2012
Fix event return codes and tests
Julien Sanchez
committed
cf58637
View commit details
Copy full SHA for cf58637
View code at this point
Browse repository at this point
Commits on May 9, 2012
Issue #22 - A Function to cancel a transition after StateMachine.ASYNC
jakesgordon
committed
1180b8a
View commit details
Copy full SHA for 1180b8a
View code at this point
Browse repository at this point
Commits on Mar 17, 2012
add tests and documentation to resolve github issue #19
jakesgordon
committed
394c219
View commit details
Copy full SHA for 394c219
View code at this point
Browse repository at this point
Commits on Feb 20, 2012
Ensure global namespace is not polluted when using requireJS. And add qunit test of basics when included using requireJS
jakesgordon
committed
5d94074
View commit details
Copy full SHA for 5d94074
View code at this point
Browse repository at this point
Commits on Feb 12, 2012
Fix github issue #17 - Don't swallow errors in SM callbacks
Show description for 38a8f2b
jakesgordon
committed
38a8f2b
View commit details
Copy full SHA for 38a8f2b
View code at this point
Browse repository at this point
Commits on Jan 8, 2012
Allow event to be cancelled by returning `false` from `onleavestate` handler (issue #13)
Show description for 686b593
jakesgordon
committed
686b593
View commit details
Copy full SHA for 686b593
View code at this point
Browse repository at this point
Commits on Jan 7, 2012
Provide explicit return values from an event method (github issue #12)
Show description for 9e5000c
jakesgordon
committed
9e5000c
View commit details
Copy full SHA for 9e5000c
View code at this point
Browse repository at this point
Allow events that can be fired from any state using a wildcard '*' (or missing) 'from' attribute (github issue #11)
Show description for a5c7025
jakesgordon
committed
a5c7025
View commit details
Copy full SHA for a5c7025
View code at this point
Browse repository at this point
Allow no-op transition event if 'to' parameter is not specified (github issue #5)
Show description for 69808b3
jakesgordon
committed
69808b3
View commit details
Copy full SHA for 69808b3
View code at this point
Browse repository at this point
finalized custom error handler for issue #3
jakesgordon
committed
25b9d49
View commit details
Copy full SHA for 25b9d49
View code at this point
Browse repository at this point
Commits on Dec 10, 2011
extend the custom error handler (cfg.error) to support handling the case where a caller provided callback throws an exception
Show description for 724aa0b
jakesgordon
committed
724aa0b
View commit details
Copy full SHA for 724aa0b
View code at this point
Browse repository at this point
Merge pull request #10 from cboone/feature/custom_error_callback
Show description for 1195fea
jakesgordon
committed
1195fea
View commit details
Copy full SHA for 1195fea
View code at this point
Browse repository at this point
Commits on Nov 27, 2011
allow custom event error handling
cboone
committed
cdea1f1
View commit details
Copy full SHA for cdea1f1
View code at this point
Browse repository at this point
fix qunit test name spelling
cboone
committed
cb82f04
View commit details
Copy full SHA for cb82f04
View code at this point
Browse repository at this point
fix exception message spelling
cboone
committed
ec01fb4
View commit details
Copy full SHA for ec01fb4
View code at this point
Browse repository at this point
Commits on Aug 21, 2011
fixed typo
jakesgordon
committed
1b3209f
View commit details
Copy full SHA for 1b3209f
View code at this point
Browse repository at this point
added qunit test to verify correct callbacks on same-state transtion (before/after event ARE fired, enter/leave state ARE NOT fired)
jakesgordon
committed
b891170
View commit details
Copy full SHA for b891170
View code at this point
Browse repository at this point
Commits on Aug 19, 2011
ensure `can()` returns false during asynchronous state transitions
jakesgordon
committed
5462141
View commit details
Copy full SHA for 5462141
View code at this point
Browse repository at this point
removing `async` option from event definition... mechanism for doing async transition is to return false from an `onleavestate` handler and be sure to call this.transition() when you are ready to g…
Show description for 9d71f62
jakesgordon
committed
9d71f62
View commit details
Copy full SHA for 9d71f62
View code at this point
Browse repository at this point
allow hooks to be specified during initial construction (instead of tacking them onto the object afterwards) and renamed 'hook' to 'callback' throughout
jakesgordon
committed
887ad3f
View commit details
Copy full SHA for 887ad3f
View code at this point
Browse repository at this point
Much more consistent handling of hook arguments. Now the first 3 arguments of ALL hooks will be the event name, the 'from' state and the 'to' state followed by whatever arguments the user passed to…
Show description for 4d5b75d
jakesgordon
committed
4d5b75d
View commit details
Copy full SHA for 4d5b75d
View code at this point
Browse repository at this point
added some asyncronous transitions to demo page... not really happy with the declaration model yet.
jakesgordon
committed
8936ebd
View commit details
Copy full SHA for 8936ebd
View code at this point
Browse repository at this point
allow the choice between sync and async transition to be made at run-time if desired by using onleavestate return value (false) instead of an explicit design-time async attribute on the event (alth…
Show description for a4dbacd
jakesgordon
committed
a4dbacd
View commit details
Copy full SHA for a4dbacd
View code at this point
Browse repository at this point
ensure hooks are called in correct order even when transition is asynchronous (onbeforeevent, onleavestate, onenterstate, onafterevent)
jakesgordon
committed
fc28a25
View commit details
Copy full SHA for fc28a25
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.