docs: Fix member index for mw.html
authorTimo Tijhof <krinklemail@gmail.com>
Thu, 27 Jun 2013 00:17:44 +0000 (17:17 -0700)
committerTimo Tijhof <krinklemail@gmail.com>
Thu, 27 Jun 2013 01:10:59 +0000 (18:10 -0700)
Method mw.html#element was indexed as being a member of
class mw.html.Cdata due to the lack of an explicit @member
tag, so it defaulted to linear association to the previous
@class block.

Quick fix can be done inline with @member but might as well
do it propert and separate the linear sequences.

Change-Id: I22580a6257a681a30e1ecd7c1283b57d7cb730f2

resources/mediawiki/mediawiki.js

index 883a63f..0d1fbb7 100644 (file)
@@ -1676,22 +1676,6 @@ var mw = ( function ( $, undefined ) {
                                        return s.replace( /['"<>&]/g, escapeCallback );
                                },
 
-                               /**
-                                * Wrapper object for raw HTML passed to mw.html.element().
-                                * @class mw.html.Raw
-                                */
-                               Raw: function ( value ) {
-                                       this.value = value;
-                               },
-
-                               /**
-                                * Wrapper object for CDATA element contents passed to mw.html.element()
-                                * @class mw.html.Cdata
-                                */
-                               Cdata: function ( value ) {
-                                       this.value = value;
-                               },
-
                                /**
                                 * Create an HTML element string, with safe escaping.
                                 *
@@ -1758,6 +1742,22 @@ var mw = ( function ( $, undefined ) {
                                        }
                                        s += '</' + name + '>';
                                        return s;
+                               },
+
+                               /**
+                                * Wrapper object for raw HTML passed to mw.html.element().
+                                * @class mw.html.Raw
+                                */
+                               Raw: function ( value ) {
+                                       this.value = value;
+                               },
+
+                               /**
+                                * Wrapper object for CDATA element contents passed to mw.html.element()
+                                * @class mw.html.Cdata
+                                */
+                               Cdata: function ( value ) {
+                                       this.value = value;
                                }
                        };
                }() ),