Beispiel #1
0
 /**
  * Get the shim require.js logic for loading the list class.
  * -min suffix added elsewhere.
  *
  * @since   3.1b
  *
  * @return  object  shim
  */
 public function requireJSShim_result()
 {
     $deps = new stdClass();
     $deps->deps = array('fab/list-plugin');
     $shim['list/' . $this->filterKey . '/' . $this->filterKey] = $deps;
     $params = $this->getParams();
     $shim = parent::requireJSShim_result();
     list($srcs, $els, $addShim) = $this->loadElementJS($params);
     foreach ($addShim as $key => $deps) {
         if (!array_key_exists($key, $shim)) {
             $shim[$key] = $deps;
         } else {
             $shim[$key]['deps'] = array_merge($shim[$key]->deps, $shim->deps);
         }
     }
     return $shim;
 }