Blame view

bower_components/jquery/src/manipulation/createSafeFragment.js 351 Bytes
a1a3bc73   Luigi Serra   graphs updates
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
  define( [
  	"./var/nodeNames"
  ], function( nodeNames ) {
  
  function createSafeFragment( document ) {
  	var list = nodeNames.split( "|" ),
  		safeFrag = document.createDocumentFragment();
  
  	if ( safeFrag.createElement ) {
  		while ( list.length ) {
  			safeFrag.createElement(
  				list.pop()
  			);
  		}
  	}
  	return safeFrag;
  }
  
  return createSafeFragment;
  } );