I'm trying to use the AUI Datepicker in my plugin. I am following this page in the documentation. Problem is, when I initialize the datepicker with
AJS.$(document).ready(<span>function() {</span>
AJS.$(<span>'#demo-range-always'</span>).datePicker({<span>'overrideBrowserDefault'</span>: <span>true</span>});
});it completely ignores the 'overrideBrowserDefault' option and still displays as false, no matter what I do. This actually prevents me from using other functions like getDate or setDate, which are normally exposed by the interface.
Even in the documentation page, if you go to browser console and try to get the options of the displayed demo datepicker, you get the wrong overrideBrowserDefault value - it is initialized with true, but it returns false.
$('#demo-range-always').datePicker().getOptions()returns
{overrideBrowserDefault: false, firstDay: -1, languageCode: "en", dateFormat: "yy-mm-dd"}while it is clearly initialized with the same code as it shows in the example. I tested it in Firefox and Chrome, both are broken in the same way. Is there something I am missing?