mediawiki.template: Mustache should return jQuery object instead of array
authorjdlrobson <jdlrobson@gmail.com>
Thu, 30 Apr 2015 00:21:24 +0000 (17:21 -0700)
committerKrinkle <krinklemail@gmail.com>
Wed, 3 Jun 2015 02:09:08 +0000 (02:09 +0000)
This is consistent with Flow and Hogan in Mobile.

Change-Id: If5c9e08ade185ebdb42a292f87d7506a68528c88

resources/src/mediawiki/mediawiki.template.mustache.js

index dcc3842..624986a 100644 (file)
@@ -5,7 +5,7 @@
                compile: function ( src ) {
                        return {
                                render: function ( data ) {
-                                       return $.parseHTML( Mustache.render( src, data ) );
+                                       return $( $.parseHTML( Mustache.render( src, data ) ) );
                                }
                        };
                }