From 2022b6c8e44486b1512b34f6153e395c341e0202 Mon Sep 17 00:00:00 2001 From: Matt Date: Fri, 19 Feb 2016 17:12:22 -0800 Subject: [PATCH] Add windowStack.length --- src/js/ui/windowstack.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/ui/windowstack.js b/src/js/ui/windowstack.js index ab16f258..2d0c61b6 100644 --- a/src/js/ui/windowstack.js +++ b/src/js/ui/windowstack.js @@ -110,6 +110,10 @@ WindowStack.prototype.each = function(callback) { } }; +WindowStack.prototype.length = function() { + return this._items.length; +}; + WindowStack.prototype.emitHide = function(windowId) { var wind = this.get(windowId); if (wind !== this.top()) { return; }