// Loads more JavaScript resources
function loadScripts (resources) {
// Abort here if resources is not defined
- if (resources == undefined) {
+ if (typeof(resources) === 'undefined') {
// This is really bad ...
throw new 'loadScripts() called with no resources (JavaScript files) to load!';
} // END - if
// Begin the loop for all JavaScript files
for (var i = 0; i < resources.length; i++) {
// Is the script set?
- if (resources[i] == undefined) {
+ if (typeof(resources[i]) === 'undefined') {
// Array element is missing, which means someone mades a boo boo ...
throw new ('resources[' + i + '] not set. Please fix your array.');
} // END - if