Skip to content
Permalink
Browse files

Move createSafeFragment to the top to satisfy lint

  • Loading branch information...
timmywil committed Sep 28, 2011
1 parent 3661835 commit a74cbb2b911b3afad96599728208d95a60d24cbf
Showing with 17 additions and 17 deletions.
  1. +17 −17 src/manipulation.js
@@ -1,5 +1,22 @@
(function( jQuery ) {

function createSafeFragment( document ) {
var nodeNames = (
"abbr article aside audio canvas datalist details figcaption figure footer " +
"header hgroup mark meter nav output progress section summary time video"
).split( " " ),
safeFrag = document.createDocumentFragment();

if ( safeFrag.createElement ) {
while ( nodeNames.length ) {
safeFrag.createElement(
nodeNames.pop()
);
}
}
return safeFrag;
}

var rinlinejQuery = / jQuery\d+="(?:\d+|null)"/g,
rleadingWhitespace = /^\s+/,
rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,
@@ -777,21 +794,4 @@ function evalScript( i, elem ) {
}
}

function createSafeFragment( document ) {
var nodeNames = (
"abbr article aside audio canvas datalist details figcaption figure footer " +
"header hgroup mark meter nav output progress section summary time video"
).split( " " ),
safeFrag = document.createDocumentFragment();

if ( safeFrag.createElement ) {
while ( nodeNames.length ) {
safeFrag.createElement(
nodeNames.pop()
);
}
}
return safeFrag;
}

})( jQuery );

0 comments on commit a74cbb2

Please sign in to comment.
You can’t perform that action at this time.