From d3d41c8217f78609bbb8c0fe5543ca5ebc6eaacc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 26 Aug 2014 10:13:10 +0200 Subject: [PATCH] Fix ol.inherits docs --- src/ol/ol.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ol/ol.js b/src/ol/ol.js index de2a929f3c..5f2b0bcfa0 100644 --- a/src/ol/ol.js +++ b/src/ol/ol.js @@ -218,7 +218,8 @@ ol.ZOOMSLIDER_ANIMATION_DURATION = 200; * ParentClass.prototype.foo = function(a) { } * * function ChildClass(a, b, c) { - * goog.base(this, a, b); + * // Call parent constructor + * ParentClass.call(this, a, b); * } * ol.inherits(ChildClass, ParentClass); * @@ -229,7 +230,7 @@ ol.ZOOMSLIDER_ANIMATION_DURATION = 200; * follows: * * ChildClass.prototype.foo = function(a) { - * ChildClass.superClass_.foo.call(this, a); + * ChildClass.base(this, 'foo', a); * // Other code here. * }; *