Skip to content

Квашнина Ульяна#50

Open
Uliana1997 wants to merge 5 commits intourfu-2016:masterfrom
Uliana1997:master
Open

Квашнина Ульяна#50
Uliana1997 wants to merge 5 commits intourfu-2016:masterfrom
Uliana1997:master

Conversation

@Uliana1997
Copy link
Copy Markdown

No description provided.

@honest-hrundel
Copy link
Copy Markdown

🍅 Пройдено тестов 8 из 9

@honest-hrundel
Copy link
Copy Markdown

🍅 Пройдено тестов 8 из 9

@honest-hrundel
Copy link
Copy Markdown

🍅 Пройдено тестов 8 из 9

@honest-hrundel
Copy link
Copy Markdown

🍅 Пройдено тестов 8 из 9

@honest-hrundel
Copy link
Copy Markdown

🍏 Пройдено тестов 9 из 9

console.info(event);
var emitEvent = [];
var splitEvent = event.split('.');
var flag = 1;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Непонятно из названия, для чего конкретно этот флаг.

*/
off: function (event, context) {
console.info(event, context);
if (typeof (event) === 'string' && typeof (context) === 'object') {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Почему ты делаешь проверку именно так?
Что будет, если context будет объектом, но не валидным?

console.info(event, context);
if (typeof (event) === 'string' && typeof (context) === 'object') {
students = students.filter(function (subscriber) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Лишняя строка

var splitEvent = event.split('.');
var flag = 1;

for (var i = 0; i < splitEvent.length; i++) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Может, стоит попробовать переписать этот блок поаккуратнее? Я сходу не могу понять, что у тебя тут происходит

@onufrienko
Copy link
Copy Markdown

🍅

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.

3 participants