Script and makefile adjustments for updating extlib
[larjonas-mediagoblin.git] / extlib / leaflet / src / dom / transition / Transition.js
blobccf4857270a6752c538dd156d6a7b4237301a032
1 L.Transition = L.Class.extend({
2 includes: L.Mixin.Events,
4 statics: {
5 CUSTOM_PROPS_SETTERS: {
6 position: L.DomUtil.setPosition
7 //TODO transform custom attr
8 },
10 implemented: function() {
11 return L.Transition.NATIVE || L.Transition.TIMER;
15 options: {
16 easing: 'ease',
17 duration: 0.5
20 _setProperty: function(prop, value) {
21 var setters = L.Transition.CUSTOM_PROPS_SETTERS;
22 if (prop in setters) {
23 setters[prop](this._el, value);
24 } else {
25 this._el.style[prop] = value;
28 });