From 96c13b326b57b80fc914c2f59ac55b07b7f53c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Wed, 22 Feb 2017 20:41:35 +0100 Subject: [PATCH] Revert "Handle single widget arguments to force (#29)" This reverts commit 043e50322db958ec22ed6dcd5197f1dc86098f4b. --- README.md | 6 ++---- init.lua | 2 -- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 7ae57ba..228d999 100644 --- a/README.md +++ b/README.md @@ -125,12 +125,10 @@ enable caching of values returned by a widget type **Force update of widgets:** ```Lua - vicious.force(widget) - vicious.force({ widget1, widget2 }) + vicious.force({ widget, }) ``` -widget argument is a single widget or a table with one or more widgets that -will be updated +widget argument is a table with one or more widgets that will be updated Widget types diff --git a/init.lua b/init.lua index 374c419..62b6980 100644 --- a/init.lua +++ b/init.lua @@ -234,8 +234,6 @@ function vicious.force(wtable) for _, w in pairs(wtable) do update(w, nil, true) end - else - update(wtable, nil, true) end end -- }}}