lib/melonJS-0.9.3.js
/**
		 * propagate mouse event to registed object 
		 * @private
		 */
propagate mouse event to registed object
@private
propagate mouse event to registed object @private
function dispatchMouseEvent(e) {
			var handlers = obj.mouse.handlers[e.type];
			if (handlers) {
				for(var t=0, l=obj.touches.length; t<l; t++) {
					for (var i = handlers.length, handler; i--, handler = handlers[i];) {
						if ((handler.rect === null) || handler.rect.containsPoint({x:obj.touches[t].x,y:obj.touches[t].y})) {
							if (handler.cb(e) === false) {
								break;
							}
						}
					}
				} 
			}
		}
function dispatchMouseEvent ( e ) { var handlers = obj . mouse . handlers [ e . type ] ; if ( handlers ) { for ( var t = 0 , l = obj . touches . length ; t < l ; t ++ ) { for ( var i = handlers . length , handler ; i -- , handler = handlers [ i ] ; ) { if ( ( handler . rect === null ) || handler . rect . containsPoint ( { x : obj . touches [ t ] . x , y : obj . touches [ t ] . y } ) ) { if ( handler . cb ( e ) === false ) { break ; } } } } } }
propagate mouse event to registed object
 @private
propagate mouse event to registed object @private
// call the defined handler // stop propagating the event if return false 