In jQuery UI 1.7, I successfully redefined the datepicker._generateHTML function by running a script in the form:
jQuery.datepicker._generateHTML = function(inst) {
...revised code...
};
When I tried to upgrade to version 1.8 using the same approach, I ran into a problem. Version 1.8 added a variable for the dampiker's closing area dpuuid, which is referenced by the new version of "... modified code ...". datepicker._generateHTML now fails with dpuuid is not defined' error.
I'm still young enough that Javascript does not understand all the subtle aspects of the language. So my first question is: "Is it possible to override a function that refers to a variable of a closure scope and still access the original closure area?"
source
share