Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
thednp committed Jul 10, 2016
1 parent 7f420d5 commit a0412b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions dist/bootstrap-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -754,8 +754,6 @@
self.removeClass(self.btn,'collapsed');
},
this.open = function() {
// self.accordion = self.btn.getAttribute('data-parent') && self.getClosest(self.btn, self.btn.getAttribute('data-parent'));

self._open(self.collapse);
self.addClass(self.btn,'collapsed');

Expand Down Expand Up @@ -826,7 +824,7 @@
},

this.getClosest = function (el, s) { //el is the element and s the selector of the closest item to find
// source http://gomakethings.com/climbing-up-and-down-the-dom-tree-with-vanilla-javascript/
// source http://gomakethings.com/climbing-up-and-down-the-dom-tree-with-vanilla-javascript/
var f = s.charAt(0);
for ( ; el && el !== document; el = el.parentNode ) {// Get closest match
if ( f === '.' ) {// If selector is a class
Expand Down
2 changes: 0 additions & 2 deletions lib/collapse-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@
self.removeClass(self.btn,'collapsed');
},
this.open = function() {
// self.accordion = self.btn.getAttribute('data-parent') && self.getClosest(self.btn, self.btn.getAttribute('data-parent'));

self._open(self.collapse);
self.addClass(self.btn,'collapsed');

Expand Down

0 comments on commit a0412b9

Please sign in to comment.