Remove 'valueAsNumber' property from ol.dom.Input

Use bindTo.transform functions instead
This commit is contained in:
Frederic Junod
2013-10-30 15:21:29 +01:00
parent bba1de2679
commit a0bea641d1
3 changed files with 16 additions and 53 deletions

View File

@@ -45,7 +45,8 @@ function bindInputs(layerid, layer) {
$.each(['opacity', 'hue', 'saturation', 'contrast', 'brightness'],
function(i, v) {
new ol.dom.Input($(layerid + ' .' + v)[0])
.bindTo('valueAsNumber', layer, v);
.bindTo('value', layer, v)
.transform(parseFloat, String);
}
);
}