Issue 2081: 2.0 beta: updateEvent is broken: TypeError: 'undefined' is not a function (evaluating 'mutateEvent(event)')
Status:  Done
Owner: ----
Closed:  Feb 2014
Reported by mdo...@gmail.com, Jan 31, 2014
Calling .fullCalendar('updateEvent', someEvent) causes TypeError: 'undefined' is not a function (evaluating 'mutateEvent(event)'). As a workaround, I currently use removeEvents/renderEvent, which seems to be working fine.

I copied this from the javaScript console, stack trace included:


// take a look at the event object, it is already rendered on the calendar
> document.myEvent

< Object
allDay: false
color: "#d682ff"
durationEditable: true
editable: true
end: e
id: 39
override: null
selected: true
start: e
startEditable: true
textColor: "#000000"
title: "Test Event"
__proto__: Object


// tell calendar to update...
> $('#calendar').fullCalendar('updateEvent', document.myEvent);

< TypeError: 'undefined' is not a function (evaluating 'mutateEvent(event)')
line: 1474
message: "'undefined' is not a function (evaluating 'mutateEvent(event)')"
sourceURL: "http://localhost:8080/rwt-resources/calendar/fullcalendar.js
stack: "updateEvent@http://localhost:8080/rwt-resources/calendar/fullcalendar.js:1474:14↵http://localhost:8080/rwt-resources/calendar/fullcalendar.js:173:36↵each@http://localhost:8080/rwt-resources/calendar/jquery.min.js:4:5365↵each@http://localhost:8080/rwt-resources/calendar/jquery.min.js:4:2017↵fullCalendar@http://localhost:8080/rwt-resources/calendar/fullcalendar.js:170:12↵eval code↵eval@[native code]↵↵↵_evaluateOn↵_evaluateAndWrap↵evaluateOnCallFrame↵selectEvent@http://localhost:8080/rwt-resources/calendar/calendar.js:112:4↵_processCall@http://localhost:8080/rwt-resources/rap-client.js:71122:31↵processOperationArray@http://localhost:8080/rwt-resources/rap-client.js:71007:28↵processMessage@http://localhost:8080/rwt-resources/rap-client.js:70967:33↵_handleSuccess@http://localhost:8080/rwt-resources/rap-client.js:71646:33↵_success@http://localhost:8080/rwt-resources/rap-client.js:36706:48↵_onReadyStateChange@http://localhost:8080/rwt-resources/rap-client.js:36757:26↵wrap@http://localhost:8080/rwt-resources/rap-client.js:5739:30
__proto__: Error
constructor: function TypeError() {
message: ""
name: "TypeError"
toString: function toString() {
__proto__: Error

Feb 3, 2014
Project Member #1 adamrs...@gmail.com
please download the latest beta
http://localhost/arshaw/fullcalendar/download/

this should be fixed. thanks
Labels: Type-Bug
Feb 3, 2014
#2 jonathan...@gmail.com
Awesome!

Thanks!


2014-02-03 <fullcalendar@googlecode.com>:
Feb 3, 2014
Project Member #3 adamrs...@gmail.com
(No comment was entered for this change.)
Status: Done
Feb 6, 2014
#4 ponx...@gmail.com
Awesome, thank you so much! I was having this issue too but V2 beta 2 fixed it!

Thanks Adam, amazing work!! Cheers from México..