cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject mac commit: [CB-4277] onload (boolean) attribute of config.xml param tag is ignored
Date Tue, 16 Jul 2013 23:11:08 GMT
Updated Branches:
  refs/heads/3.0.x 7506868fe -> 71a0a387a


[CB-4277] onload (boolean) attribute of config.xml param tag is ignored


Project: http://git-wip-us.apache.org/repos/asf/cordova-osx/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-osx/commit/71a0a387
Tree: http://git-wip-us.apache.org/repos/asf/cordova-osx/tree/71a0a387
Diff: http://git-wip-us.apache.org/repos/asf/cordova-osx/diff/71a0a387

Branch: refs/heads/3.0.x
Commit: 71a0a387abb264a24ff1c6d0d144556a5fbe3d9a
Parents: 7506868
Author: Shazron Abdullah <shazron@apache.org>
Authored: Tue Jul 16 16:10:41 2013 -0700
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Tue Jul 16 16:11:01 2013 -0700

----------------------------------------------------------------------
 .../CordovaFramework/Classes/Commands/CDVConfigParser.m           | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-osx/blob/71a0a387/CordovaFramework/CordovaFramework/Classes/Commands/CDVConfigParser.m
----------------------------------------------------------------------
diff --git a/CordovaFramework/CordovaFramework/Classes/Commands/CDVConfigParser.m b/CordovaFramework/CordovaFramework/Classes/Commands/CDVConfigParser.m
index 3cabb8c..5d32753 100644
--- a/CordovaFramework/CordovaFramework/Classes/Commands/CDVConfigParser.m
+++ b/CordovaFramework/CordovaFramework/Classes/Commands/CDVConfigParser.m
@@ -79,7 +79,8 @@
         if ([paramName isEqualToString:@"ios-package"]) {
             pluginsDict[featureName] = value;
         }
-        if ([paramName isEqualToString:@"onload"] && [@"true" isEqualToString : value])
{
+        NSString* onload = [attributeDict[@"onload"] lowercaseString];
+        if ([@"true" isEqualToString : onload]) {
             [self.startupPluginNames addObject:featureName];
         }
     } else if ([elementName isEqualToString:@"access"]) {


Mime
View raw message