Reformatted code

This commit is contained in:
Alex Gleason 2015-09-17 08:29:13 -05:00
parent 0b338d9131
commit 6e2f4275ca

View file

@ -32,11 +32,11 @@
self.toggle = function() {
if (self.container.hasClass('stream-menu-closed')) {
if (opts.childBlocks.length == 1) {
if (opts.onChooseBlock) opts.onChooseBlock(opts.childBlocks[0]);
} else {
self.show();
}
if (opts.childBlocks.length == 1) {
if (opts.onChooseBlock) opts.onChooseBlock(opts.childBlocks[0]);
} else {
self.show();
}
} else {
self.hide();
}