title: Cannot read property '_calendar' of undefined in moment.js
body: <p>I am getting an error when someone is trying to submit an event on their calendar to be saved to the server. Any help is appreciated, thank you for your time! Please let me know if you guys are needing anymore specific information.</p>
  
  <p><strong>UPDATE</strong>: It seems that when I switched from pushing to an array myself when a event is added to the calendar via the drop feature from fullcalendar, then it works ok but I had issues with that code so I used clientevents from fullcalendar instead and now I am getting this error. Any ideas on what a fix might be for this?</p>
  
  <p>I am getting the following error:</p>
  
  <blockquote>
    <p>Uncaught TypeError: Cannot read property '_calendar' of undefined   at D (moment.min.js:6)   at e (jquery-1.11.3.min.js:5)   at Vb
    (jquery-1.11.3.min.js:5)   at Vb (jquery-1.11.3.min.js:5)   at Vb
    (jquery-1.11.3.min.js:5)   at Function.m.param
    (jquery-1.11.3.min.js:5)   at Function.ajax (jquery-1.11.3.min.js:5)<br>
    at Object. (calendar:514)   at Function.each
    (jquery-1.11.3.min.js:2)   at Object.success (calendar:500)</p>
  </blockquote>
  
  <p>companyCalendar.blade.php</p>
  
  <pre><code>var emailContainer = {};
                      emailContainer.email = email;
                      console.log("AJAX call here to submit dropped events as guest.");
                      $.ajax({
                          type: "POST",
                          url: '/partialAccountCheck',
                          data: emailContainer,
                          success: function (data) {
                              console.log('success, proceed with adding events to the company calendar');
                              $.each(newEvents, function (i, event) {
                                  if (event.title !== 'undefined' &amp;&amp; event.title !== null &amp;&amp; event.title !== undefined) {
                                      console.log(JSON.stringify(event));
                                      event.start = moment(event.start).toDate();
                                      event.end = moment(event.end).toDate();
                                      event.start = formatDate(event.start) + ' ' + event.start.getHours() + ':' + event.start.getMinutes() + ':00';
                                      event.end = formatDate(event.end) + ' ' + event.end.getHours() + ':' + event.end.getMinutes() + ':00';
                                      console.log('event start is: ' + event.start);
                                      console.log('event end is: ' + event.end);
                                      event.identifier = &lt;?php echo json_encode($companyIdentifier) ?&gt;;
                                      event.email = email;
                                      event.services = event.title;
                                      event.startAppointmentTime = event.start;
                                      event.endAppointmentTime = event.end;
                                      console.log("AJAX call here adding dropped appointments as guest.");
                                      $.ajax({
                                          type: "POST",
                                          url: 'submitCalendarEvent',
                                          data: event,
                                          success: function (data) {
                                              console.log('success');
                                          },
                                          complete: function (data) {
                                              console.log(data);
                                          }
                                      });
                                  } else {
                                      console.log('exclude from submission');
                                  }
                              });
                          },
                          complete: function (data) {
                              console.log(data);
                          }
                      });
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/BkMK5.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/BkMK5.jpg" alt="Stack Trace"></a></p>