Commit Graph

223 Commits

Author SHA1 Message Date
Iván Sánchez Ortega
dde24042d2 Implement L.Browser.edge 2016-01-13 14:29:46 +01:00
danzel
c6d8587753 Don't use maxTouchPoints detection in IE11+ (or edge) either, matching our msPointer detection. 2015-09-14 13:18:43 +12:00
Iván Sánchez Ortega
afa0d1d87b Change L.Browser.msPointer detection code to MS recommendation 2015-07-28 19:41:09 +02:00
Yohan Boniface
74018f284e Add nonBubblingEvents option (fix #3604) 2015-07-09 14:12:12 +02:00
Iván Sánchez Ortega
ea680ce21a Detect Firefox for Android as L.Browser.mobile 2015-04-30 13:20:19 +02:00
Mstislav Zhivodkov
b6b4c07375 add opera12 to any3d 2015-04-07 10:43:12 +06:00
Mstislav Zhivodkov
4b757fe2cd change translate3d detection 2015-04-06 18:05:11 +06:00
Vladimir Agafonkin
954ef1cc10 add indent eslint rule and fix some whitespace 2015-03-01 12:01:28 +02:00
Jan Pieter Waagmeester
a7d7bedda7 Add a space to make comments look consistant
And now back to real work.
2015-02-27 15:15:16 +01:00
Asko Kauppi
a7fc9c9a5f two small typos I spotted during code read-through 2015-02-08 17:06:16 +02:00
Vladimir Agafonkin
aeb5083170 complete the switch to ESLint 2015-01-28 19:33:45 +02:00
Vladimir Agafonkin
e749d1915b add ESLint rules; various code style fixes 2015-01-28 17:27:31 +02:00
John Firebaugh
ef96884021 Ensure parent init hooks are called (fixes #2545) 2014-11-12 14:49:46 -08:00
Vladimir Agafonkin
40376dc3be simpler retina detection fallback, close #2258 2014-11-04 13:46:53 +02:00
Fabian Zeindl
b08e2f7a3d removed 1 unnecessary array-creation 2014-06-17 14:34:16 +02:00
Vladimir Agafonkin
0aeca1a4e7 remove element argument in requestAnimFrame 2014-05-26 23:21:33 +03:00
Vladimir Agafonkin
fcc9f41df4 fix whitespace 2014-02-24 16:00:15 +02:00
Vladimir Agafonkin
431e775893 Merge pull request #2370 from cusspvz/patch-1
Events.js: Check if array exists before loop
2014-02-24 15:59:32 +02:00
danzel
595e8d2537 Allow stacking propagations. L.MarkerCluster uses this as follows:
Marker propagates to FeatureGroup.
That FeatureGroup propagates to MarkerClusterGroup.
Then users add listeners on the MarkerClusterGroup
2014-01-29 14:43:52 +13:00
Vladimir Agafonkin
187d9c2368 move Safari hacks to CSS, do not optimize contrast in Chrome 2014-01-27 18:18:04 +02:00
Vladimir Agafonkin
cf35d69655 size-based tile layer HW hack; use top/left for tiles everywhere 2014-01-27 17:54:12 +02:00
José Moreira
92890bed12 Events.js: Check if array exists before loop 2014-01-13 12:31:42 +00:00
Vladimir Agafonkin
deec9d54be don't bind on each move in IE7-8 2013-12-21 09:36:53 +01:00
Vladimir Agafonkin
47783821f7 rename limitExecByInterval to throttle, better implementation 2013-12-21 01:49:25 -05:00
Vladimir Agafonkin
b7c03c8a99 add more comments to Util, clean up 2013-12-20 22:47:09 -05:00
Vladimir Agafonkin
d0051500c3 comment the Events code better 2013-12-20 17:26:27 -05:00
Vladimir Agafonkin
dcb6f74ef5 ensure execution order in events, slightly bulkier structure 2013-12-19 18:35:05 -05:00
Vladimir Agafonkin
70e3500716 rename _leaflet_events to _events 2013-12-19 17:20:04 -05:00
Vladimir Agafonkin
88b27fe832 clean up events code a bit 2013-12-19 17:14:53 -05:00
Vladimir Agafonkin
1dfec0a021 shortcut hasEventListeners as listens 2013-12-19 17:09:32 -05:00
Vladimir Agafonkin
d4fe4cb804 simplify events code, better footprint, speedup removal 2x 2013-12-19 17:05:36 -05:00
Vladimir Agafonkin
be67170869 simpler stamp without closure 2013-12-19 00:20:43 -05:00
Vladimir Agafonkin
6d1142a978 only propagate events if given true to fire, #2311 2013-12-18 23:23:22 -05:00
Vladimir Agafonkin
ce4a031d40 faster on/off, add private non-sugary versions 2013-12-18 23:07:39 -05:00
Vladimir Agafonkin
f7198e71dc fix build 2013-12-18 22:22:40 -05:00
Vladimir Agafonkin
9f09f50812 remove Util invokeEach since on/off are hot functions 2013-12-18 22:05:47 -05:00
Vladimir Agafonkin
f631513acc fast event propagation (10x FeatureGroup layer add speedup) 2013-12-17 17:08:21 -05:00
Vladimir Agafonkin
1cc9ecdded clean up Class.js 2013-12-17 15:53:52 -05:00
Vladimir Agafonkin
4a142af76d make Evented longer names aliases instead of on/off 2013-12-17 14:06:54 -05:00
Vladimir Agafonkin
b22715a9e5 replace L.Mixin.Events with L.Evented class (bw-compat) 2013-12-17 13:55:39 -05:00
Vladimir Agafonkin
d0e72934d7 make instantiation faster by avoiding callInitHooks where not needed 2013-12-17 13:27:10 -05:00
Vladimir Agafonkin
e44b8d944e use lighter extend in setOptions, simplify extend 2013-12-16 18:37:06 -05:00
John Firebaugh
f2b34cd012 Use L.Util.create for class extension 2013-12-15 14:35:02 -08:00
John Firebaugh
ad9d0f8c7f Make options object prototype-inherited
Fixes #2294
2013-12-15 13:30:30 -08:00
danzel
27cd306e6b Change touch detection check for ontouchstart in window like modernizr does. Fixes chrome touch emulation. Fixes #2277 2013-12-12 09:30:11 +13:00
Vladimir Agafonkin
5b77ec33de optimize fire event in V8 when there are no context listeners 2013-12-04 18:01:52 +02:00
Vladimir Agafonkin
57a0866bcf set empty options object if no options given, fixes build 2013-12-04 18:00:37 +02:00
Vladimir Agafonkin
3a0b1bf1d5 don't overwrite default options if not specified (faster construction) 2013-12-04 17:38:55 +02:00
Vladimir Agafonkin
3d7520ff27 clean up Browser.js, simplify old FF touch detection 2013-12-03 18:47:43 +02:00
Vladimir Agafonkin
a1828f3f6a change wrapNum signature, clean up 2013-12-02 19:18:07 +02:00