cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject git commit: oops, wp7 still needed some of those using's
Date Fri, 17 Jan 2014 00:27:58 GMT
Updated Branches:
  refs/heads/master c36ee3dc8 -> 2386d7ae1


oops, wp7 still needed some of those using's


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/2386d7ae
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/2386d7ae
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/2386d7ae

Branch: refs/heads/master
Commit: 2386d7ae1014d16d2affa98ac4a5927268dddde5
Parents: c36ee3d
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Thu Jan 16 16:27:32 2014 -0800
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Thu Jan 16 16:27:32 2014 -0800

----------------------------------------------------------------------
 wp7/template/cordovalib/CordovaView.xaml.cs | 26 +++++++++++++-----------
 1 file changed, 14 insertions(+), 12 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/2386d7ae/wp7/template/cordovalib/CordovaView.xaml.cs
----------------------------------------------------------------------
diff --git a/wp7/template/cordovalib/CordovaView.xaml.cs b/wp7/template/cordovalib/CordovaView.xaml.cs
index eb84d06..e6688e1 100644
--- a/wp7/template/cordovalib/CordovaView.xaml.cs
+++ b/wp7/template/cordovalib/CordovaView.xaml.cs
@@ -1,15 +1,15 @@
 /*
-	Licensed 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
+    Licensed 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
+    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.
+    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.
 */
 
 using Microsoft.Phone.Controls;
@@ -23,6 +23,8 @@ using System.IO.IsolatedStorage;
 using System.Linq;
 using System.Windows;
 using System.Windows.Controls;
+using System.Windows.Resources;
+using System.Xml.Linq;
 using WPCordovaClassLib.Cordova;
 using WPCordovaClassLib.Cordova.JSON;
 using WPCordovaClassLib.CordovaLib;
@@ -395,7 +397,7 @@ namespace WPCordovaClassLib
             {
                 CordovaBrowser.InvokeScript("execScript", new string[] { nativeReady });
             }
-            catch (Exception ex)
+            catch (Exception)
             {
                 Debug.WriteLine("Error calling js to fire nativeReady event. Did you include
cordova.js in your html script tag?");
             }
@@ -478,10 +480,10 @@ namespace WPCordovaClassLib
         {
             try
             {
-                Uri newLoc = new Uri(url,UriKind.RelativeOrAbsolute);
+                Uri newLoc = new Uri(url, UriKind.RelativeOrAbsolute);
                 CordovaBrowser.Navigate(newLoc);
             }
-            catch(Exception)
+            catch (Exception)
             {
 
             }


Mime
View raw message