original_string: public function setJsSettings($key, $data, $weight = null)
      {
          $asset = array(
              'type' => 'js',
              'weight' => $weight,
              'key' => 'js_settings',
              'merge' => 'js_settings',
              'asset' => array($key => $data)
          );
  
          $this->asset->set($asset);
      }
code: public function setJsSettings($key, $data, $weight = null)
      {
          $asset = array(
              'type' => 'js',
              'weight' => $weight,
              'key' => 'js_settings',
              'merge' => 'js_settings',
              'asset' => array($key => $data)
          );
  
          $this->asset->set($asset);
      }
code_tokens: public function setJsSettings ( $ key , $ data , $ weight = null ) { $ asset = array ( 'type' => 'js' , 'weight' => $ weight , 'key' => 'js_settings' , 'merge' => 'js_settings' , 'asset' => array ( $ key => $ data ) ) ; $ this -> asset -> set ( $ asset ) ; }
docstring: Adds JSON string with JS settings
  @param string $key
  @param mixed $data
  @param integer|null $weight
docstring_tokens: Adds JSON string with JS settings