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

Commit

Permalink
Merge pull request #1 from k88hudson/text-content
Browse files Browse the repository at this point in the history
Use textContent instead of innerText to support Firefox
  • Loading branch information
mg committed Jun 11, 2014
2 parents 17acf67 + 0214845 commit 1304385
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 1304385

Please sign in to comment.