Skip to content
This repository has been archived by the owner on Jan 23, 2022. It is now read-only.

Commit

Permalink
fix(ngdocs): don't break css for method close collapse #119 #126
Browse files Browse the repository at this point in the history
  • Loading branch information
m7r committed Dec 23, 2014
1 parent ae91d23 commit 6639f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ DOM.prototype = {
this.anchors.push(id);
anchor = {'id': id};
var classNameValue = this.currentHeaders[this.headingDepth - 1]
if(classNameValue == 'hide') classNameValue = '';
if (/^(hide|close|collapse)$/.test(classNameValue)) classNameValue = '';
className = {'class': classNameValue};
}
this.tag('h' + this.headingDepth, anchor, heading);
Expand Down

0 comments on commit 6639f06

Please sign in to comment.