     // MARK: Methods
     //
     // -----------------------------------------------------------------------------------------------------------------------
-    
+	
+	open override func awakeFromNib() {
+		super.awakeFromNib()
+	}
+	
     // -----------------------------------------------------------
     //  UIButton overrides
     // -----------------------------------------------------------

        {
            if (self.isHighlighted)
            {
                self.backgroundColor = _highlightedBackgroundColor
                self.layer.borderColor = _highlightedBorderColor.cgColor
                self.imageView?.tintColor = self.titleColor(for: .highlighted)
            }
            else if (self.isSelected)
            {
                self.backgroundColor = _selectedBackgroundColor
                self.layer.borderColor = _selectedBorderColor.cgColor
                self.imageView?.tintColor = self.titleColor(for: .selected)
            }
            else
            {
                self.backgroundColor = _normalBackgroundColor
                self.layer.borderColor = _normalBorderColor.cgColor
                self.imageView?.tintColor = self.titleColor(for: UIControlState())
            }
        }
        else
        {
            self.backgroundColor = self._disabledBackgroundColor
            self.layer.borderColor = self._disabledBorderColor.cgColor
            self.imageView?.tintColor = self.titleColor(for: .disabled)
        }
    }


open class ExtendedButton: UIButton {
    private var _normalBackgroundColor:UIColor = UIColor.black
    private var _highlightedBackgroundColor:UIColor?
    private var _selectedBackgroundColor:UIColor?
    private var _disabledBackgroundColor:UIColor?
    
    private var _normalBorderColor:UIColor = UIColor.clear
    private var _highlightedBorderColor:UIColor?
    private var _selectedBorderColor:UIColor?
    private var _disabledBorderColor:UIColor?
    
    
    
