Skip to content
Browse files

Removed unused `addPhoto()` and `removePhoto()` methods from GridView.

  • Loading branch information...
1 parent 53cb899 commit 3d8a41dc10d2893da3a9f0348b0cfc069ff589e1 @ericf committed
Showing with 0 additions and 22 deletions.
  1. +0 −22 public/js/views/grid.js
View
22 public/js/views/grid.js
@@ -13,8 +13,6 @@ Y.GridView = Y.Base.create('gridView', Y.View, [], {
var photos = this.get('modelList');
photos.after('reset', this.render, this);
- photos.after('add', this.addPhoto, this);
- photos.after('remove', this.removePhoto, this);
this.loadingNode = null;
this._maxKnownHeight = 0;
@@ -51,26 +49,6 @@ Y.GridView = Y.Base.create('gridView', Y.View, [], {
return this;
},
- addPhoto: function (e) {
- var container = this.get('container'),
- photo = e.model,
- list = container.one('ul'),
- content;
-
- content = this.photoTemplate({
- clientId: photo.get('clientId'),
- pageUrl : photo.get('pageUrl'),
- thumbUrl: photo.get('thumbUrl')
- });
-
- this.loadingNode.hide();
- list.insert(content, list.all('.photo').item(e.index));
- },
-
- removePhoto: function (e) {
- this.get('container').all('.photo').splice(e.index, 1);
- },
-
more: function (e) {
var viewportBottom = Y.DOM.viewportRegion().bottom,
maxKnowHeight = this._maxKnownHeight,

0 comments on commit 3d8a41d

Please sign in to comment.
Something went wrong with that request. Please try again.