Skip to content
This repository has been archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Use textContent instead of innerText to support Firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
k88hudson committed Jun 11, 2014
1 parent 17acf67 commit 0214845
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/ngScrollSpy.debug.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ mod.directive('pagemenu', function($compile, $location, $anchorScroll) {
// parse basic info from the dom item
var item = {
link: data.id,
text: data.innerText,
text: data.textContent || data.innerText,
parent: ''
};

Expand Down
2 changes: 1 addition & 1 deletion dist/ngScrollSpy.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ mod.directive('pagemenu', function($compile, $location, $anchorScroll) {
// parse basic info from the dom item
var item = {
link: data.id,
text: data.innerText,
text: data.textContent || data.innerText,
parent: ''
};

Expand Down
2 changes: 1 addition & 1 deletion dist/ngScrollSpy.min.js
100644 → 100755

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/pagemenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mod.directive('pagemenu', function($compile, $location, $anchorScroll) {
// parse basic info from the dom item
var item = {
link: data.id,
text: data.innerText,
text: data.textContent || data.innerText,
parent: ''
};

Expand Down

0 comments on commit 0214845

Please sign in to comment.