 
 
   $scope.isNotClassEvent = (event) ->
-    if event.isClassEvent
+    if typeof event == Parse.Object.extend("Invite") or event.isClassEvent
       return false
     return true
 

    ###
    Delete User's events from parse
    ###
    console.log('you just tried to delete an event!')
    console.log(event)

    ###
    get current user

  indEvents = currUser.relation('individualEvents') #go get the current user's relation
  masterIndEventsArray = [] #declare the master array for all of the users courses

  # Add individual events to the calendar
  indEventsQuery = indEvents.query()
  indEventsQuery.find
    success: (ieResults) ->
