Skip to content

Commit

Permalink
Add windowStack.length
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt committed Feb 20, 2016
1 parent df25de3 commit 2022b6c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/ui/windowstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -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; }
Expand Down

0 comments on commit 2022b6c

Please sign in to comment.