Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
# Conflicts:
#	package.json
  • Loading branch information
SonoIo committed Oct 31, 2016
2 parents e2a1dde + 74403c1 commit 70d69a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "backbone.viewstack",
"version": "2.1.1",
"version": "2.1.3",
"homepage": "https://github.com/vash15/backbone.viewstack",
"authors": [
"Michele Belluco <[email protected]>",
Expand Down
5 changes: 3 additions & 2 deletions lib/viewstack.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,10 @@
},

getFirstInstanceFromClassType: function getFirstInstanceFromClassType(classType) {
return _.find(this._stack, function (aView) {
return aView instanceof classType;
var r = _.find(this._stack, function (aItem) {
return _.isObject(aItem) && aItem.view instanceof classType;
});
return r ? r.view : null;
},

getZIndex: function () {
Expand Down

0 comments on commit 70d69a3

Please sign in to comment.