r76006 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76005‎ | r76006 | r76007 >
Date:14:14, 4 November 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Added @since tags for stuff introduced in r75994
Modified paths:
  • /trunk/phase3/includes/Xml.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Xml.php
@@ -620,6 +620,7 @@
621621 * @param $name The name of the function to call, or a JavaScript expression
622622 * which evaluates to a function object which is called.
623623 * @param $args Array of arguments to pass to the function.
 624+ * @since 1.17
624625 */
625626 public static function encodeJsCall( $name, $args ) {
626627 $s = "$name(";
@@ -849,6 +850,7 @@
850851 * Xml::encodeJsVar( new XmlJsCode( 'a + b' ) );
851852 *
852853 * Returns "a + b".
 854+ * @since 1.17
853855 */
854856 class XmlJsCode {
855857 public $value;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r75994* Introduced Xml::encodeJsCall(), to replace the awkward repetitive code that...tstarling07:53, 4 November 2010

Status & tagging log