Update JS snapshot to version 3.8.2 (via coho)
diff --git a/template/www/cordova.js b/template/www/cordova.js
index ccb98ee..5fbee21 100644
--- a/template/www/cordova.js
+++ b/template/www/cordova.js
@@ -1,5 +1,5 @@
// Platform: windows
-// b4af1c5ec477dd98cd651932ea6df6d46705d7f9
+// b0463746dd842818c1f08560e998ec847460596c
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
@@ -19,7 +19,7 @@
under the License.
*/
;(function() {
-var PLATFORM_VERSION_BUILD_LABEL = '3.8.1';
+var PLATFORM_VERSION_BUILD_LABEL = '3.8.2';
// file: src/scripts/require.js
/*jshint -W079 */
@@ -101,12 +101,15 @@
// file: src/cordova.js
define("cordova", function(require, exports, module) {
-if ("cordova" in window) { throw new Error("cordova already defined"); };
+if(window.cordova){
+ throw new Error("cordova already defined");
+}
var channel = require('cordova/channel');
var platform = require('cordova/platform');
+
/**
* Intercept calls to addEventListener + removeEventListener and handle deviceready,
* resume, and pause events.
@@ -858,7 +861,7 @@
onSuccess = function (result, callbackOptions) {
callbackOptions = callbackOptions || {};
var callbackStatus;
- if (callbackOptions.status != null) {
+ if (callbackOptions.status !== null) {
callbackStatus = callbackOptions.status;
}
else {
@@ -874,7 +877,7 @@
onError = function (err, callbackOptions) {
callbackOptions = callbackOptions || {};
var callbackStatus;
- if (callbackOptions.status != null) {
+ if (callbackOptions.status !== null) {
callbackStatus = callbackOptions.status;
}
else {