src/FelixOnline/Base/ResourceManager.php
public function getJS()
    {
        // Strip out externals
        $js = array();
        $jsExt = array();

        foreach ($this->js as $jsItem) {
            if ($this->isExternal($jsItem)) {
                $jsExt[] = $jsItem;
            } else {
                $js[] = $jsItem;
            }
        }

        return array_merge($this->build($js, 'js'), $jsExt);
    }
public function getJS()
    {
        // Strip out externals
        $js = array();
        $jsExt = array();

        foreach ($this->js as $jsItem) {
            if ($this->isExternal($jsItem)) {
                $jsExt[] = $jsItem;
            } else {
                $js[] = $jsItem;
            }
        }

        return array_merge($this->build($js, 'js'), $jsExt);
    }
/*
Public: Get js files

Returns array of js files paths