diff --git a/app/scripts/components/album.jsx b/app/scripts/components/album.jsx index 34a57c1..e0252b8 100644 --- a/app/scripts/components/album.jsx +++ b/app/scripts/components/album.jsx @@ -95,7 +95,6 @@ class AlbumPage extends React.Component { // If the admin updates the cache for this album, this triggers // rerendering so that the new album info gets drawn. album.on('change', function (model, val) { - console.log('Album has changed.'); this.setState({album: model}); }, this); } @@ -242,6 +241,10 @@ YearAlbumPage.propTypes = { * Component that displays a week album (like 2014/12-31/) */ class WeekAlbumPage extends React.Component { + constructor() { + this.onThumbSelect = this.onThumbSelect.bind(this); + } + render() { var a = this.props.album; var user = this.props.user; diff --git a/app/scripts/components/site.jsx b/app/scripts/components/site.jsx index 2e7f358..5049380 100644 --- a/app/scripts/components/site.jsx +++ b/app/scripts/components/site.jsx @@ -202,6 +202,9 @@ Site.SearchButton = SearchButton; * Wrapper around Bootstrap CSS icons */ class GlyphIcon extends React.Component { + constructor() { + this.click = this.click.bind(this); + } render() { return( diff --git a/app/scripts/components/thumb.jsx b/app/scripts/components/thumb.jsx index 5ae57cf..796f11d 100644 --- a/app/scripts/components/thumb.jsx +++ b/app/scripts/components/thumb.jsx @@ -52,6 +52,10 @@ Thumb.List = List; * Component that displays a thumbnail of either an album or an image. */ class Nail extends React.Component { + constructor() { + this.onSelect = this.onSelect.bind(this); + } + render() { var item = this.props.item; if (!item) {