Skip to content

Commit

Permalink
Missing iconlibrary on data option BC
Browse files Browse the repository at this point in the history
  • Loading branch information
toopay committed Jan 7, 2015
1 parent aa111ee commit d7464f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/bootstrap-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@
var Markdown = function (element, options) {
// @TODO : remove this BC on next major release
// @see : https://github.com/toopay/bootstrap-markdown/issues/109
var opts = ['autofocus', 'savable', 'hideable', 'width', 'height', 'resize',
'language', 'footer', 'fullscreen', 'hiddenButtons', 'disabledButton'];
var opts = ['autofocus', 'savable', 'hideable', 'width',
'height', 'resize', 'iconlibrary', 'language',
'footer', 'fullscreen', 'hiddenButtons', 'disabledButtons'];
$.each(opts,function(_, opt){
if (typeof $(element).data(opt) !== 'undefined') {
options = typeof options == 'object' ? options : {}
options[opt] = $(element).data(opt)
}
});
Expand Down

0 comments on commit d7464f5

Please sign in to comment.