Lint errors - missing or extraneous semicolons mostly.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/3b7d74c9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/3b7d74c9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/3b7d74c9 Branch: refs/heads/master Commit: 3b7d74c9ed12934cb1460fe810ba6aa7b7761e30 Parents: 47fce02 Author: Mark Dineen <mdineen@dineen> Authored: Thu Oct 4 13:33:08 2012 -0400 Committer: Mark Dineen <mdineen@dineen> Committed: Thu Oct 4 13:40:44 2012 -0400 ---------------------------------------------------------------------- lib/android/plugin/android/nativeapiprovider.js | 2 +- lib/common/channel.js | 6 +- lib/common/plugin/FileTransfer.js | 2 +- lib/common/plugin/Media.js | 4 +- lib/common/plugin/MediaError.js | 2 +- lib/cordova.js | 2 +- lib/ios/exec.js | 2 +- lib/ios/plugin/ios/console.js | 23 +++--- lib/webworks/java/platform.js | 4 +- lib/windows8/plugin/windows8/CameraProxy.js | 70 ++++++++-------- lib/windows8/plugin/windows8/CaptureProxy.js | 36 ++++---- lib/windows8/plugin/windows8/MediaFile.js | 12 ++-- lib/windows8/plugin/windows8/MediaProxy.js | 8 +- lib/windows8/plugin/windows8/NotificationProxy.js | 4 +- lib/windows8/plugin/windows8/geolocation.js | 4 +- lib/wp7/platform.js | 2 +- 16 files changed, 91 insertions(+), 92 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/android/plugin/android/nativeapiprovider.js ---------------------------------------------------------------------- diff --git a/lib/android/plugin/android/nativeapiprovider.js b/lib/android/plugin/android/nativeapiprovider.js index 43ae53d..35cc253 100644 --- a/lib/android/plugin/android/nativeapiprovider.js +++ b/lib/android/plugin/android/nativeapiprovider.js @@ -6,7 +6,7 @@ var nativeApi = this._cordovaNative || require('cordova/plugin/android/promptbas var currentApi = nativeApi; module.exports = { - get: function() { return currentApi }, + get: function() { return currentApi; }, setPreferPrompt: function(value) { currentApi = value ? require('cordova/plugin/android/promptbasednativeapi') : nativeApi; } http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/common/channel.js ---------------------------------------------------------------------- diff --git a/lib/common/channel.js b/lib/common/channel.js index 1ad7227..6e90603 100644 --- a/lib/common/channel.js +++ b/lib/common/channel.js @@ -89,8 +89,8 @@ var Channel = function(type, sticky) { if (!(--i)) h(); }; for (var j=0; j<len; j++) { - if (c[j].state == 0) { - throw Error('Can only use join with sticky channels.') + if (c[j].state === 0) { + throw Error('Can only use join with sticky channels.'); } c[j].subscribe(f); } @@ -189,7 +189,7 @@ Channel.prototype.unsubscribe = function(f) { if (handler) { delete this.handlers[guid]; this.numHandlers--; - if (this.numHandlers == 0) { + if (this.numHandlers === 0) { this.onHasSubscribersChange && this.onHasSubscribersChange(); } } http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/common/plugin/FileTransfer.js ---------------------------------------------------------------------- diff --git a/lib/common/plugin/FileTransfer.js b/lib/common/plugin/FileTransfer.js index 1ace9ba..451b4af 100644 --- a/lib/common/plugin/FileTransfer.js +++ b/lib/common/plugin/FileTransfer.js @@ -144,6 +144,6 @@ FileTransfer.prototype.download = function(source, target, successCallback, erro */ FileTransfer.prototype.abort = function(successCallback, errorCallback) { exec(successCallback, errorCallback, 'FileTransfer', 'abort', [this._id]); -} +}; module.exports = FileTransfer; http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/common/plugin/Media.js ---------------------------------------------------------------------- diff --git a/lib/common/plugin/Media.js b/lib/common/plugin/Media.js index 70072c8..d126ace 100644 --- a/lib/common/plugin/Media.js +++ b/lib/common/plugin/Media.js @@ -193,13 +193,13 @@ Media.onStatus = function(id, msgType, value) { media._duration = value; break; case Media.MEDIA_ERROR : - media.errorCallback && media.errorCallback(value); + media.errorCallback && media.errorCallback(value); break; case Media.MEDIA_POSITION : media._position = Number(value); break; default : - console && console.error && console.error("Unhandled Media.onStatus :: " + msgType); + console && console.error && console.error("Unhandled Media.onStatus :: " + msgType); break; } } http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/common/plugin/MediaError.js ---------------------------------------------------------------------- diff --git a/lib/common/plugin/MediaError.js b/lib/common/plugin/MediaError.js index e636f3d..53f40dd 100644 --- a/lib/common/plugin/MediaError.js +++ b/lib/common/plugin/MediaError.js @@ -45,7 +45,7 @@ MediaError.MEDIA_ERR_ABORTED = MediaError.MEDIA_ERR_ABORTED || 1; MediaError.MEDIA_ERR_NETWORK = MediaError.MEDIA_ERR_NETWORK || 2; MediaError.MEDIA_ERR_DECODE = MediaError.MEDIA_ERR_DECODE || 3; MediaError.MEDIA_ERR_NONE_SUPPORTED = MediaError.MEDIA_ERR_NONE_SUPPORTED || 4; -// TODO: MediaError.MEDIA_ERR_NONE_SUPPORTED is legacy, the W3 spec now defines it as below. +// TODO: MediaError.MEDIA_ERR_NONE_SUPPORTED is legacy, the W3 spec now defines it as below. // as defined by http://dev.w3.org/html5/spec-author-view/video.html#error-codes MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED = MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED || 4; http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/cordova.js ---------------------------------------------------------------------- diff --git a/lib/cordova.js b/lib/cordova.js index 3abcbc6..36b305d 100644 --- a/lib/cordova.js +++ b/lib/cordova.js @@ -136,7 +136,7 @@ var cordova = { }, /** * Method to fire event from native code - * bNoDetach is required for events which cause an exception which needs to be caught in native code + * bNoDetach is required for events which cause an exception which needs to be caught in native code */ fireDocumentEvent: function(type, data, bNoDetach) { var evt = createEvent(type, data); http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/ios/exec.js ---------------------------------------------------------------------- diff --git a/lib/ios/exec.js b/lib/ios/exec.js index b58df58..45cf2d6 100644 --- a/lib/ios/exec.js +++ b/lib/ios/exec.js @@ -36,7 +36,7 @@ var cordova = require('cordova'), XHR_OPTIONAL_PAYLOAD: 3 }, // XHR mode does not work on iOS 4.2, so default to IFRAME_NAV for such devices. - // XHR mode's main advantage is working around a bug in -webkit-scroll, which + // XHR mode's main advantage is working around a bug in -webkit-scroll, which // doesn't exist in 4.X devices anyways. bridgeMode = navigator.userAgent.indexOf(' 4_') == -1 ? jsToNativeModes.XHR_NO_PAYLOAD : jsToNativeModes.IFRAME_NAV, execIframe, http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/ios/plugin/ios/console.js ---------------------------------------------------------------------- diff --git a/lib/ios/plugin/ios/console.js b/lib/ios/plugin/ios/console.js index 5073f31..cf26b5f 100644 --- a/lib/ios/plugin/ios/console.js +++ b/lib/ios/plugin/ios/console.js @@ -58,16 +58,15 @@ function stringify(message) { } catch (e) { return e.toString(); } -}; +} /** * remember the original console and it's methods */ -var origConsole = window.console || {} - -var origConsole_log = origConsole.log || function(){} -var origConsole_warn = origConsole.warn || function(){} -var origConsole_error = origConsole.error || function(){} +var origConsole = window.console || {}, + origConsole_log = origConsole.log || function(){}, + origConsole_warn = origConsole.warn || function(){}, + origConsole_error = origConsole.error || function(){}; /** @@ -75,8 +74,8 @@ var origConsole_error = origConsole.error || function(){} * @param {Object|String} message Message or object to print to the console */ DebugConsole.prototype.log = function(message) { - origConsole_log.apply(origConsole, arguments) - + origConsole_log.apply(origConsole, arguments); + if (this.logLevel <= DebugConsole.INFO_LEVEL) { exec(null, null, 'Debug Console', 'log', [ stringify(message), { logLevel: 'INFO' } ]); } @@ -87,8 +86,8 @@ DebugConsole.prototype.log = function(message) { * @param {Object|String} message Message or object to print to the console */ DebugConsole.prototype.warn = function(message) { - origConsole_warn.apply(origConsole, arguments) - + origConsole_warn.apply(origConsole, arguments); + if (this.logLevel <= DebugConsole.WARN_LEVEL) { exec(null, null, 'Debug Console', 'log', [ stringify(message), { logLevel: 'WARN' } ]); } @@ -99,8 +98,8 @@ DebugConsole.prototype.warn = function(message) { * @param {Object|String} message Message or object to print to the console */ DebugConsole.prototype.error = function(message) { - origConsole_error.apply(origConsole, arguments) - + origConsole_error.apply(origConsole, arguments); + if (this.logLevel <= DebugConsole.ERROR_LEVEL) { exec(null, null, 'Debug Console', 'log', [ stringify(message), { logLevel: 'ERROR' } ]); } http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/webworks/java/platform.js ---------------------------------------------------------------------- diff --git a/lib/webworks/java/platform.js b/lib/webworks/java/platform.js index 54eefed..492eb83 100644 --- a/lib/webworks/java/platform.js +++ b/lib/webworks/java/platform.js @@ -84,8 +84,8 @@ module.exports = { // Inject listeners for buttons on the document. for (var button in buttonMapping) { if (buttonMapping.hasOwnProperty(button)) { - var channel = cordova.addDocumentEventHandler(button); - channel.onHasSubscribersChange = eventHandler(button); + var buttonChannel = cordova.addDocumentEventHandler(button); + buttonChannel.onHasSubscribersChange = eventHandler(button); } } http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/windows8/plugin/windows8/CameraProxy.js ---------------------------------------------------------------------- diff --git a/lib/windows8/plugin/windows8/CameraProxy.js b/lib/windows8/plugin/windows8/CameraProxy.js index 96cbefe..d14c907 100644 --- a/lib/windows8/plugin/windows8/CameraProxy.js +++ b/lib/windows8/plugin/windows8/CameraProxy.js @@ -55,7 +55,7 @@ module.exports = { var pkg = Windows.ApplicationModel.Package.current; var packageId = pkg.installedLocation; - + var fail = function (fileError) { errorCallback("FileError, code:" + fileError.code); }; @@ -96,26 +96,26 @@ module.exports = { Windows.Storage.Streams.RandomAccessStream.copyAndCloseAsync(_stream, fileStream).done(function () { var _imageUrl = URL.createObjectURL(file); successCallback(_imageUrl); - }, function () { errorCallback("Resize picture error."); }) - }, function () { errorCallback("Resize picture error."); }) - }, function () { errorCallback("Resize picture error."); }) - }) + }, function () { errorCallback("Resize picture error."); }); + }, function () { errorCallback("Resize picture error."); }); + }, function () { errorCallback("Resize picture error."); }); + }); - } - } + }; + }; reader.readAsDataURL(filePhoto); - } + }; var failCB = function () { - errorCallback("File not found.") - } + errorCallback("File not found."); + }; fileEntry.file(successCB, failCB); - } + }; var fail = function (fileError) { errorCallback("FileError, code:" + fileError.code); - } + }; Windows.Storage.StorageFolder.getFolderFromPathAsync(packageId.path).done(function (storageFolder) { file.copyAsync(storageFolder, file.name, Windows.Storage.NameCollisionOption.replaceExisting).then(function (storageFile) { success(new FileEntry(storageFile.name, storageFile.path)); @@ -124,9 +124,9 @@ module.exports = { }, function () { errorCallback("Folder not access."); }); - }) + }); - } + }; // because of asynchronous method, so let the successCallback be called in it. var resizeImageBase64 = function (file) { @@ -157,17 +157,17 @@ module.exports = { var arr = finalFile.split(","); var newStr = finalFile.substr(arr[0].length + 1); successCallback(newStr); - } - } + }; + }; reader.readAsDataURL(filePhoto); - } + }; var failCB = function () { - errorCallback("File not found.") - } + errorCallback("File not found."); + }; fileEntry.file(successCB, failCB); - } + }; Windows.Storage.StorageFolder.getFolderFromPathAsync(packageId.path).done(function (storageFolder) { file.copyAsync(storageFolder, file.name, Windows.Storage.NameCollisionOption.replaceExisting).then(function (storageFile) { @@ -177,9 +177,9 @@ module.exports = { }, function () { errorCallback("Folder not access."); }); - }) + }); - } + }; if (sourceType != Camera.PictureSourceType.CAMERA) { var fileOpenPicker = new Windows.Storage.Pickers.FileOpenPicker(); @@ -206,7 +206,7 @@ module.exports = { }, function () { errorCallback("Folder not access."); }); - }) + }); } } @@ -217,7 +217,7 @@ module.exports = { Windows.Storage.FileIO.readBufferAsync(file).done(function (buffer) { var strBase64 = Windows.Security.Cryptography.CryptographicBuffer.encodeToBase64String(buffer); successCallback(strBase64); - }) + }); } } @@ -226,8 +226,8 @@ module.exports = { errorCallback("User didn't choose a file."); } }, function () { - errorCallback("User didn't choose a file.") - }) + errorCallback("User didn't choose a file."); + }); } else { @@ -275,7 +275,7 @@ module.exports = { }, function () { errorCallback("Folder not access."); }); - }) + }); } } else { if (targetHeight > 0 && targetWidth > 0) { @@ -284,15 +284,15 @@ module.exports = { Windows.Storage.FileIO.readBufferAsync(picture).done(function (buffer) { var strBase64 = Windows.Security.Cryptography.CryptographicBuffer.encodeToBase64String(buffer); successCallback(strBase64); - }) + }); } } - } + }; // save to photo album errorCallback var fail = function () { //errorCallback("FileError, code:" + fileError.code); errorCallback("Save fail."); - } + }; if (saveToPhotoAlbum) { Windows.Storage.StorageFile.getFileFromPathAsync(picture.path).then(function (storageFile) { @@ -300,8 +300,8 @@ module.exports = { success(storageFile); }, function () { fail(); - }) - }) + }); + }); //var directory = new DirectoryEntry("Pictures", parentPath); //new FileEntry(picture.name, picture.path).copyTo(directory, null, success, fail); } else { @@ -318,7 +318,7 @@ module.exports = { }, function () { errorCallback("Folder not access."); }); - }) + }); } } else { if (targetHeight > 0 && targetWidth > 0) { @@ -327,7 +327,7 @@ module.exports = { Windows.Storage.FileIO.readBufferAsync(picture).done(function (buffer) { var strBase64 = Windows.Security.Cryptography.CryptographicBuffer.encodeToBase64String(buffer); successCallback(strBase64); - }) + }); } } } @@ -336,7 +336,7 @@ module.exports = { } }, function () { errorCallback("Fail to capture a photo."); - }) + }); } } }; http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/windows8/plugin/windows8/CaptureProxy.js ---------------------------------------------------------------------- diff --git a/lib/windows8/plugin/windows8/CaptureProxy.js b/lib/windows8/plugin/windows8/CaptureProxy.js index dddae68..f93f8cb 100644 --- a/lib/windows8/plugin/windows8/CaptureProxy.js +++ b/lib/windows8/plugin/windows8/CaptureProxy.js @@ -33,7 +33,7 @@ module.exports = { // No UI support. The duration of the audio recording. captureAudio:function(successCallback, errorCallback, options) { - + var cameraCaptureAudioDuration = 1024; options = options[0]; var audioOptions = new CaptureAudioOptions(); @@ -49,7 +49,7 @@ module.exports = { mediaCaptureSettings = null; mediaCaptureSettings = new Windows.Media.Capture.MediaCaptureInitializationSettings(); mediaCaptureSettings.streamingCaptureMode = Windows.Media.Capture.StreamingCaptureMode.audio; - } + }; initCaptureSettings(); var mediaCapture = new Windows.Media.Capture.MediaCapture(); mediaCapture.initializeAsync(mediaCaptureSettings).done(function () { @@ -63,14 +63,14 @@ module.exports = { successCallback(results); }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); - }) - }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); }) - } + }); + }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); }); + }; mediaCapture.startRecordToStorageFileAsync(mediaEncodingProfile, storageFile).then(function () { setTimeout(stopRecord, cameraCaptureAudioDuration * 1000); - }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); }) - }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); }) - }) + }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); }); + }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); }); + }); }, captureImage:function (successCallback, errorCallback, options) { @@ -88,11 +88,11 @@ module.exports = { successCallback(results); }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); - }) + }); }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); }); - }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); }) + }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); }); }, captureVideo:function (successCallback, errorCallback, options) { @@ -116,11 +116,11 @@ module.exports = { successCallback(results); }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); - }) + }); }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); }); - }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); }) + }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_NO_MEDIA_FILES)); }); }, @@ -133,26 +133,26 @@ module.exports = { successCallback(new MediaFileData(null, audioProperties.bitrate, 0, 0, audioProperties.duration / 1000)); }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_INVALID_ARGUMENT)); - }) + }); } else if (mediaTypeFlag === "video") { storageFile.properties.getVideoPropertiesAsync().then(function (videoProperties) { successCallback(new MediaFileData(null, videoProperties.bitrate, videoProperties.height, videoProperties.width, videoProperties.duration / 1000)); }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_INVALID_ARGUMENT)); - }) + }); } else if (mediaTypeFlag === "image") { storageFile.properties.getImagePropertiesAsync().then(function (imageProperties) { successCallback(new MediaFileData(null, 0, imageProperties.height, imageProperties.width, 0)); }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_INVALID_ARGUMENT)); - }) + }); } - else { errorCallback(new CaptureError(CaptureError.CAPTURE_INVALID_ARGUMENT)) } + else { errorCallback(new CaptureError(CaptureError.CAPTURE_INVALID_ARGUMENT)); } }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_INVALID_ARGUMENT)); } - ) + ); } -} +}; http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/windows8/plugin/windows8/MediaFile.js ---------------------------------------------------------------------- diff --git a/lib/windows8/plugin/windows8/MediaFile.js b/lib/windows8/plugin/windows8/MediaFile.js index 30be8da..af0661e 100644 --- a/lib/windows8/plugin/windows8/MediaFile.js +++ b/lib/windows8/plugin/windows8/MediaFile.js @@ -37,7 +37,7 @@ module.exports = { }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_INVALID_ARGUMENT)); } - ) + ); } else if (mediaTypeFlag === "video") { storageFile.properties.getVideoPropertiesAsync().then( function (videoProperties) { @@ -45,7 +45,7 @@ module.exports = { }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_INVALID_ARGUMENT)); } - ) + ); } else if (mediaTypeFlag === "image") { storageFile.properties.getImagePropertiesAsync().then( function (imageProperties) { @@ -53,13 +53,13 @@ module.exports = { }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_INVALID_ARGUMENT)); } - ) + ); } else { - errorCallback(new CaptureError(CaptureError.CAPTURE_INVALID_ARGUMENT)) + errorCallback(new CaptureError(CaptureError.CAPTURE_INVALID_ARGUMENT)); } }, function () { errorCallback(new CaptureError(CaptureError.CAPTURE_INVALID_ARGUMENT)); } - ) + ); } -} +}; http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/windows8/plugin/windows8/MediaProxy.js ---------------------------------------------------------------------- diff --git a/lib/windows8/plugin/windows8/MediaProxy.js b/lib/windows8/plugin/windows8/MediaProxy.js index de2c6d9..8830a93 100644 --- a/lib/windows8/plugin/windows8/MediaProxy.js +++ b/lib/windows8/plugin/windows8/MediaProxy.js @@ -46,7 +46,7 @@ module.exports = { var dur = thisM.node.duration; if (isNaN(dur)) { dur = -1; - }; + } Media.onStatus(id, Media.MEDIA_DURATION, dur); } else { lose("Invalid file type"); @@ -74,7 +74,7 @@ module.exports = { win(); } catch (err) { lose("Failed to stop: "+err); - }; + } }, // Seeks to the position in the audio @@ -86,7 +86,7 @@ module.exports = { win(); } catch (err) { lose("Failed to seek: "+err); - }; + } }, // Pauses the playing audio @@ -147,7 +147,7 @@ module.exports = { default: lose("Invalid file type for record"); break; - }; + } thisM.mediaCaptureMgr.startRecordToStorageFileAsync(encodingProfile, storageFile).done(win, lose); }, lose); }, http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/windows8/plugin/windows8/NotificationProxy.js ---------------------------------------------------------------------- diff --git a/lib/windows8/plugin/windows8/NotificationProxy.js b/lib/windows8/plugin/windows8/NotificationProxy.js index b0186f4..3ef964b 100644 --- a/lib/windows8/plugin/windows8/NotificationProxy.js +++ b/lib/windows8/plugin/windows8/NotificationProxy.js @@ -42,7 +42,7 @@ module.exports = { var btnList = []; function commandHandler (command) { win(btnList[command.label]); - }; + } var md = new Windows.UI.Popups.MessageDialog(message, _title); var button = _buttonLabels.split(','); @@ -50,7 +50,7 @@ module.exports = { for (var i = 0; i<button.length; i++) { btnList[button[i]] = i+1; md.commands.append(new Windows.UI.Popups.UICommand(button[i],commandHandler)); - }; + } md.showAsync(); }, http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/windows8/plugin/windows8/geolocation.js ---------------------------------------------------------------------- diff --git a/lib/windows8/plugin/windows8/geolocation.js b/lib/windows8/plugin/windows8/geolocation.js index 014a38f..ab16087 100644 --- a/lib/windows8/plugin/windows8/geolocation.js +++ b/lib/windows8/plugin/windows8/geolocation.js @@ -95,7 +95,7 @@ module.exports = { // Merges with common } } - ) + ); }, addWatch:function(win, lose, args) { @@ -106,7 +106,7 @@ module.exports = { // Merges with common // timers[] timers[id] = new Windows.Devices.Geolocation.Geolocator().getGeopositionAsync(options.maximumAge, options.timeout).done( new Geolocation().getCurrentPosition(win, lose, options) - ) + ); } // clearWatch is not needed as in common code the timer is deleted }; http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/3b7d74c9/lib/wp7/platform.js ---------------------------------------------------------------------- diff --git a/lib/wp7/platform.js b/lib/wp7/platform.js index 2903c54..281f6fc 100644 --- a/lib/wp7/platform.js +++ b/lib/wp7/platform.js @@ -40,7 +40,7 @@ module.exports = { var backButtonChannel = cordova.addDocumentEventHandler('backbutton'); backButtonChannel.onHasSubscribersChange = function() { exec(null, null, "CoreEvents", "overridebackbutton", [this.numHandlers == 1]); - }); + }; }, objects: { CordovaCommandResult: {