You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Bright (JIRA)" <ji...@apache.org> on 2012/06/16 18:39:43 UTC

[jira] [Created] (CB-928) __init method are called two times when CDVViewController init.

Bright created CB-928:
-------------------------

             Summary: __init method are called two times when CDVViewController init.
                 Key: CB-928
                 URL: https://issues.apache.org/jira/browse/CB-928
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 1.8.1
            Reporter: Bright
            Assignee: Shazron Abdullah


The problem is that __init method are called two times when CDVViewController is inited, which caused the log are printed two times in console in printMultitaskingInfo method.

- (id) initWithNibName:(NSString*)nibNameOrNil bundle:(NSBundle*)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
      return [self __init]; // Can this [self __init] be removed?

}

- (id) init
{
    self = [super init];
    return [self __init];
}


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CB-928) __init method are called two times when CDVViewController init.

Posted by "Shazron Abdullah (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CB-928?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shazron Abdullah resolved CB-928.
---------------------------------

       Resolution: Duplicate
    Fix Version/s: 1.9.0

Dupe of CB-915 - workaround available in that issue as well.
                
> __init method are called two times when CDVViewController init.
> ---------------------------------------------------------------
>
>                 Key: CB-928
>                 URL: https://issues.apache.org/jira/browse/CB-928
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 1.8.1
>            Reporter: Bright
>            Assignee: Shazron Abdullah
>             Fix For: 1.9.0
>
>
> The problem is that __init method are called two times when CDVViewController is inited, which caused the log are printed two times in console in printMultitaskingInfo method.
> - (id) initWithNibName:(NSString*)nibNameOrNil bundle:(NSBundle*)nibBundleOrNil
> {
>     self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
>       return [self __init]; // Can this [self __init] be removed?
> }
> - (id) init
> {
>     self = [super init];
>     return [self __init];
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira