Skip to content

Commit d7464f5

Browse files
committed
Missing iconlibrary on data option BC
1 parent aa111ee commit d7464f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

js/bootstrap-markdown.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,12 @@
2727
var Markdown = function (element, options) {
2828
// @TODO : remove this BC on next major release
2929
// @see : https://github.com/toopay/bootstrap-markdown/issues/109
30-
var opts = ['autofocus', 'savable', 'hideable', 'width', 'height', 'resize',
31-
'language', 'footer', 'fullscreen', 'hiddenButtons', 'disabledButton'];
30+
var opts = ['autofocus', 'savable', 'hideable', 'width',
31+
'height', 'resize', 'iconlibrary', 'language',
32+
'footer', 'fullscreen', 'hiddenButtons', 'disabledButtons'];
3233
$.each(opts,function(_, opt){
3334
if (typeof $(element).data(opt) !== 'undefined') {
35+
options = typeof options == 'object' ? options : {}
3436
options[opt] = $(element).data(opt)
3537
}
3638
});

0 commit comments

Comments
 (0)