src/Potter/Theme/Features.php
public function setJsEnqueue(array $data)
    {
        $this->jsEnqueue = array();

        $default = array(
            'src'       => false,
            'deps'      => array(),
            'ver'       => false,
            'in_footer' => false
        );

        if ($this->ArrayIsMulti($data)):
            foreach ($data as $enqueue):
                $this->jsEnqueue[] = wp_parse_args($enqueue, $default);
            endforeach;
        else:
            foreach ($data as $handle):
                $this->jsEnqueue[] = wp_parse_args(array('handle' => $handle), $default);
            endforeach;
        endif;

        return $this;
    }
public function setJsEnqueue(array $data)
    {
        $this->jsEnqueue = array();

        $default = array(
            'src'       => false,
            'deps'      => array(),
            'ver'       => false,
            'in_footer' => false
        );

        if ($this->ArrayIsMulti($data)):
            foreach ($data as $enqueue):
                $this->jsEnqueue[] = wp_parse_args($enqueue, $default);
            endforeach;
        else:
            foreach ($data as $handle):
                $this->jsEnqueue[] = wp_parse_args(array('handle' => $handle), $default);
            endforeach;
        endif;

        return $this;
    }
@param array $data

@return $this