Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
3c64f4d2
Commit
3c64f4d2
authored
Sep 23, 2016
by
alexey.musinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mobile js exception
parent
f6ecc5f3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
64 deletions
+65
-64
common/Native/jquery_native.js
common/Native/jquery_native.js
+65
-64
No files found.
common/Native/jquery_native.js
View file @
3c64f4d2
...
...
@@ -4683,34 +4683,35 @@ var makeArray = function( array, results ) {
// converting a NodeList to an array using builtin methods.
// Also verifies that the returned array holds DOM nodes
// (which is not the case in the Blackberry browser)
try
{
Array
.
prototype
.
slice
.
call
(
document
.
documentElement
.
childNodes
,
0
)[
0
].
nodeType
;
// Provide a fallback method if it does not work
}
catch
(
e
)
{
makeArray
=
function
(
array
,
results
)
{
var
i
=
0
,
ret
=
results
||
[];
if
(
toString
.
call
(
array
)
===
"
[object Array]
"
)
{
Array
.
prototype
.
push
.
apply
(
ret
,
array
);
}
else
{
if
(
typeof
array
.
length
===
"
number
"
)
{
for
(
var
l
=
array
.
length
;
i
<
l
;
i
++
)
{
ret
.
push
(
array
[
i
]
);
}
//try {
// Array.prototype.slice.call( document.documentElement.childNodes, 0 )[0].nodeType;
//
//// Provide a fallback method if it does not work
//} catch( e ) {
// makeArray = function( array, results ) {
// var i = 0,
// ret = results || [];
//
// if ( toString.call(array) === "[object Array]" ) {
// Array.prototype.push.apply( ret, array );
//
// } else {
// if ( typeof array.length === "number" ) {
// for ( var l = array.length; i < l; i++ ) {
// ret.push( array[i] );
// }
//
// } else {
// for ( ; array[i]; i++ ) {
// ret.push( array[i] );
// }
// }
// }
//
// return ret;
// };
//}
}
else
{
for
(
;
array
[
i
];
i
++
)
{
ret
.
push
(
array
[
i
]
);
}
}
}
return
ret
;
};
}
var
sortOrder
,
siblingCheck
;
...
...
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