SpringAll icon indicating copy to clipboard operation
SpringAll copied to clipboard

app.models.Photos is capypasta

Open danielgrippi opened this issue 14 years ago • 3 comments

app.models.Photos is just a copy and pasted app.models.Stream

could this be refactored into the stream being able to take a collection of photos, instead of duplicating all the logic.

@Raven24 could you please fix this?

danielgrippi avatar Apr 18 '12 01:04 danielgrippi

we just changed the fetching logic in app.models.Stream, so now they look a little different; however, that was just a refactor, and both models still should be the same thing.

danielgrippi avatar Apr 18 '12 02:04 danielgrippi

we refactored some more stuff in the stream, functionality should be the same

danielgrippi avatar Apr 18 '12 04:04 danielgrippi

i believe the next thing we want to do here is collapse the stream and photos view (notice how they're basically the same?).

I'm not sure... after having looked at the way you reduced stream_view.js and photos_view.js, the only parts that remain are those that really are different.

Raven24 avatar Apr 23 '12 20:04 Raven24