fixed updating steps when sql changes in windshaft provider

This commit is contained in:
javi 2014-06-10 17:44:56 +02:00
parent 73c546e192
commit 175b25c7b8
4 changed files with 14 additions and 2 deletions

2
NEWS
View File

@ -1,6 +1,8 @@
2.4.01 2.4.01
- fixed rectangle anchor and size #42 - fixed rectangle anchor and size #42
- fixed on method in torque.Event - fixed on method in torque.Event
- fixed problem updating steps when sql change in windshaft provider
2.4.00 - May/22/2014 2.4.00 - May/22/2014
- Changed date parsing for windshaft provider - Changed date parsing for windshaft provider
- Optimized tile loading - Optimized tile loading

View File

@ -39,6 +39,16 @@
}; };
exports.torque.Event = Event; exports.torque.Event = Event;
exports.torque.extend = function(a, b) {
for (var k in b) {
a[k] = b[k];
}
return a
}
exports.torque.clone = function(a) {
return exports.torque.extend({}, a);
}
// types // types

View File

@ -30,7 +30,7 @@ function GMapsTorqueLayer(options) {
if(self.key !== k) { if(self.key !== k) {
self.setKey(k); self.setKey(k);
} }
}, this.options); }, torque.clone(this.options));
this.play = this.animator.start.bind(this.animator); this.play = this.animator.start.bind(this.animator);
this.stop = this.animator.stop.bind(this.animator); this.stop = this.animator.stop.bind(this.animator);

View File

@ -36,7 +36,7 @@ L.TorqueLayer = L.CanvasLayer.extend({
if(self.key !== k) { if(self.key !== k) {
self.setKey(k, { direct: true }); self.setKey(k, { direct: true });
} }
}, options); }, torque.clone(options));
this.play = this.animator.start.bind(this.animator); this.play = this.animator.start.bind(this.animator);
this.stop = this.animator.stop.bind(this.animator); this.stop = this.animator.stop.bind(this.animator);