phonegap/phonegap-plugins — pull request #276 by buddydvd (2011-12-08 23:04:30+00:00)
Title: iOS Fix for IAP: apply()'s "this" argument needs to be set.

In my previous pull request (which was already merged to master), I changed the JavaScript callbacks to use `apply()` and set the "this" argument to the apply() call to `null`. This caused code in `InAppPurchaseManager.prototype.updatedTransactionCallback` to fail because, inside that method, references to `this` become references to `null` instead of the default instance of `InAppPurchaseManager`.

This commit modifies the `apply()` calls to use `plugins.inAppPurchaseManager` as the "this" argument.