Skip to content

Commit

Permalink
Updated cordova.js to 2.8.0 final
Browse files Browse the repository at this point in the history
  • Loading branch information
shazron committed Jun 6, 2013
1 parent 462eba0 commit f025cc0
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions CordovaFramework/cordova.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Platform: osx
// 2.8.0rc1-0-g22bc4d8
// 2.8.0-0-g6208c95
/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
Expand All @@ -19,7 +19,7 @@
under the License.
*/
;(function() {
var CORDOVA_JS_BUILD_LABEL = '2.8.0rc1-0-g22bc4d8';
var CORDOVA_JS_BUILD_LABEL = '2.8.0-0-g6208c95';
// file: lib/scripts/require.js

var require,
Expand Down Expand Up @@ -2251,11 +2251,7 @@ function initRead(reader, file) {
reader._error = null;
reader._readyState = FileReader.LOADING;

if (typeof file == 'string') {
// Deprecated in Cordova 2.4.
console.warn('Using a string argument with FileReader.readAs functions is deprecated.');
reader._fileName = file;
} else if (typeof file.fullPath == 'string') {
if (typeof file.fullPath == 'string') {
reader._fileName = file.fullPath;
} else {
reader._fileName = '';
Expand Down Expand Up @@ -4370,7 +4366,6 @@ function Device() {
this.available = false;
this.platform = null;
this.version = null;
this.name = null;
this.uuid = null;
this.cordova = null;
this.model = null;
Expand All @@ -4386,7 +4381,6 @@ function Device() {
me.available = true;
me.platform = info.platform;
me.version = info.version;
me.name = info.name;
me.uuid = info.uuid;
me.cordova = buildLabel;
me.model = info.model;
Expand Down Expand Up @@ -5962,6 +5956,11 @@ window.cordova = require('cordova');
// file: lib/scripts/bootstrap.js

(function (context) {
if (context._cordovaJsLoaded) {
throw new Error('cordova.js included multiple times.');
}
context._cordovaJsLoaded = true;

var channel = require('cordova/channel');
var platformInitChannelsArray = [channel.onNativeReady, channel.onPluginsReady];

Expand Down

0 comments on commit f025cc0

Please sign in to comment.