Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 4cde51b9

Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt

  • ID 4cde51b98c34657c2540f08fb55b5ed28c314d06
  • Vorgänger 094084cb
  • Nachfolger 8c938699

kivi.history_back: wie history.back() aber über kivi.get_function_by_name auffindbar

Unterschiede anzeigen:

js/kivi.js
305 305
    $form.submit();
306 306
  };
307 307

  
308
  // This function exists solely so that it can be found with
309
  // kivi.get_functions_by_name() and called later on. Using something
310
  // like "var func = history["back"]" works, but calling it later
311
  // with "func.apply()" doesn't.
312
  ns.history_back = function() {
313
    history.back();
314
  };
315

  
308 316
  // Return a function object by its name (a string). Works both with
309 317
  // global functions (e.g. "check_right_date_format") and those in
310 318
  // namespaces (e.g. "kivi.t8").

Auch abrufbar als: Unified diff