Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Correct lint warnings.

  • Loading branch information...
commit db60213c2a8570702de1c82f4e3582ab3130d6b7 1 parent 8533c70
@ericf authored
View
8 public/js/app.js
@@ -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;
},
View
2  public/js/models/photo.js
@@ -81,7 +81,7 @@ Photo = Y.Base.create('photo', Y.Model, [Y.ModelSync.YQL], {
delete data.pageUrl;
return data;
- },
+ }
}, {
View
2  public/js/views/lightbox.js
@@ -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');
Please sign in to comment.
Something went wrong with that request. Please try again.