Beans_Lessc::findClosestSelectors PHP Method

findClosestSelectors() protected method

protected findClosestSelectors ( )
    protected function findClosestSelectors()
    {
        $env = $this->env;
        $selectors = null;
        while ($env !== null) {
            if (isset($env->selectors)) {
                $selectors = $env->selectors;
                break;
            }
            $env = $env->parent;
        }
        return $selectors;
    }