Making ol.proj.Projection subclasses exportable

Because ol.proj.EPSG4326 et al. extend ol.proj.Projection which has exportable methods, these constructors need to be exportable as well (e.g. so ol.proj.EPSG4326.prototype is defined in exports.js when calling goog.exportProperty on getCode etc.).  If we really don't want these to be exportable, they should be removed or made private (and named like ol.proj.EPSG4326_) for internal use only.
This commit is contained in:
Tim Schaub
2014-04-28 20:53:12 -06:00
parent ec6aa21912
commit d552dfd96d
3 changed files with 5 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@ goog.require('ol.proj.Units');
* @constructor
* @extends {ol.proj.Projection}
* @param {string} code Code.
* @todo api
*/
ol.proj.EPSG3857 = function(code) {
goog.base(this, {