 }
 
 /**
-A special version of a snackbar that persists for maxCount page loads. Defaults to waiting for 2 loads (i.e. will persist over one page load, which is useful for things like saving passwords.
-*/
+ * A special version of a snackbar that persists for maxCount page loads.
+ * Defaults to waiting for 2 loads (i.e. will persist over one page load,
+ * which is useful for things like saving passwords.
+ */
 class CountdownSnackBar: SnackBar {
     private var maxCount: Int? = nil
     private var count = 0

    }

    /**
    Called to check if the snackbar should be removed or not. By default, Snackbars persist forever. Override this class or use a class like CountdownSnackbar if you want things expire
    :returns: true if the snackbar should be kept alive
    */
    func shouldPersist(browser: Browser) -> Bool {
        return true
    }

}

/**
 * A specialized version of UIButton for use in SnackBars. These are displayed evenly
 * spaced in the bottom of the bar. The main convenience of these is that you can pass
 * in a callback in the constructor (although these also style themselves appropriately).
 *
 *``SnackButton(title: "OK", { _ in println("OK") })``
 */
class SnackButton : UIButton {
    let callback: (bar: SnackBar) -> Void
    private var bar: SnackBar!

    /**
     * An image to show as the background when a button is pressed. This is currently a 1x1 pixel blue color
     */
    lazy var highlightImg: UIImage = {
        let size = CGSize(width: 1, height: 1)
        return UIImage.createWithColor(size, color: AppConstants.HighlightColor)
