forked from 0x2620/oxjs
rather use ''.slice than ''.substr
This commit is contained in:
parent
f990f3b857
commit
1608664bb6
20 changed files with 69 additions and 71 deletions
|
|
@ -774,7 +774,7 @@ Ox.ListMap = function(options, self) {
|
|||
country = Ox.getCountryByGeoname(place.geoname);
|
||||
place.countryCode = country ? country.code : '';
|
||||
if (!self.isAsync) {
|
||||
place.id = self.selectedPlace.substr(1); // fixme: safe?
|
||||
place.id = self.selectedPlace.slice(1); // fixme: safe?
|
||||
self.selectedPlace = place.id;
|
||||
self.options.places.push(place);
|
||||
self.$list.options({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue