jquery/jquery-ui — pull request #602 by jasvir (2012-02-24 22:00:44+00:00)
Title: Rename catch variable to avoid masking variable with the same name in the enclosing scope

datepicker reuses a variable declared in an enclosing function as a catch block variable. Some browsers (specifically IE8) does not create a new scope for the catch block and as a result linters like JSLint and Caja complain about this reuse. In this case, the variable name is not a good name for the exception either.

This change renames the "event" catch variable to "err" to avoid the problem.