Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow passing nil as name to hs.pasteboard.callbackWhenChanged (#3616)
The issue was that calling `hs.pasteboard.callbackWhenChanged(nil, 1, function() end)` raised "callback must be a function". This is because ipairs stops iterating the varargs table on the first nil element, so the for-loop body is not executed.
- Loading branch information