Skip to content

Commit

Permalink
Merge pull request #148 from mattmattmatt/windowstack-length
Browse files Browse the repository at this point in the history
Add windowStack.length
  • Loading branch information
Meiguro committed Feb 27, 2016
2 parents df25de3 + 2022b6c commit eb540c7
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 eb540c7

Please sign in to comment.