Skip to content

Commit

Permalink
Correct lint warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericf committed Dec 5, 2012
1 parent 8533c70 commit db60213
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions public/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,17 @@ PhotosNearMe = Y.Base.create('photosNearMe', Y.App, [], {
};

// Update the title of the browser window.
doc && (doc.title = this.titleTemplate({place: placeData}));
if (doc) {
doc.title = this.titleTemplate({place: placeData});
}

content = this.headerTemplate({place: placeData});

container.removeClass('loading').one('#header').setHTML(content);
// Delay adding `located` class so the CSS transitions run.
place.isNew() || Y.later(1, container, 'addClass', 'located');
if (!place.isNew()) {
Y.later(0, container, 'addClass', 'located');
}

return this;
},
Expand Down
2 changes: 1 addition & 1 deletion public/js/models/photo.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Photo = Y.Base.create('photo', Y.Model, [Y.ModelSync.YQL], {
delete data.pageUrl;

return data;
},
}

}, {

Expand Down
2 changes: 1 addition & 1 deletion public/js/views/lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ LightboxView = Y.Base.create('lightboxView', Y.View, [], {

toggleInfo: function (e) {
var infoNode = this.infoNode,
visible = !(infoNode.getStyle('display') === 'none');
visible = infoNode.getStyle('display') !== 'none';

if (visible) {
infoNode.hide('fadeOut');
Expand Down

0 comments on commit db60213

Please sign in to comment.