whole_func_string: function _watchedEventsUnbindAll(keepRegisteredEvents, context) {
          var watchedEvents = getState('__watchedEvents', context);
          if (watchedEvents) {
              var data;
              for (var name in watchedEvents) {
                  if (watchedEvents.hasOwnProperty(name)) {
                      data = watchedEvents[name];
                      var target = getTarget(data.target, context);
                      if (target) {
                          target.off(data.event, data.callback, data.context);
                      }
                  }
              }
              if (!keepRegisteredEvents) {
                  setState({
                      __watchedEvents: []
                  }, context);
              }
          }
      }
func_code_string: function _watchedEventsUnbindAll(keepRegisteredEvents, context) {
          var watchedEvents = getState('__watchedEvents', context);
          if (watchedEvents) {
              var data;
              for (var name in watchedEvents) {
                  if (watchedEvents.hasOwnProperty(name)) {
                      data = watchedEvents[name];
                      var target = getTarget(data.target, context);
                      if (target) {
                          target.off(data.event, data.callback, data.context);
                      }
                  }
              }
              if (!keepRegisteredEvents) {
                  setState({
                      __watchedEvents: []
                  }, context);
              }
          }
      }
func_documentation_string: unbind all registered events from the model