Fix ol.inherits docs
Merge pull request #2627 from elemoine/inherits

Fix ol.inherits docs