     
     fileprivate func getAnchorPointForPopMenu() -> CGPoint {
         var anchorPoint = CGPoint(x: menuArrowPoint.x/popMenuFrame.size.width, y: 0)
-        if arrowDirection == .Down {
+        if arrowDirection == .down {
             anchorPoint = CGPoint(x: menuArrowPoint.x/popMenuFrame.size.width, y: 1)
         }
         return anchorPoint

        senderRect.origin.y = min(UIScreen.ft_height(), senderRect.origin.y)
        
        if senderRect.origin.y + senderRect.size.height/2 < UIScreen.ft_height()/2 {
            arrowDirection = .Up
        } else {
            arrowDirection = .Down
        }
    }
    

    fileprivate var popMenuOriginX : CGFloat = 0
    fileprivate var popMenuFrame : CGRect = CGRect.zero
    fileprivate var menuArrowPoint : CGPoint = CGPoint.zero
    fileprivate var arrowDirection : FTPopOverMenuArrowDirection = .up
    fileprivate var popMenuHeight : CGFloat {
        return configuration.menuRowHeight * CGFloat(self.menuNameArray.count) + FTDefaultMenuArrowHeight
    }
