Use ol.inherits instead of goog.inherits

This commit is contained in:
Frederic Junod
2016-04-07 16:26:11 +02:00
parent 072728b083
commit e289bfbb7d
166 changed files with 448 additions and 452 deletions
+4 -3
View File
@@ -261,9 +261,10 @@ ol.WEBGL_EXTENSIONS; // value is set in `ol.has`
* @function
* @api
*/
ol.inherits =
goog.inherits;
// note that the newline above is necessary to satisfy the linter
ol.inherits = function(childCtor, parentCtor) {
childCtor.prototype = Object.create(parentCtor.prototype);
childCtor.prototype.constructor = childCtor;
};
/**