EBernhardson has uploaded a new change for review.
https://gerrit.wikimedia.org/r/156215
Change subject: Function.prototype.bind is also ECMAScript 5
......................................................................
Function.prototype.bind is also ECMAScript 5
Change-Id: Ic06e08490e8f297fda479c4adaf9b2d8735f63ad
---
M resources/src/mediawiki/mediawiki.debug.profile.js
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/15/156215/1
diff --git a/resources/src/mediawiki/mediawiki.debug.profile.js
b/resources/src/mediawiki/mediawiki.debug.profile.js
index 64ec6c3..adcb4c6 100644
--- a/resources/src/mediawiki/mediawiki.debug.profile.js
+++ b/resources/src/mediawiki/mediawiki.debug.profile.js
@@ -70,7 +70,7 @@
* @param string tag to create
* @return DOMElement
*/
- createSvgElement: document.createElementNS
+ createSvgElement: ( document.createElementNS &&
Function.prototype.bind )
? document.createElementNS.bind( document,
'http://www.w3.org/2000/svg' )
// throw a error for browsers which does not support
document.createElementNS (IE<8)
: function () { throw new Error(
'document.createElementNS not supported' ); },
--
To view, visit https://gerrit.wikimedia.org/r/156215
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic06e08490e8f297fda479c4adaf9b2d8735f63ad
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits