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 "Fix return type hints in media related classes"
[lhc/web/wiklou.git]
/
resources
/
src
/
mediawiki.Title
/
Title.js
diff --git
a/resources/src/mediawiki.Title/Title.js
b/resources/src/mediawiki.Title/Title.js
index
259febc
..
3084e12
100644
(file)
--- a/
resources/src/mediawiki.Title/Title.js
+++ b/
resources/src/mediawiki.Title/Title.js
@@
-609,7
+609,7
@@
Title.newFromFileName = function ( uncleanName ) {
/**
* Get the file title from an image element
*
- * var title = mw.Title.newFromImg(
$( 'img:first' )
);
+ * var title = mw.Title.newFromImg(
imageNode
);
*
* @static
* @param {HTMLElement|jQuery} img The image to use as a base