angular-ui / ui-calendar

A complete AngularJS directive for the Arshaw FullCalendar.
http://angular-ui.github.io/ui-calendar/
MIT License
1.49k stars 729 forks source link

fullcalendar('getDate') returning element instead of moment object. #318

Open knvpk opened 9 years ago

knvpk commented 9 years ago

Im using angular ui calendar 1.0.0, As mentioned in title, im getting the jquery element object rather than moment object.

cokeh commented 8 years ago

did you ever figure out why moment object was not returning?

knvpk commented 8 years ago

No, its still Mystery, i changed my code.

cokeh commented 8 years ago

what did you use instead?

cokeh commented 8 years ago

My issue: my code works on local machine, but once i move it to the server it return an element instead of the momentjs object.

super weird.

cokeh commented 8 years ago

figured it out. calendar was spelled "calender" lol.

My error:

var calend = $("#calender").fullCalendar("getDate");