Problem description
Following TIMOB-17805, Ti.UI.iPad.Popover objects have been refactored and are defined in a different way.
If using a sample code working with 3.4.1.GA where a rightNavButton or a title property is defined in the popover, an exception is thrown as expected, however, in the console log, 3.4.2 is mentioned instead of 3.5.0 as the SDK version where it has been removed.
Steps to reproduce
1. Run the following sample with latest 3.5.X:
var win = Ti.UI.createWindow({backgroundColor: 'white'});
var rightButton = Ti.UI.createButton({title: 'Robin'});
rightButton.addEventListener('click', function(e){
alert("But green's the color of spring.");
});
var popover = Ti.UI.iPad.createPopover({
width: 250,
height: 100,
title:"I'm green",
rightNavButton: rightButton
});
var button = Ti.UI.createButton({title: 'Open Popover!'});
button.addEventListener('click', function(e){
popover.show({ view: button });
});
win.add(button);
win.open();
2. Click on the 'Open Popover' label
Result: Application error is shown (as expected). Console log however displays SDK 3.4.2 instead of 3.5.0:
[ERROR] Support for setting title on the popover directly is removed in 3.4.2
[ERROR] Support for setting rightNavButton on the popover directly is removed in 3.4.2
This was removed in 3.4.2 (as shown in TIMOB-17805) thus that is the proper version to display. The fact that we did not release 3.4.2 does not mean that it's still not the correct version (should we ever release 3.4.2)
Closing ticket as invalid.