[Build] Declare screenfull

...and shim such that it can be acquired in the normal AMD way.
Avoids use of global variable to satisfy JSHint.
This commit is contained in:
Victor Woeltjen 2016-03-04 11:05:08 -08:00
parent c00d77dcb1
commit 6289fe333b
3 changed files with 7 additions and 1 deletions

View File

@ -44,6 +44,9 @@ requirejs.config({
},
"moment-duration-format": {
"deps": [ "moment" ]
},
"screenfull": {
"exports": "screenfull"
}
}
});

View File

@ -25,7 +25,7 @@
*/
define(
["screenfull"],
function () {
function (screenfull) {
var ENTER_FULLSCREEN = "Enter full screen mode",
EXIT_FULLSCREEN = "Exit full screen mode";

View File

@ -65,6 +65,9 @@ requirejs.config({
},
"moment-duration-format": {
"deps": [ "moment" ]
},
"screenfull": {
"exports": "screenfull"
}
},