From 5ebb9686ce117d6a4d322964724fe4483fb81073 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Fri, 27 Jun 2014 10:16:53 +0200 Subject: [PATCH] ol.Object doc improvement --- src/ol/object.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ol/object.js b/src/ol/object.js index 797330ba6a..756b8b2355 100644 --- a/src/ol/object.js +++ b/src/ol/object.js @@ -240,10 +240,11 @@ ol.Object.getSetterName = function(key) { /** * The bindTo method allows you to set up a two-way binding between a - * `source` and `target` object. The method returns an - * ol.ObjectAccessor with a transform method that lets you transform - * values on the way from the source to the target and on the way back. - * + * `source` and `target` object. The method returns an object with a + * `transform` method that you can use to provide `from` and `to` + * functions to transform values on the way from the source to the + * target and on the way back. +* * For example, if you had two map views (sourceView and targetView) * and you wanted the target view to have double the resolution of the * source view, you could transform the resolution on the way to and