(function() {
	if(window.cordova || window.PhoneGap) {
		var v = window.useCordovaTVVersion||"3.0";
		var externalModules = [
			"/usr/palm/frameworks/cordova-tv/" + v + "/advertisement.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/billing.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/broadcast.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/camera.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/deviceinfo.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/drmagent.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/mrcu.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/push.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/upnp.js"
		];
		enyo.load.apply(enyo, externalModules);
	} else {
		enyo.warn("Cordova not found, ignoring tv modules");
	}
})();

(function() {
	if(window.cordova || window.PhoneGap) {
		var v = window.useCordovaTVVersion||"3.0";
		var externalModules = [
			"/usr/palm/frameworks/cordova-tv/" + v + "/advertisement.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/billing.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/broadcast.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/camera.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/deviceinfo.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/drmagent.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/mrcu.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/push.js",
			"/usr/palm/frameworks/cordova-tv/" + v + "/upnp.js"
		];
		enyo.load(externalModules);
	} else {
		enyo.warn("Cordova not found, ignoring tv modules");
	}
})();

Simplify enyo.load call since it handles arrays natively
Simplify enyo.load call since it handles arrays natively

Enyo-DCO-1.1-Signed-Off-By: Ben Combee (ben.combee@lge.com)
