@kizmann/pico-js 0.4.8 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/pico-js.js +1 -1
- package/dist/pico-js.js.map +1 -1
- package/package.json +1 -1
- package/src/library/map.js +3 -0
- package/src/utility/any.js +8 -0
package/package.json
CHANGED
package/src/library/map.js
CHANGED
@@ -417,6 +417,9 @@ export default class Map
|
|
417
417
|
item.marker.addListener('click', () => this.toggleInfo(key));
|
418
418
|
item.info.addListener('closeclick', () => this.closeInfo(key));
|
419
419
|
|
420
|
+
// Dom change event
|
421
|
+
item.info.addListener('domready', () => Event.fire('MapsDomReady'));
|
422
|
+
|
420
423
|
Obj.set(this.markers, key, item);
|
421
424
|
|
422
425
|
return Obj.get(this.markers, key);
|
package/src/utility/any.js
CHANGED
@@ -226,8 +226,16 @@ export class Any
|
|
226
226
|
throttle = ref();
|
227
227
|
}
|
228
228
|
|
229
|
+
let timer = null;
|
230
|
+
|
229
231
|
return (...args) => {
|
230
232
|
|
233
|
+
clearTimeout(timer);
|
234
|
+
|
235
|
+
timer = setTimeout(() => {
|
236
|
+
throttle = null;
|
237
|
+
}, delay);
|
238
|
+
|
231
239
|
if ( throttle === true ) {
|
232
240
|
return;
|
233
241
|
}
|