dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Only use "*Test.php" for actual PHPUnit tests"
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki.template.mustache.js
diff --git
a/resources/src/mediawiki.template.mustache.js
b/resources/src/mediawiki.template.mustache.js
index
9f5e5c4
..
2b3e8bb
100644
(file)
--- a/
resources/src/mediawiki.template.mustache.js
+++ b/
resources/src/mediawiki.template.mustache.js
@@
-1,5
+1,5
@@
/* global Mustache */
/* global Mustache */
-( function (
mw, $
) {
+( function () {
// Register mustache compiler
mw.template.registerCompiler( 'mustache', {
compile: function ( src ) {
// Register mustache compiler
mw.template.registerCompiler( 'mustache', {
compile: function ( src ) {
@@
-21,6
+21,7
@@
render: function ( data, partialTemplates ) {
var partials = {};
if ( partialTemplates ) {
render: function ( data, partialTemplates ) {
var partials = {};
if ( partialTemplates ) {
+ /* eslint-disable-next-line no-restricted-properties */
$.each( partialTemplates, function ( name, template ) {
partials[ name ] = template.getSource();
} );
$.each( partialTemplates, function ( name, template ) {
partials[ name ] = template.getSource();
} );
@@
-31,4
+32,4
@@
}
} );
}
} );
-}(
mediaWiki, jQuery
) );
+}() );