Skip to content

Commit

Permalink
minor code style refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrebnov committed Apr 20, 2012
1 parent 22d9716 commit 74262cd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cordova/phoneTheme.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
Cordova.addConstructor(function () {

navigator.plugins.phoneTheme =
{
navigator.plugins.phoneTheme = {
get: function (successCallback, errorCallback, options) {
if (successCallback && (typeof successCallback !== "function")) {
console.log("phoneTheme Error: successCallback is not a function");
Expand All @@ -12,6 +11,7 @@
console.log("phoneTheme Error: errorCallback is not a function");
return;
}

Cordova.exec(successCallback, errorCallback, "PhoneTheme", "get", options);
}
}
Expand Down
4 changes: 4 additions & 0 deletions samples/WindowsPhone/ThemeSwitchDemo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/Bin/
/obj/
/*.suo
/*.csproj.user
2 changes: 2 additions & 0 deletions tests/basic/gallery/native/FormsAll/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
/Bin/
/obj/
/*.suo
/*.csproj.user

0 comments on commit 74262cd

Please sign in to comment.