You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sg...@apache.org on 2014/12/18 09:02:30 UTC

[3/7] cordova-wp8 git commit: Fix AutoloadPlugins

Fix AutoloadPlugins

Replace TakeWhile with Where to return all plugins for which onload="true".

Fixes https://issues.apache.org/jira/browse/CB-7858.


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

Branch: refs/heads/3.7.x
Commit: 333200a5b2946ae63ba2eae65e36a7ad5a4b1c76
Parents: 2792153
Author: Marko <ma...@gmail.com>
Authored: Thu Nov 20 23:26:20 2014 +0200
Committer: sgrebnov <v-...@microsoft.com>
Committed: Thu Dec 18 10:58:26 2014 +0300

----------------------------------------------------------------------
 template/cordovalib/ConfigHandler.cs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/333200a5/template/cordovalib/ConfigHandler.cs
----------------------------------------------------------------------
diff --git a/template/cordovalib/ConfigHandler.cs b/template/cordovalib/ConfigHandler.cs
index e2575f7..07a7936 100644
--- a/template/cordovalib/ConfigHandler.cs
+++ b/template/cordovalib/ConfigHandler.cs
@@ -186,8 +186,7 @@ namespace WPCordovaClassLib.CordovaLib
         {
             get
             {
-                // TODO:
-                var res = from results in AllowedPlugins.TakeWhile(p => p.Value.isAutoLoad)
+                var res = from results in AllowedPlugins.Where(p => p.Value.isAutoLoad)
                           select results.Value.Name;
 
                 return res.ToArray<string>();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org