Skip to content

Commit

Permalink
Update modal-native.js
Browse files Browse the repository at this point in the history
  • Loading branch information
thednp authored Jun 27, 2016
1 parent 7803146 commit 015833a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/modal-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@
var triggers = document.querySelectorAll('[data-toggle="modal"]'), tgl = triggers.length, i = 0;
for ( i;i<tgl;i++ ) {
triggers[i].addEventListener('click', function(e) {
e.preventDefault();
var b = e.target,
s = b.getAttribute('data-target') && b.getAttribute('data-target').replace('#','')
|| b.getAttribute('href') && b.getAttribute('href').replace('#','');
Expand Down

0 comments on commit 015833a

Please sign in to comment.