Merge "API: Organize classes"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 27 Aug 2014 21:25:24 +0000 (21:25 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 27 Aug 2014 21:25:24 +0000 (21:25 +0000)
resources/src/mediawiki/mediawiki.debug.profile.js

index 64ec6c3..b4d5773 100644 (file)
                 * @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' ); },
+                       : function () { throw new Error( 'An ES5 compatible javascript engine is required for the profile visualization.' ); },
 
                /**
                 * @param DOMElement|undefined