Skip to content
GitLab
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
632313d6
Commit
632313d6
authored
10 years ago
by
Mike Greiling
Committed by
Chris Rebert
10 years ago
Browse files
Options
Download
Email Patches
Plain Diff
no need to check for href attribute on the scrollable element
parent
0be41096
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
js/scrollspy.js
+1
-4
js/scrollspy.js
with
1 addition
and
4 deletions
+1
-4
js/scrollspy.js
+
1
-
4
View file @
632313d6
...
@@ -14,16 +14,13 @@
...
@@ -14,16 +14,13 @@
// ==========================
// ==========================
function
ScrollSpy
(
element
,
options
)
{
function
ScrollSpy
(
element
,
options
)
{
var
href
var
process
=
$
.
proxy
(
this
.
process
,
this
)
var
process
=
$
.
proxy
(
this
.
process
,
this
)
this
.
$element
=
$
(
element
).
is
(
'
body
'
)
?
$
(
window
)
:
$
(
element
)
this
.
$element
=
$
(
element
).
is
(
'
body
'
)
?
$
(
window
)
:
$
(
element
)
this
.
$body
=
$
(
'
body
'
)
this
.
$body
=
$
(
'
body
'
)
this
.
$scrollElement
=
this
.
$element
.
on
(
'
scroll.bs.scrollspy
'
,
process
)
this
.
$scrollElement
=
this
.
$element
.
on
(
'
scroll.bs.scrollspy
'
,
process
)
this
.
options
=
$
.
extend
({},
ScrollSpy
.
DEFAULTS
,
options
)
this
.
options
=
$
.
extend
({},
ScrollSpy
.
DEFAULTS
,
options
)
this
.
selector
=
(
this
.
options
.
target
this
.
selector
=
(
this
.
options
.
target
||
''
)
+
'
.nav li > a
'
||
((
href
=
$
(
element
).
attr
(
'
href
'
))
&&
href
.
replace
(
/.*
(?=
#
[^\s]
+$
)
/
,
''
))
//strip for ie7
||
''
)
+
'
.nav li > a
'
this
.
offsets
=
[]
this
.
offsets
=
[]
this
.
targets
=
[]
this
.
targets
=
[]
this
.
activeTarget
=
null
this
.
activeTarget
=
null
...
...
This diff is collapsed.
Click to expand it.
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