Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  Fixes #21 Switch out hotgraphic for a narrative when screensize isn't large
  • Loading branch information
darylhedley committed Jan 28, 2014
2 parents 42202da + 2feeb44 commit c663208
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/adapt-contrib-hotgraphic.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ define(function(require) {
this.listenTo(Adapt, 'remove', this.remove);
this.listenTo(this.model, 'change:_isVisible', this.toggleVisibility);
this.preRender();
if (Adapt.device.screenSize!='small') {
if (Adapt.device.screenSize=='large') {
this.render();
} else {
this.reRender();
Expand Down Expand Up @@ -46,7 +46,7 @@ define(function(require) {
},

reRender: function() {
if (Adapt.device.screenSize == 'small') {
if (Adapt.device.screenSize != 'large') {
this.replaceWithNarrative();
}
},
Expand Down

0 comments on commit c663208

Please sign in to comment.