Wizcorp / phonegap-plugin-wizCanvas

WizCanvas allows a developer to create a ultra-performant native canvas component. The view is based on the Ejecta framework and has WebGL support.
MIT License
43 stars 13 forks source link

[Fix] Loading URL would sometimes fail #45

Closed micky2be closed 9 years ago

micky2be commented 9 years ago

Initializing the error object to nil avoid having garbage set in the object (code 0). When no error occur, NSData doesn't override the error object to nil, so it was making the following condition check to fail.

Also separated the different condition check (error, no data) to get better log.

jrouault commented 9 years ago

Good catch! No specific feedbacks here, but we might want to change this to avoid using NSData here especially for remote URL.

micky2be commented 9 years ago

Fixed white space

micky2be commented 9 years ago

@jrouault If good to go, please make a proper release :wink: