MediaWiki:Gadget-ImageAnnotator.js: Difference between revisions
Content deleted Content added
Update to latest version from Commons |
m adding a polyfill to the local scope |
||
Line 3,190:
}; // end IA
// Polyfill: getElementsByClassName (stolen from HotCat)
function getElementsByClassName (scope, tag, className) {
var result = window.jQuery(scope).find(tag + '.' + className);
return (result && result.length) ? result[0] : null;
}
window.ImageAnnotator = {
|