Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
ca49ef98
Commit
ca49ef98
authored
Jan 09, 2013
by
Richard Gibson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ref gh-1117: Use native push for size and performance
parent
8e6c1ba9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
manipulation.js
src/manipulation.js
+2
-2
No files found.
src/manipulation.js
View file @
ca49ef98
...
@@ -439,7 +439,7 @@ jQuery.extend({
...
@@ -439,7 +439,7 @@ jQuery.extend({
// Convert non-html into a text node
// Convert non-html into a text node
}
else
if
(
!
rhtml
.
test
(
elem
)
)
{
}
else
if
(
!
rhtml
.
test
(
elem
)
)
{
core_push
.
call
(
nodes
,
context
.
createTextNode
(
elem
)
);
nodes
.
push
(
context
.
createTextNode
(
elem
)
);
// Convert html into DOM nodes
// Convert html into DOM nodes
}
else
{
}
else
{
...
@@ -495,7 +495,7 @@ jQuery.extend({
...
@@ -495,7 +495,7 @@ jQuery.extend({
j
=
0
;
j
=
0
;
while
(
(
elem
=
tmp
[
j
++
])
)
{
while
(
(
elem
=
tmp
[
j
++
])
)
{
if
(
rscriptType
.
test
(
elem
.
type
||
""
)
)
{
if
(
rscriptType
.
test
(
elem
.
type
||
""
)
)
{
core_push
.
call
(
scripts
,
elem
);
scripts
.
push
(
elem
);
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment