[Libreoffice-commits] online.git: loleaflet/dist

Henry Castro hcastro at collabora.com
Thu Nov 24 14:17:31 UTC 2016


 loleaflet/dist/toolbar/toolbar.js |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 0ba3c23c8762a9d42e4ea4b54ecf363458638bc0
Author: Henry Castro <hcastro at collabora.com>
Date:   Thu Nov 24 10:17:50 2016 -0400

    loleaflet: do not allow empty option element

diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index b0aedc8..80cdd08 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -1059,7 +1059,7 @@ map.on('search', function (e) {
 
 map.on('updatetoolbarcommandvalues', function (e) {
 	// we need an empty option for the place holder to work
-	var data = [''];
+	var data = [];
 	var styles = [];
 	var topStyles = [];
 	if (e.commandName === '.uno:StyleApply') {


More information about the Libreoffice-commits mailing list