Enabling the use of SCION statechart interpreter in Windows Store apps
If you're using JavaScript to develop a Windows Store app, and you want to use SCION to manage states by defining statecharts, getting SCION to work with WinJS
instead of jQuery
is easy!
You can override these properties directly in scion.js
(or scion.min.js
) or override them after the platform has had a chance to export them. Your choice.
ajax : WinJS.xhr
,
getDocumentFromUrl : function(url,cb){
this.ajax({ url: url }).then(
function (r) {
cb(null,r.responseXML);
},
function (e) {
cb(e);
}
);
}
Et voilà.
A more detailed protip will follow regarding the nuances involved in running a Windows 8 app with SCION. Once I've got one up and running.
Written by Will Shown
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Windows 8
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#