Added the calendar instance to the input.data #8

Merged
merged 1 commit into from Apr 7, 2013
Jump to file or symbol
Failed to load files and symbols.
+1 −0
Diff settings

Always

Just for now

View
@@ -38,6 +38,7 @@
this.months = (this.options.months || 'January February March April May June July August September October November December').split(' ')
this.$input = $(el).first()
this.$calendar = $(template).appendTo('body')
+ this.$input.data('calender', this)
this.formatDate = (this.options.formatDate || function(year, month, day) {
return [ month, day, year].join('-')
})