Skip to content

Commit

Permalink
App.Element.isVisible bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
theshock committed Apr 25, 2013
1 parent ff3d58c commit ddfa33a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/App/Element.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ declare( 'LibCanvas.App.Element', {
},

isVisible: function () {
return !this.settings.get('hidden') || this.opacity > this.opacityThreshold;
return !this.settings.get('hidden') && this.opacity > this.opacityThreshold;
},

onUpdate: function (time) {
Expand Down
2 changes: 1 addition & 1 deletion libcanvas-full-compiled.js
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ declare( 'LibCanvas.App.Element', {
},

isVisible: function () {
return !this.settings.get('hidden') || this.opacity > this.opacityThreshold;
return !this.settings.get('hidden') && this.opacity > this.opacityThreshold;
},

onUpdate: function (time) {
Expand Down

0 comments on commit ddfa33a

Please sign in to comment.