-
Notifications
You must be signed in to change notification settings - Fork 34
TILES-7536 fix show copyright message #590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| @@ -1,6 +1,6 @@ | |||
| { | |||
| "name": "2gis-maps", | |||
| "version": "4.0.4", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
и тут
| handleTileError.bind(this)(); | ||
| } | ||
| }); | ||
| }.bind(this)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- а зачем вообще создавать 2 функции, когда достаточно одной, что-то типа validateKeyResponse
- давай валидацию перенесем внутрь класса ApiKeyValidator, судя по его названию, этим должен он заниматься, но почему-то сама валидация написана тут
| }, | ||
|
|
||
| validateKeyResponse: function(map) { | ||
| this.map = map; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Странно же в методе валидации запоминать инстанс карты, это надо сделать еще пои инициализации.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Да, согласен. Тут даже всю сущность смысла нет передавать достаточно только контейнера. Поправил
kalyanov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

No description provided.