Skip to content

Instantly share code, notes, and snippets.

@jwmcpeak
Created October 6, 2013 15:33
Show Gist options
  • Save jwmcpeak/6855443 to your computer and use it in GitHub Desktop.
Save jwmcpeak/6855443 to your computer and use it in GitHub Desktop.
WinJS.Namespace.define with Form elements work around.
// assuming element with submitID is an input or button element
// work around 1
WinJS.Namespace.define("ui", {
submit : null
});
ui.submit = document.getElementById("submitID");
// work around 2
WinJS.Namespace.define("ui", {
dom : {
submit : document.getElementById("submitID")
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment