http://git-wip-us.apache.org/repos/asf/cordova-js/blob/c72e3213/lib/tizen/plugin/tizen/Notification.js ---------------------------------------------------------------------- diff --git a/lib/tizen/plugin/tizen/Notification.js b/lib/tizen/plugin/tizen/Notification.js index a14834f..2010b0e 100644 --- a/lib/tizen/plugin/tizen/Notification.js +++ b/lib/tizen/plugin/tizen/Notification.js @@ -121,12 +121,12 @@ module.exports = { }; } - for (index in buttonsArray) { - console.log ("index: ", index); + for (index in buttonsArray) { + console.log ("index: ", index); - element = document.getElementById("popup-button-" + buttonsArray[index]); - element.addEventListener("click", createListener(element), false); - } + element = document.getElementById("popup-button-" + buttonsArray[index]); + element.addEventListener("click", createListener(element), false); + } }, prompt: function (message, promptCallback, title, buttonLabels) {
http://git-wip-us.apache.org/repos/asf/cordova-js/blob/c72e3213/lib/webos/plugin/webos/camera.js ---------------------------------------------------------------------- diff --git a/lib/webos/plugin/webos/camera.js b/lib/webos/plugin/webos/camera.js index 0288293..a8e993a 100644 --- a/lib/webos/plugin/webos/camera.js +++ b/lib/webos/plugin/webos/camera.js @@ -28,8 +28,8 @@ module.exports = { service.Request('palm://com.palm.applicationManager', { method: 'launch', parameters: { - id: 'com.palm.app.camera', - params: { + id: 'com.palm.app.camera', + params: { appId: 'com.palm.app.camera', name: 'capture', sublaunch: true, http://git-wip-us.apache.org/repos/asf/cordova-js/blob/c72e3213/lib/webos/plugin/webos/notification.js ---------------------------------------------------------------------- diff --git a/lib/webos/plugin/webos/notification.js b/lib/webos/plugin/webos/notification.js index d65c102..01b8b5e 100644 --- a/lib/webos/plugin/webos/notification.js +++ b/lib/webos/plugin/webos/notification.js @@ -87,9 +87,9 @@ module.exports = { //the intensity for palm is inverted; 0=high intensity, 100=low intensity //this is opposite from our api, so we invert if (isNaN(intensity) || intensity > 100 || intensity <= 0) - intensity = 0; + intensity = 0; else - intensity = 100 - intensity; + intensity = 100 - intensity; // if the app id does not have the namespace "com.palm.", an error will be thrown here //this.vibhandle = new Mojo.Service.Request("palm://com.palm.vibrate", { http://git-wip-us.apache.org/repos/asf/cordova-js/blob/c72e3213/lib/webos/plugin/webos/orientation.js ---------------------------------------------------------------------- diff --git a/lib/webos/plugin/webos/orientation.js b/lib/webos/plugin/webos/orientation.js index 25ed3ad..3c05d9b 100644 --- a/lib/webos/plugin/webos/orientation.js +++ b/lib/webos/plugin/webos/orientation.js @@ -29,6 +29,6 @@ module.exports = { * orientation is one of 'up', 'down', 'left', 'right', or 'free' */ getCurrentOrientation: function() { - return PalmSystem.windowOrientation; + return PalmSystem.windowOrientation; } }; http://git-wip-us.apache.org/repos/asf/cordova-js/blob/c72e3213/lib/windows8/plugin/windows8/FileProxy.js ---------------------------------------------------------------------- diff --git a/lib/windows8/plugin/windows8/FileProxy.js b/lib/windows8/plugin/windows8/FileProxy.js index fba3b83..717f143 100644 --- a/lib/windows8/plugin/windows8/FileProxy.js +++ b/lib/windows8/plugin/windows8/FileProxy.js @@ -302,59 +302,59 @@ module.exports = { var fullPath = args[0]; Windows.Storage.StorageFolder.getFolderFromPathAsync(fullPath).done(function (storageFolder) { - var storageFolderPer = Windows.Storage.ApplicationData.current.localFolder; - var storageFolderTem = Windows.Storage.ApplicationData.current.temporaryFolder; + var storageFolderPer = Windows.Storage.ApplicationData.current.localFolder; + var storageFolderTem = Windows.Storage.ApplicationData.current.temporaryFolder; - if (storageFolder.path == storageFolderPer.path || storageFolder.path == storageFolderTem.path) { - fail && fail(FileError.NO_MODIFICATION_ALLOWED_ERR); - return; - } + if (storageFolder.path == storageFolderPer.path || storageFolder.path == storageFolderTem.path) { + fail && fail(FileError.NO_MODIFICATION_ALLOWED_ERR); + return; + } - var removeFolders = function (path) { - return new WinJS.Promise(function (complete) { - var filePromiseArr = []; - var storageFolderTop = null; - Windows.Storage.StorageFolder.getFolderFromPathAsync(path).then( - function (storageFolder) { - var fileListPromise = storageFolder.createFileQuery().getFilesAsync(); + var removeFolders = function (path) { + return new WinJS.Promise(function (complete) { + var filePromiseArr = []; + var storageFolderTop = null; + Windows.Storage.StorageFolder.getFolderFromPathAsync(path).then( + function (storageFolder) { + var fileListPromise = storageFolder.createFileQuery().getFilesAsync(); - storageFolderTop = storageFolder; - return fileListPromise; - } - // remove all the files directly under the folder. - ).then(function (fileList) { - if (fileList !== null) { - for (var i = 0; i < fileList.length; i++) { - var filePromise = fileList[i].deleteAsync(); - filePromiseArr.push(filePromise); + storageFolderTop = storageFolder; + return fileListPromise; } - } - WinJS.Promise.join(filePromiseArr).then(function () { - var folderListPromise = storageFolderTop.createFolderQuery().getFoldersAsync(); - return folderListPromise; - // remove empty folders. - }).then(function (folderList) { - var folderPromiseArr = []; - if (folderList.length !== 0) { - for (var j = 0; j < folderList.length; j++) { - - folderPromiseArr.push(removeFolders(folderList[j].path)); + // remove all the files directly under the folder. + ).then(function (fileList) { + if (fileList !== null) { + for (var i = 0; i < fileList.length; i++) { + var filePromise = fileList[i].deleteAsync(); + filePromiseArr.push(filePromise); } - WinJS.Promise.join(folderPromiseArr).then(function () { - storageFolderTop.deleteAsync().then(complete); - }); - } else { - storageFolderTop.deleteAsync().then(complete); } + WinJS.Promise.join(filePromiseArr).then(function () { + var folderListPromise = storageFolderTop.createFolderQuery().getFoldersAsync(); + return folderListPromise; + // remove empty folders. + }).then(function (folderList) { + var folderPromiseArr = []; + if (folderList.length !== 0) { + for (var j = 0; j < folderList.length; j++) { + + folderPromiseArr.push(removeFolders(folderList[j].path)); + } + WinJS.Promise.join(folderPromiseArr).then(function () { + storageFolderTop.deleteAsync().then(complete); + }); + } else { + storageFolderTop.deleteAsync().then(complete); + } + }, function () { }); }, function () { }); - }, function () { }); - }); - }; - removeFolders(storageFolder.path).then(function () { - Windows.Storage.StorageFolder.getFolderFromPathAsync(storageFolder.path).then( - function () {}, - function () { - if (typeof successCallback !== 'undefined' && successCallback !== null) { successCallback(); } + }); + }; + removeFolders(storageFolder.path).then(function () { + Windows.Storage.StorageFolder.getFolderFromPathAsync(storageFolder.path).then( + function () {}, + function () { + if (typeof successCallback !== 'undefined' && successCallback !== null) { successCallback(); } }); }); }); http://git-wip-us.apache.org/repos/asf/cordova-js/blob/c72e3213/lib/windows8/plugin/windows8/console.js ---------------------------------------------------------------------- diff --git a/lib/windows8/plugin/windows8/console.js b/lib/windows8/plugin/windows8/console.js index f53297a..a71a2c5 100644 --- a/lib/windows8/plugin/windows8/console.js +++ b/lib/windows8/plugin/windows8/console.js @@ -40,7 +40,7 @@ if(!console || !console.log) } else if(console && console.log) { - console.log("console.log exists already!"); - console.warn = console.warn || function(msg){console.log("warn:"+msg);}; - console.error = console.error || function(msg){console.log("error:"+msg);}; + console.log("console.log exists already!"); + console.warn = console.warn || function(msg){console.log("warn:"+msg);}; + console.error = console.error || function(msg){console.log("error:"+msg);}; }
