Commit dc2c93597bce143ea65223e2b93d1f59f4a49076

Authored by shallaa ago
1 parent 3d269059f1
Exists in master

mixin을 좀더 세분화하여 처리하는 것으로..

Showing 1 changed file with 14 additions and 8 deletions Side-by-side Diff

app/core/component-mixin.js View file @ dc2c935
1 1 module.exports = {
2   - componentDidMount: function() {
3   - this.getBackboneCollections().forEach(function(collection) {
4   - collection.on('add remove change', this.forceUpdate.bind(this, null));
5   - }, this);
  2 + componentDidMount: function () {
  3 + // TODO: 기본적인 초기 셋팅
  4 + // listenTo, ...
  5 +
  6 + //this.getBackboneCollections().forEach(function (collection) {
  7 + // collection.on('add remove change', this.forceUpdate.bind(this, null));
  8 + //}, this);
6 9 },
7   - componentWillUnmount: function() {
8   - this.getBackboneCollections().forEach(function(collection) {
9   - collection.off(null, null, this);
10   - }, this);
  10 + componentWillUnmount: function () {
  11 + // TODO: 기본적인 삭제
  12 + // remove, ...
  13 +
  14 + //this.getBackboneCollections().forEach(function (collection) {
  15 + // collection.off(null, null, this);
  16 + //}, this);
11 17 }
12 18 };