incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [2/3] js commit: seeing if I can commit this modified file, jake build modified it ...
Date Thu, 18 Oct 2012 22:23:41 GMT
seeing if I can commit this modified file, jake build modified it ...


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/28f1e886
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/28f1e886
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/28f1e886

Branch: refs/heads/master
Commit: 28f1e886f8885385410d8e0e2b8afdfea6bf1305
Parents: 6a642e6
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Thu Oct 18 15:10:54 2012 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Thu Oct 18 15:10:54 2012 -0700

----------------------------------------------------------------------
 lib/bada/plugin/bada/device.js |  214 +++++++++++++++++-----------------
 1 files changed, 107 insertions(+), 107 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/28f1e886/lib/bada/plugin/bada/device.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/bada/device.js b/lib/bada/plugin/bada/device.js
index b9b0973..456c7b7 100644
--- a/lib/bada/plugin/bada/device.js
+++ b/lib/bada/plugin/bada/device.js
@@ -1,107 +1,107 @@
-/*
- *
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- *
-*/
-
-var channel = require('cordova/channel'),
-    utils = require('cordova/utils');
-
-// Tell cordova channel to wait on the CordovaInfoReady event
-channel.waitForInitialization('onCordovaInfoReady');
-
-function Device() {
-    this.platform = null;
-    this.version = null;
-    this.name = null;
-    this.uuid = null;
-    this.cordova = null;
-
-    var me = this;
-
-    channel.onCordovaReady.subscribe(function() {
-       me.getDeviceInfo(function (device) {
-           me.platform = device.platform;
-           me.version  = device.version;
-           me.name     = device.name;
-           me.uuid     = device.uuid;
-           me.cordova  = device.cordova;
-
-           channel.onCordovaInfoReady.fire();
-       },
-       function (e) {
-           me.available = false;
-           utils.alert("error initializing cordova: " + e);
-       });
-    });
-}
-
-
-Device.prototype.getDeviceInfo = function(success, fail, args) {
-   var info = deviceapis.devicestatus;
-   var properties = ["name", "uuid", "os_name", "os_vendor", "os_version"];
-
-   var me = this;
-
-   var name = null,
-       platform = null,
-       uuid = null,
-       os_name = null,
-       os_version = null,
-       os_vendor = null;
-
-   var checkProperties = function() {
-       properties.pop();
-       if(properties.length === 0) {
-           me.name = name;
-           me.platform = os_vendor + " " + os_name;
-           me.version = os_version;
-           me.uuid = uuid;
-           me.cordova = "2.2.0rc1";
-           success(me);
-       }
-   };
-
-   info.getPropertyValue(function(value) {
-           //console.log("Device IMEI: "+value);
-           uuid = value;
-           checkProperties();
-           }, fail, {aspect: "Device", property: "imei"});
-   info.getPropertyValue(function(value) {
-           //console.log("Device name: "+value);
-           name = value;
-           checkProperties();
-           }, fail, {aspect: "Device", property: "version"});
-   info.getPropertyValue(function(value) {
-           //console.log("OperatingSystem name: "+value);
-           os_name = value;
-           checkProperties();
-           }, fail, {aspect: "OperatingSystem", property: "name"});
-   info.getPropertyValue(function(value) {
-           //console.log("OperatingSystem version: "+value);
-           os_version = value;
-           checkProperties();
-           }, fail, {aspect: "OperatingSystem", property: "version"});
-   info.getPropertyValue(function(value) {
-           //console.log("OperatingSystem vendor: "+value);
-           os_vendor = value;
-           checkProperties();
-           }, fail, {aspect: "OperatingSystem", property: "vendor"});
-};
-
-module.exports = new Device();
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+var channel = require('cordova/channel'),
+    utils = require('cordova/utils');
+
+// Tell cordova channel to wait on the CordovaInfoReady event
+channel.waitForInitialization('onCordovaInfoReady');
+
+function Device() {
+    this.platform = null;
+    this.version = null;
+    this.name = null;
+    this.uuid = null;
+    this.cordova = null;
+
+    var me = this;
+
+    channel.onCordovaReady.subscribe(function() {
+       me.getDeviceInfo(function (device) {
+           me.platform = device.platform;
+           me.version  = device.version;
+           me.name     = device.name;
+           me.uuid     = device.uuid;
+           me.cordova  = device.cordova;
+
+           channel.onCordovaInfoReady.fire();
+       },
+       function (e) {
+           me.available = false;
+           utils.alert("error initializing cordova: " + e);
+       });
+    });
+}
+
+
+Device.prototype.getDeviceInfo = function(success, fail, args) {
+   var info = deviceapis.devicestatus;
+   var properties = ["name", "uuid", "os_name", "os_vendor", "os_version"];
+
+   var me = this;
+
+   var name = null,
+       platform = null,
+       uuid = null,
+       os_name = null,
+       os_version = null,
+       os_vendor = null;
+
+   var checkProperties = function() {
+       properties.pop();
+       if(properties.length === 0) {
+           me.name = name;
+           me.platform = os_vendor + " " + os_name;
+           me.version = os_version;
+           me.uuid = uuid;
+           me.cordova = "2.2.0rc1
";
+           success(me);
+       }
+   };
+
+   info.getPropertyValue(function(value) {
+           //console.log("Device IMEI: "+value);
+           uuid = value;
+           checkProperties();
+           }, fail, {aspect: "Device", property: "imei"});
+   info.getPropertyValue(function(value) {
+           //console.log("Device name: "+value);
+           name = value;
+           checkProperties();
+           }, fail, {aspect: "Device", property: "version"});
+   info.getPropertyValue(function(value) {
+           //console.log("OperatingSystem name: "+value);
+           os_name = value;
+           checkProperties();
+           }, fail, {aspect: "OperatingSystem", property: "name"});
+   info.getPropertyValue(function(value) {
+           //console.log("OperatingSystem version: "+value);
+           os_version = value;
+           checkProperties();
+           }, fail, {aspect: "OperatingSystem", property: "version"});
+   info.getPropertyValue(function(value) {
+           //console.log("OperatingSystem vendor: "+value);
+           os_vendor = value;
+           checkProperties();
+           }, fail, {aspect: "OperatingSystem", property: "vendor"});
+};
+
+module.exports = new Device();


Mime
View raw message