Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
6d8d8639
Commit
6d8d8639
authored
7 years ago
by
Mark Otto
Browse files
Options
Download
Email Patches
Plain Diff
dist
parent
80d0943b
6 merge requests
!28721
Hot test
,
!27561
Adds font-weight-medium to font weight classes
,
!25494
web pack
,
!25326
Adjust examples
,
!23207
#22402 : modal: new autofocus & keyboardBtnNav options
,
!17021
v4
Changes
42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/dist/util.js
+5
-5
js/dist/util.js
js/dist/util.js.map
+0
-0
js/dist/util.js.map
with
5 additions
and
5 deletions
+5
-5
js/dist/util.js
+
5
-
5
View file @
6d8d8639
...
...
@@ -11,7 +11,7 @@ var Util = function ($) {
* ------------------------------------------------------------------------
*/
var
transition
=
false
;
var
MAX_UID
=
1000000
;
//
s
houtout AngusCroll (https://goo.gl/pxwQGp)
var
MAX_UID
=
1000000
;
//
S
houtout AngusCroll (https://goo.gl/pxwQGp)
function
toType
(
obj
)
{
return
{}.
toString
.
call
(
obj
).
match
(
/
\s([
a-zA-Z
]
+
)
/
)[
1
].
toLowerCase
();
...
...
@@ -32,7 +32,7 @@ var Util = function ($) {
}
function
transitionEndTest
()
{
if
(
window
.
QUnit
)
{
if
(
typeof
window
!==
'
undefined
'
&&
window
.
QUnit
)
{
return
false
;
}
...
...
@@ -66,7 +66,7 @@ var Util = function ($) {
}
function
escapeId
(
selector
)
{
//
w
e escape IDs in case of special selectors (selector = '#myId:something')
//
W
e escape IDs in case of special selectors (selector = '#myId:something')
// $.escapeSelector does not exist in jQuery < 3
selector
=
typeof
$
.
escapeSelector
===
'
function
'
?
$
.
escapeSelector
(
selector
).
substr
(
1
)
:
selector
.
replace
(
/
(
:|
\.
|
\[
|
\]
|,|=|@
)
/g
,
'
\\
$1
'
);
return
selector
;
...
...
@@ -93,7 +93,7 @@ var Util = function ($) {
if
(
!
selector
||
selector
===
'
#
'
)
{
selector
=
element
.
getAttribute
(
'
href
'
)
||
''
;
}
//
i
f it's an ID
}
//
I
f it's an ID
if
(
selector
.
charAt
(
0
)
===
'
#
'
)
{
...
...
@@ -103,7 +103,7 @@ var Util = function ($) {
try
{
var
$selector
=
$
(
document
).
find
(
selector
);
return
$selector
.
length
>
0
?
selector
:
null
;
}
catch
(
err
or
)
{
}
catch
(
err
)
{
return
null
;
}
},
...
...
This diff is collapsed.
Click to expand it.
js/dist/util.js.map
+35 bytes (+0%)
View file @
6d8d8639
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets