original_string: public function addJs($js)
      {
          if (is_array($js)) {
              foreach ($js as $script) {
                  $this->addJs($script);
              }
  
              return $this;
          }
  
          $this->js->push($js);
  
          return $this;
      }
code: public function addJs($js)
      {
          if (is_array($js)) {
              foreach ($js as $script) {
                  $this->addJs($script);
              }
  
              return $this;
          }
  
          $this->js->push($js);
  
          return $this;
      }
code_tokens: public function addJs ( $ js ) { if ( is_array ( $ js ) ) { foreach ( $ js as $ script ) { $ this -> addJs ( $ script ) ; } return $ this ; } $ this -> js -> push ( $ js ) ; return $ this ; }
docstring: Add a javascript dependency on the view.
  
  @param string $js
  
  @throws AssetNotFoundException
  
  @return $this
docstring_tokens: Add a javascript dependency on the view .