Created
October 6, 2013 15:33
-
-
Save jwmcpeak/6855443 to your computer and use it in GitHub Desktop.
WinJS.Namespace.define with Form elements work around.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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