You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2013/07/11 23:50:03 UTC

[03/43] git commit: Fix in action-stack for wp8

Fix in action-stack for wp8


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/399678e0
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/399678e0
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/399678e0

Branch: refs/heads/plugman-registry
Commit: 399678e09d9f284bbe4885c96e19a684414e4e67
Parents: 99c731c
Author: Benn Mapes <be...@gmail.com>
Authored: Tue Jul 2 13:51:03 2013 -0700
Committer: Benn Mapes <be...@gmail.com>
Committed: Tue Jul 2 13:51:03 2013 -0700

----------------------------------------------------------------------
 src/util/action-stack.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/399678e0/src/util/action-stack.js
----------------------------------------------------------------------
diff --git a/src/util/action-stack.js b/src/util/action-stack.js
index e4a9460..4643e8d 100644
--- a/src/util/action-stack.js
+++ b/src/util/action-stack.js
@@ -1,5 +1,6 @@
 var ios = require('../platforms/ios'),
     wp7 = require('../platforms/wp7'),
+    wp8 = require('../platforms/wp8'),
     fs = require('fs');
 
 function ActionStack() {
@@ -31,12 +32,15 @@ ActionStack.prototype = {
         }
         if (platform == 'wp7') {
             project_files = wp7.parseWP7ProjectFile(project_dir);
+        }
+        if (platform == 'wp8') {
+            project_files = wp8.parseWP8ProjectFile(project_dir);
         } 
         while(this.stack.length) {
             var action = this.stack.shift();
             var handler = action.handler.run;
             var action_params = action.handler.params;
-            if (platform == 'ios' || platform == 'wp7') action_params.push(project_files);
+            if (platform == 'ios' || platform == 'wp7' || platform == 'wp8') action_params.push(project_files);
             try {
                 handler.apply(null, action_params);
             } catch(e) {