You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/04/10 00:40:29 UTC
[11/34] wp7 commit: minor cleanup
minor cleanup
Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/commit/96d9fb1d
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/tree/96d9fb1d
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/diff/96d9fb1d
Branch: refs/heads/master
Commit: 96d9fb1d3e5b705f93d30f12a57e2fcc6c4cf71d
Parents: 98d1e3b
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Mon Apr 9 15:13:32 2012 -0700
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Mon Apr 9 15:13:32 2012 -0700
----------------------------------------------------------------------
framework/Cordova/Commands/Compass.cs | 7 -------
framework/Cordova/NativeExecution.cs | 2 +-
2 files changed, 1 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/96d9fb1d/framework/Cordova/Commands/Compass.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/Commands/Compass.cs b/framework/Cordova/Commands/Compass.cs
index f8d8aee..b4058c1 100644
--- a/framework/Cordova/Commands/Compass.cs
+++ b/framework/Cordova/Commands/Compass.cs
@@ -173,12 +173,6 @@ namespace WP7CordovaClassLib.Cordova.Commands
this.SetStatus(Starting);
}
- //if (status == ErrorFailedToStart)
- //{
- // DispatchCommandResult(new PluginResult(PluginResult.Status.IO_EXCEPTION, ErrorFailedToStart));
- // return;
- //}
-
long timeout = 2000;
while ((currentStatus == Starting) && (timeout > 0))
{
@@ -200,7 +194,6 @@ namespace WP7CordovaClassLib.Cordova.Commands
{
compass.Stop();
}
- //DispatchCommandResult(new PluginResult(PluginResult.Status.OK, GetHeadingFormatted(compass.CurrentValue)));
}
}
catch (UnauthorizedAccessException)
http://git-wip-us.apache.org/repos/asf/incubator-cordova-wp7/blob/96d9fb1d/framework/Cordova/NativeExecution.cs
----------------------------------------------------------------------
diff --git a/framework/Cordova/NativeExecution.cs b/framework/Cordova/NativeExecution.cs
index ea8a181..6bc52a5 100644
--- a/framework/Cordova/NativeExecution.cs
+++ b/framework/Cordova/NativeExecution.cs
@@ -191,7 +191,7 @@ namespace WP7CordovaClassLib.Cordova
{
try
{
- Debug.WriteLine("InvokingScript::" + script.ScriptName + " with args ::" + script.Args[0] + ", " + script.Args[1] + ", " + script.Args[2]);
+ //Debug.WriteLine("InvokingScript::" + script.ScriptName + " with args ::" + script.Args[0] + ", " + script.Args[1] + ", " + script.Args[2]);
this.webBrowser.InvokeScript(script.ScriptName, script.Args);
}
catch (Exception ex)