Leaflet/spec
Daniel Ritz 0af11b064e Fix attribution text not removed when Layer is removed from map
Symptom: Switching between layers with different attributions does
not remove the attribution from the previously selected layer.

Control.Attribution keeps track of its attributions with a counter for
each text. The problem described in #4285 is that each time the layer
is added to the map, the counter is increased by two. It's because
Layer calls Control.Attribution.addAttribution() twice, once from
addLayer() and the second time via the whenReady() callback _layerAdd().
This was not caught by the tests since the callback was never fired
(missing map.setView() call).

Fixes #4285
2016-03-01 13:46:40 +01:00
..
suites Fix attribution text not removed when Layer is removed from map 2016-03-01 13:46:40 +01:00
.eslintrc enforce indentation in specs 2015-09-25 13:55:37 +03:00
after.js
expect.js
index.html Canvas events fixes (fix #3915) 2015-10-09 18:28:35 +02:00
karma.conf.js Remove browserNoActivityTimeout from karma config 2015-03-07 23:12:15 +01:00
sinon.js
spec.hintrc.js