vishalduggal/titanium_mobile — comment on commit 364165a8345b968c03477a09cf9081f7b5f67381
File: iphone/Classes/TiDOMNodeListProxy.h line 22
By sptramer:

The traditional way to do this would be to create a new `init` function; having a class function to allocate a new object of that class is generally considered bad form in Objective-C (unless you're making a factory or similar design pattern which requires something like this). In this case, the same signature would be fine, and the initialization would simply be:

````
-(id)initWithArray:(NSArray*)nodes document:(id)document context:(id)context
{
if (self = [super _initWithPageContext:context]) {
....
}
return self;
}
````