Skip to content

destroyWith in ns.Model#149

Merged
yanann11 merged 3 commits intomasterfrom
destroy-with
Aug 26, 2013
Merged

destroyWith in ns.Model#149
yanann11 merged 3 commits intomasterfrom
destroy-with

Conversation

@yanann11
Copy link
Contributor

No description provided.

@edoroshenko
Copy link
Contributor

Договорились голосом, что делаем по-другому. У модели будет метод destroyWith, который на входе получает модель и подписывается на её destroy

src/ns.model.js Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это сокрытие ошибки. Либо не проверяй, либо кидай exception

src/ns.model.js Outdated
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

предлагаю так: "[ns.Model] " + this.id + " destroyWith expected ns.Model or Array of ns.Model in argument"

yanann11 added a commit that referenced this pull request Aug 26, 2013
@yanann11 yanann11 merged commit 1ab054f into master Aug 26, 2013
@yanann11 yanann11 deleted the destroy-with branch August 26, 2013 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants