AppGyver/phonegap-ua-push — pull request #1 by pentateu (2014-06-24 07:47:52+00:00)
Title: Checking in the dealloc if the delegate is the current webview/plugin be...

...fore setting the delegate to nil.

This fixes the issue when a webview is deallocated and the plugin instance is also deallocated and the pushNotificationDelegate of the [UAPush shared] singleton instance was set to nil.

Now only set it to nil is the plugin being deallocated is the on that originally set the pushNotificationDelegate property.