 			)
 
 			for direction in ["w", "s", "e", "n"]
-				if CUI.__ng__
-					CUI.DOM.removeClass(@__pointer, "cui-layer-pointer--"+direction)
-				else
-					CUI.DOM.removeClass(@__pointer, "cui-pointer-placement-"+direction)
+				CUI.DOM.removeClass(@__pointer, get_pointer_class(direction))
 
 		# measure all 4 directions for all pointers
 		dim_pointer = {}


		dim_window = CUI.getViewport()

		if @__pointer
			# reset pointer
			CUI.DOM.setStyle(@__pointer,

			}[placement]

			if @__pointer
				CUI.DOM.addClass(@__pointer, get_pointer_class(pointer_direction))

				dim_pointer[placement] = CUI.DOM.getDimensions(@__pointer)

				CUI.DOM.removeClass(@__pointer, get_pointer_class(pointer_direction))
			else
				dim_pointer[placement] =
					borderBoxWidth: 0
