Merge 20f72281bc3c1d79afd3d8afcce05effd6d733a0 into e32fe3f91c2d45f27f72a3662133b1c0e1a5bda1

This commit is contained in:
Matt Cotter 2017-05-18 14:52:36 +00:00 committed by GitHub
commit 149917f7d9

View File

@ -1739,7 +1739,9 @@ SimpleMDE.prototype.createToolbar = function(items) {
var nonSeparatorIconsFollow = false; var nonSeparatorIconsFollow = false;
for(var x = (i + 1); x < items.length; x++) { for(var x = (i + 1); x < items.length; x++) {
console.log(x);
if(items[x] !== "|" && (!self.options.hideIcons || self.options.hideIcons.indexOf(items[x].name) == -1)) { if(items[x] !== "|" && (!self.options.hideIcons || self.options.hideIcons.indexOf(items[x].name) == -1)) {
console.log(items[x]);
nonSeparatorIconsFollow = true; nonSeparatorIconsFollow = true;
} }
} }