original_string: public function getJs($position)
      {
          $js = $this->asset->get('js', $position);
  
          if (isset($js['js_settings']['asset'])) {
              $json = gplcart_json_encode($js['js_settings']['asset']);
              $js['js_settings']['asset'] = "Gplcart.settings=$json;";
          }
  
          return $js;
      }
code: public function getJs($position)
      {
          $js = $this->asset->get('js', $position);
  
          if (isset($js['js_settings']['asset'])) {
              $json = gplcart_json_encode($js['js_settings']['asset']);
              $js['js_settings']['asset'] = "Gplcart.settings=$json;";
          }
  
          return $js;
      }
code_tokens: public function getJs ( $ position ) { $ js = $ this -> asset -> get ( 'js' , $ position ) ; if ( isset ( $ js [ 'js_settings' ] [ 'asset' ] ) ) { $ json = gplcart_json_encode ( $ js [ 'js_settings' ] [ 'asset' ] ) ; $ js [ 'js_settings' ] [ 'asset' ] = "Gplcart.settings=$json;" ; } return $ js ; }
docstring: Returns an array of JS scripts
  @param string $position
  @return array
docstring_tokens: Returns an array of JS scripts