 		if Ext.getVersion( 'touch' )?
 			Ext.define( 'Deft.Component',
 				override: 'Ext.Component'
-				
+
 				setParent: ( newParent ) ->
 					oldParent = @getParent()
-					
+
 					result = @callParent( arguments )
-					
+
 					if oldParent is null and newParent isnt null
 						@fireEvent( 'added', @, newParent )
 					else if oldParent isnt null and newParent isnt null

				Deft.event.LiveEventBus.register( component )
				return
		)
		
		Ext.Function.interceptAfter(
			Ext.ComponentManager,
			'unregister',

						@fireEvent( 'added', @, newParent )
					else if oldParent isnt null and newParent is null
						@fireEvent( 'removed', @, oldParent )

					return result

				isDescendantOf: ( container ) ->
					ancestor = @getParent()
					while ancestor?
