1 /*
  2  *  Copyright © 2009 Apple Inc. All rights reserved.
  3  */
  4  
  5 var TKEventTriage = {};
  6 
  7 TKEventTriage.handleEvent = function (event) {
  8   // first call the super class method that we may be overriding otherwise
  9   if (this instanceof TKObject) {
 10     this.callSuper(event);
 11   }
 12   //
 13   var type = event.type;
 14   var methodName = 'handle' + type.charAt(0).toUpperCase() + type.substr(1);
 15   if (TKUtils.objectHasMethod(this, methodName)) {
 16     this[methodName](event);
 17   }
 18 };
 19 
 20 TKUtils.setupDisplayNames(TKEventTriage, 'TKEventTriage');
 21