Rename areStatesEqual to areObjectsEqual and make it more comprehensive and accurate.

Этот коммит содержится в:
JoramWilander
2015-11-12 11:19:59 -05:00
родитель 13a251a5ee
Коммит 50815f9be7
28 изменённых файлов: 138 добавлений и 47 удалений

Просмотреть файл

@@ -63,7 +63,7 @@ export default class ChannelHeader extends React.Component {
}
onListenerChange() {
const newState = this.getStateFromStores();
if (!Utils.areStatesEqual(newState, this.state)) {
if (!Utils.areObjectsEqual(newState, this.state)) {
this.setState(newState);
}
$('.channel-header__info .description').popover({placement: 'bottom', trigger: 'hover', html: true, delay: {show: 500, hide: 500}});