This repository was archived by the owner on Jul 13, 2024. It is now read-only.
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 616
616
* @property {string } [color] - Master color (dot & message)
617
617
* @property {string } [author = this.parent.author] - Author name & email
618
618
* @property {string } [date] - Date of commit, default is now
619
- * @property {string } [detail] - DOM Element of detail part
619
+ * @property {HTMLElement } [detail] - DOM Element of detail part
620
620
* @property {string } [sha1] - Sha1, default is a random short sha1
621
621
* @property {Commit } [parentCommit] - Parent commit
622
622
* @property {string } [type = ("mergeCommit"|null)] - Type of commit
717
717
718
718
// Detail
719
719
var isCompact = ( this . parent . mode === "compact" ) ;
720
- if ( typeof options . detailId === "string" && ! isCompact ) {
721
- options . detail = document . getElementById ( options . detailId ) ;
722
- } else {
720
+ if ( isCompact ) {
723
721
options . detail = null ;
722
+ } else if ( typeof options . detailId === "string" ) {
723
+ options . detail = document . getElementById ( options . detailId ) || options . detail ;
724
724
}
725
725
726
726
// Check collision (Cause of special compact mode)
1037
1037
* @param {boolean } options.arrowDisplay - Add a arrow under commit dot
1038
1038
* @param {string } [options.author = this.parent.author] - Author name & email
1039
1039
* @param {string } [options.date] - Date of commit, default is now
1040
- * @param {string } [options.detail] - DOM Element of detail part
1040
+ * @param {HTMLElement } [options.detail] - DOM Element of detail part
1041
1041
* @param {string } [options.sha1] - Sha1, default is a random short sha1
1042
1042
* @param {Commit } [options.parentCommit] - Parent commit
1043
1043
* @param {string } [options.type = ("mergeCommit"|null)] - Type of commit
You can’t perform that action at this time.
0 commit comments