Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

send exceptions to SC if avaliable

  • Loading branch information...
commit 19e72354a74412e5fe4da360de6b5d8053b6a906 1 parent 3c4acb4
@onkis onkis authored etgryphon committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  frameworks/foundation/system/statechart.js
View
3  frameworks/foundation/system/statechart.js
@@ -367,6 +367,9 @@ SCUI.Statechart = {
handled = responder.tryToPerform(action, sender, context);
} catch(exp){
console.error("Exception occurred while trying perform action: %@ \n %@".fmt(action,exp));
+ if (SC.ExceptionHandler) {
+ SC.ExceptionHandler.handleException(exp);
+ }
}
}
if(!handled) responder = responder.get('parentState') ? this._all_states[tree][responder.get('parentState')] : null;
Please sign in to comment.
Something went wrong with that request. Please try again.