Skip to content

Instantly share code, notes, and snippets.

@gabmontes
Last active September 29, 2015 18:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabmontes/6a65551c6155f6775ecd to your computer and use it in GitHub Desktop.
Save gabmontes/6a65551c6155f6775ecd to your computer and use it in GitHub Desktop.
Adapt WinJS 2.1 in Windows Phone 8.1 to work with latest angular-winjs bridge
(function (global) {
"use strict";
if (WinJS) {
// https://github.com/winjs/angular-winjs/issues/56
WinJS.UI.Command = WinJS.UI.Command || WinJS.UI.AppBarCommand;
// https://github.com/winjs/angular-winjs/issues/62
WinJS.Utilities._setImmediate = WinJS.Utilities._setImmediate || setImmediate.bind(global);
}
})(this);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment