aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ajax/parseXML.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ajax/parseXML.js b/src/ajax/parseXML.js
index 9eeb625ff..6a40c854a 100644
--- a/src/ajax/parseXML.js
+++ b/src/ajax/parseXML.js
@@ -4,15 +4,14 @@ define([
// Cross-browser xml parsing
jQuery.parseXML = function( data ) {
- var xml, tmp;
+ var xml;
if ( !data || typeof data !== "string" ) {
return null;
}
// Support: IE9
try {
- tmp = new DOMParser();
- xml = tmp.parseFromString( data, "text/xml" );
+ xml = ( new DOMParser() ).parseFromString( data, "text/xml" );
} catch ( e ) {
xml = undefined;
}