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
fb0f2952
Commit
fb0f2952
authored
Jan 25, 2013
by
Richard Gibson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #13282: QtWebKit (e.g., phantomjs) can only apply Arrays
parent
f39ca223
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
manipulation.js
src/manipulation.js
+12
-4
No files found.
src/manipulation.js
View file @
fb0f2952
...
...
@@ -303,7 +303,9 @@ jQuery.fn.extend({
// Keep references to cloned scripts for later restoration
if
(
hasScripts
)
{
core_push
.
apply
(
scripts
,
getAll
(
node
,
"script"
)
);
// Support: QtWebKit
// jQuery.merge because core_push.apply(_, arraylike) throws
jQuery
.
merge
(
scripts
,
getAll
(
node
,
"script"
)
);
}
}
...
...
@@ -369,7 +371,9 @@ jQuery.each({
elems
=
i
===
last
?
this
:
this
.
clone
(
true
);
jQuery
(
insert
[
i
]
)[
original
](
elems
);
core_push
.
apply
(
ret
,
elems
);
// Support: QtWebKit
// .get() because core_push.apply(_, arraylike) throws
core_push
.
apply
(
ret
,
elems
.
get
()
);
}
return
this
.
pushStack
(
ret
);
...
...
@@ -433,7 +437,9 @@ jQuery.extend({
// Add nodes directly
if
(
jQuery
.
type
(
elem
)
===
"object"
)
{
core_push
.
apply
(
nodes
,
elem
.
nodeType
?
[
elem
]
:
elem
);
// Support: QtWebKit
// jQuery.merge because core_push.apply(_, arraylike) throws
jQuery
.
merge
(
nodes
,
elem
.
nodeType
?
[
elem
]
:
elem
);
// Convert non-html into a text node
}
else
if
(
!
rhtml
.
test
(
elem
)
)
{
...
...
@@ -454,7 +460,9 @@ jQuery.extend({
tmp
=
tmp
.
firstChild
;
}
core_push
.
apply
(
nodes
,
tmp
.
childNodes
);
// Support: QtWebKit
// jQuery.merge because core_push.apply(_, arraylike) throws
jQuery
.
merge
(
nodes
,
tmp
.
childNodes
);
// Remember the top-level container
tmp
=
fragment
.
firstChild
;
...
...
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