lucianocosta / jquery.mtz.monthpicker

Monthpicker, the missing JQuery widget.
http://lucianocosta.com.br/jquery.mtz.monthpicker
96 stars 57 forks source link

error in line 87 when use jquery version 1.6 #59

Open Qiuzhuang opened 10 years ago

Qiuzhuang commented 10 years ago

Hi,

When using this plugin with jquery 1.6, I got the error of 'Uncaught TypeError: undefined is not a function ' in line 87 in chrome:

                if (settings.openOnFocus === true) {
                    $this.on('focus', function () {
                        $this.monthpicker('show');
                    });
                }

Can somebody provide the fix please?

Thanks very much, Qiuzhuang

Qiuzhuang commented 10 years ago

FYI, if I use jquery version 1.7.2 or above, it works well. So it should be due to jquery API's in compatibility?