Skip to content

Instantly share code, notes, and snippets.

@csainty
Created March 7, 2012 22:48
Show Gist options
  • Save csainty/1996842 to your computer and use it in GitHub Desktop.
Save csainty/1996842 to your computer and use it in GitHub Desktop.
// helpers.js
(function() {
WinJS.Namespace.define("MyApp.Functions", {
add: function (x,y) {
return x + y;
}
});
})();
// page.js
(function() {
console.log(MyApp.Functions.add(1,1)); // prints 2
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment