incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject js commit: renaming getInfo to getDeviceInfo to work with sample app
Date Wed, 18 Jul 2012 23:13:19 GMT
Updated Branches:
  refs/heads/master 114cf5304 -> 2e33015f0


renaming getInfo to getDeviceInfo to work with sample app


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

Branch: refs/heads/master
Commit: 2e33015f0e73540904abc05c4f726c3c9ce6879f
Parents: 114cf53
Author: Anis Kadri <anis.kadri@gmail.com>
Authored: Wed Jul 18 16:13:12 2012 -0700
Committer: Anis Kadri <anis.kadri@gmail.com>
Committed: Wed Jul 18 16:13:12 2012 -0700

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


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/2e33015f/lib/bada/plugin/bada/device.js
----------------------------------------------------------------------
diff --git a/lib/bada/plugin/bada/device.js b/lib/bada/plugin/bada/device.js
index 6cde8e8..3169713 100644
--- a/lib/bada/plugin/bada/device.js
+++ b/lib/bada/plugin/bada/device.js
@@ -14,7 +14,7 @@ function Device() {
     var me = this;
 
     channel.onCordovaReady.subscribeOnce(function() {
-       me.getInfo(function (device) {
+       me.getDeviceInfo(function (device) {
            me.platform = device.platform;
            me.version  = device.version;
            me.name     = device.name;
@@ -31,7 +31,7 @@ function Device() {
 }
 
 
-Device.prototype.getInfo = function(success, fail, args) {
+Device.prototype.getDeviceInfo = function(success, fail, args) {
    var info = deviceapis.devicestatus;
    var properties = ["name", "uuid", "os_name", "os_vendor", "os_version"];
 


Mime
View raw message