aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortimmywil <timmywillisn@gmail.com>2011-09-28 11:39:05 -0400
committertimmywil <timmywillisn@gmail.com>2011-09-28 11:39:05 -0400
commita74cbb2b911b3afad96599728208d95a60d24cbf (patch)
tree2ec2081c2a8318d8575986afca24a46e1d2e45ac
parent3661835101865b08fae20df7458ba03551b86bc3 (diff)
downloadjquery-a74cbb2b911b3afad96599728208d95a60d24cbf.tar.gz
jquery-a74cbb2b911b3afad96599728208d95a60d24cbf.zip
Move createSafeFragment to the top to satisfy lint
-rw-r--r--src/manipulation.js34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index bf0b8e10e..0f7f9dd9b 100644
--- a/src/manipulation.js
+++ b/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 );