diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2015-05-05 11:44:55 -0700 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2015-05-05 11:44:55 -0700 |
commit | a74320fca8bb0a2190f6e1fdb71a73733b6986e4 (patch) | |
tree | 36e4af65a7acfb354f7d713a1859ba81e7d53116 /src/core | |
parent | 6d7ef56ed3004a18f5139928455cdbdc169e1232 (diff) | |
download | jquery-a74320fca8bb0a2190f6e1fdb71a73733b6986e4.tar.gz jquery-a74320fca8bb0a2190f6e1fdb71a73733b6986e4.zip |
Manipulation: privatize buildFragment() function
Fixes gh-2224
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/parseHTML.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/parseHTML.js b/src/core/parseHTML.js index 519600a63..e7d7c63c8 100644 --- a/src/core/parseHTML.js +++ b/src/core/parseHTML.js @@ -2,13 +2,11 @@ define([ "../core", "../var/document", "./var/rsingleTag", + "../manipulation/buildFragment", // This is the only module that needs core/support - "./support", - - // buildFragment - "../manipulation" -], function( jQuery, document, rsingleTag, support ) { + "./support" +], function( jQuery, document, rsingleTag, buildFragment, support ) { // data: string of html // context (optional): If specified, the fragment will be created in this context, @@ -36,7 +34,7 @@ jQuery.parseHTML = function( data, context, keepScripts ) { return [ context.createElement( parsed[1] ) ]; } - parsed = jQuery.buildFragment( [ data ], context, scripts ); + parsed = buildFragment( [ data ], context, scripts ); if ( scripts && scripts.length ) { jQuery( scripts ).remove(); |