Fix ol.inherits docs

This commit is contained in:
Éric Lemoine
2014-08-26 10:13:10 +02:00
parent b83e639301
commit d3d41c8217
+3 -2
View File
@@ -218,7 +218,8 @@ ol.ZOOMSLIDER_ANIMATION_DURATION = 200;
* ParentClass.prototype.foo = function(a) { } * ParentClass.prototype.foo = function(a) { }
* *
* function ChildClass(a, b, c) { * function ChildClass(a, b, c) {
* goog.base(this, a, b); * // Call parent constructor
* ParentClass.call(this, a, b);
* } * }
* ol.inherits(ChildClass, ParentClass); * ol.inherits(ChildClass, ParentClass);
* *
@@ -229,7 +230,7 @@ ol.ZOOMSLIDER_ANIMATION_DURATION = 200;
* follows: * follows:
* *
* ChildClass.prototype.foo = function(a) { * ChildClass.prototype.foo = function(a) {
* ChildClass.superClass_.foo.call(this, a); * ChildClass.base(this, 'foo', a);
* // Other code here. * // Other code here.
* }; * };
* *