Q: TypeError in optimized.js
Hi there,
I am creating an iAd at the moment. The Web Inspector keeps telling me:
TypeError: 'undefined' is not a function (evaluating 'this.viewController.transitionToViewControllerWithID(this.destinationPage)')
in optimized.js:750 which is:
iAd.Class({name:"iAP.TransitionToPageAction",superclass:iAd.ScriptAction,synthes izedProperties:["destinationPage"]});iAP.TransitionToPageAction.prototype.start= function(){if(this.viewController instanceof iAd.ViewController&&this.destinationPage){if(this.destinationPage===iAd.Navigat ionViewProcessor.PREVIOUS_ITEM_ID){var a=iAd.RootViewController.sharedRootViewController.navigationController;if(a){a. popViewControllerAnimated(true)}}else{this.viewController.transitionToViewContro llerWithID(this.destinationPage)}}};iAP.TransitionToPageAction.prototype.summary Text=function(){if(!this.destinationPage){return"None"}else{if(this.destinationP age==iAd.NavigationViewProcessor.PREVIOUS_ITEM_ID){return"Previous Page"}else{return this.destinationPage}}};
Everything else seems fine. A cosmetic thing for me, but it will get rejected by review team. Can someone tell me how to fix / where to look?
Regards,
Martin
iOS 6
Posted on Sep 6, 2013 8:55 AM