mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-19 21:02:31 +02:00
Default arguments ftw.
This commit is contained in:
1 parent
25aae2cc99
commit
35784406a0
8 files changed
+14
-30
No files matched your search
@@ -377,10 +377,7 @@ var StatusLine = Module("statusline", {
|
||||
* @param {number} percent The zoom level, as a percentage. @optional
|
||||
* @param {boolean} full True if full zoom is in operation. @optional
|
||||
*/
|
||||
updateZoomLevel: function updateZoomLevel(percent, full) {
|
||||
if (arguments.length == 0)
|
||||
[percent, full] = [buffer.zoomLevel, buffer.fullZoom];
|
||||
|
||||
updateZoomLevel: function updateZoomLevel(percent=buffer.zoomLevel, full=buffer.fullZoom) {
|
||||
if (percent == 100)
|
||||
this.widgets.zoomlevel.value = "";
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user