public function bindPopup($popup, $options = null)
    {
        $this->popup        = $popup;
        $this->popupOptions = $options;

        if (!empty($options)) {
            return $this->addMethod('binPopup', array($popup, $options));
        }

        return $this->addMethod('bindPopup', array($popup));
    }
public function bindPopup($popup, $options = null)
    {
        $this->popup        = $popup;
        $this->popupOptions = $options;

        if (!empty($options)) {
            return $this->addMethod('binPopup', array($popup, $options));
        }

        return $this->addMethod('bindPopup', array($popup));
    }
public function bindPopup ( $ popup , $ options = null ) { $ this -> popup = $ popup ; $ this -> popupOptions = $ options ; if ( ! empty ( $ options ) ) { return $ this -> addMethod ( 'binPopup' , array ( $ popup , $ options ) ) ; } return $ this -> addMethod ( 'bindPopup' , array ( $ popup ) ) ; }
Bind marker to a popup.

@param Popup|string $popup   The popup.
@param array|null   $options Optional popup options.

@return $this
Bind marker to a popup .