private function localizeAsset()
    {
        if ($this->getArgument('localize')) {
            wp_localize_script(
                $this->getSlug(),
                $this->getArgument('localize')['var'],
                $this->getArgument('localize')['callback']
            );
        }

        return $this;
    }
private function localizeAsset()
    {
        if ($this->getArgument('localize')) {
            wp_localize_script(
                $this->getSlug(),
                $this->getArgument('localize')['var'],
                $this->getArgument('localize')['callback']
            );
        }

        return $this;
    }
private function localizeAsset ( ) { if ( $ this -> getArgument ( 'localize' ) ) { wp_localize_script ( $ this -> getSlug ( ) , $ this -> getArgument ( 'localize' ) [ 'var' ] , $ this -> getArgument ( 'localize' ) [ 'callback' ] ) ; } return $ this ; }
Localize asset.

@return self
Localize asset .