src/View/Helper/JsHelper.php
public function setBuffer($script, $top = false)
    {
        $script = trim($script);
        if ($top) {
            array_unshift($this->_buffers, $script);
        } else {
            array_push($this->_buffers, $script);
        }

        return $this;
    }
public function setBuffer($script, $top = false)
    {
        $script = trim($script);
        if ($top) {
            array_unshift($this->_buffers, $script);
        } else {
            array_push($this->_buffers, $script);
        }

        return $this;
    }
public function setBuffer ( $ script , $ top = false ) { $ script = trim ( $ script ) ; if ( $ top ) { array_unshift ( $ this -> _buffers , $ script ) ; } else { array_push ( $ this -> _buffers , $ script ) ; } return $ this ; }
Setup buffer script.

@param string $script
@param bool|false $top
@return $this
Setup buffer script .