incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [32/40] git commit: case error fix
Date Fri, 06 Apr 2012 01:20:43 GMT
case error fix


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

Branch: refs/heads/master
Commit: 8afd9c1d3089f0db0caba84f52b36619cbd3ce52
Parents: c72e366
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Wed Mar 28 02:08:56 2012 -0700
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed Mar 28 02:08:56 2012 -0700

----------------------------------------------------------------------
 lib/plugin/wp7/cordovaCommandResult.js |   15 +++++++++------
 1 files changed, 9 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/8afd9c1d/lib/plugin/wp7/cordovaCommandResult.js
----------------------------------------------------------------------
diff --git a/lib/plugin/wp7/cordovaCommandResult.js b/lib/plugin/wp7/cordovaCommandResult.js
index 8e7c906..e58d2ab 100644
--- a/lib/plugin/wp7/cordovaCommandResult.js
+++ b/lib/plugin/wp7/cordovaCommandResult.js
@@ -2,9 +2,10 @@
 
 var cordova = require('cordova');
 
-module.exports = {
+alert("stopMeNow!");
+//module.exports = {
 	// singular WP7 callback function attached to window, status is used to determin if it is
a success or error
-	CordovaCommandResult:function(status,callbackId,args,cast) {
+var CordovaCommandResult = function(status,callbackId,args,cast) {
 		if(status === "backbutton") {
 			cordova.fireEvent(document,"backbutton");
 			return "true";
@@ -22,12 +23,14 @@ module.exports = {
 		var safeStatus = parseInt(status, 10);
 		if(safeStatus === cordova.callbackStatus.NO_RESULT ||
 		   safeStatus === cordova.callbackStatus.OK) {
-			cordova.CallbackSuccess(callbackId,args,cast);
+			cordova.callbackSuccess(callbackId,args,cast);
 		}
 		else
 		{
-			cordova.CallbackError(callbackId,args,cast);
+			cordova.callbackError(callbackId,args,cast);
 		}
-	}
+	};
 
-}
\ No newline at end of file
+//}
+
+module.exports = CordovaCommandResult;
\ No newline at end of file


Mime
View raw message