Put PARSERS object into prototype too

This is to avoid the use of this.constructor that breaks advanced build
This commit is contained in:
Florent gravin
2014-10-03 09:23:13 +02:00
parent bea721349a
commit 47e182524f
4 changed files with 50 additions and 50 deletions
+5 -5
View File
@@ -103,7 +103,7 @@ ol.format.GML2.prototype.innerBoundaryIsParser_ =
goog.asserts.assert(node.localName == 'innerBoundaryIs');
var flatLinearRing = ol.xml.pushParseAndPop(
/** @type {Array.<number>|undefined} */ (undefined),
ol.format.GMLBase.RING_PARSERS, node, objectStack, this);
this.RING_PARSERS, node, objectStack, this);
if (goog.isDef(flatLinearRing)) {
var flatLinearRings = /** @type {Array.<Array.<number>>} */
(objectStack[objectStack.length - 1]);
@@ -125,7 +125,7 @@ ol.format.GML2.prototype.outerBoundaryIsParser_ =
goog.asserts.assert(node.localName == 'outerBoundaryIs');
var flatLinearRing = ol.xml.pushParseAndPop(
/** @type {Array.<number>|undefined} */ (undefined),
ol.format.GMLBase.RING_PARSERS, node, objectStack, this);
this.RING_PARSERS, node, objectStack, this);
if (goog.isDef(flatLinearRing)) {
var flatLinearRings = /** @type {Array.<Array.<number>>} */
(objectStack[objectStack.length - 1]);
@@ -141,7 +141,7 @@ ol.format.GML2.prototype.outerBoundaryIsParser_ =
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
* @private
*/
ol.format.GML2.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
ol.format.GML2.prototype.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
'http://www.opengis.net/gml' : {
'coordinates': ol.xml.makeReplacer(
ol.format.GML2.prototype.readFlatCoordinates_)
@@ -154,7 +154,7 @@ ol.format.GML2.GEOMETRY_FLAT_COORDINATES_PARSERS_ = {
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
* @private
*/
ol.format.GML2.FLAT_LINEAR_RINGS_PARSERS_ = {
ol.format.GML2.prototype.FLAT_LINEAR_RINGS_PARSERS_ = {
'http://www.opengis.net/gml' : {
'innerBoundaryIs': ol.format.GML2.prototype.innerBoundaryIsParser_,
'outerBoundaryIs': ol.format.GML2.prototype.outerBoundaryIsParser_
@@ -167,7 +167,7 @@ ol.format.GML2.FLAT_LINEAR_RINGS_PARSERS_ = {
* @type {Object.<string, Object.<string, ol.xml.Parser>>}
* @private
*/
ol.format.GML2.GEOMETRY_PARSERS_ = {
ol.format.GML2.prototype.GEOMETRY_PARSERS_ = {
'http://www.opengis.net/gml' : {
'Point': ol.xml.makeReplacer(ol.format.GMLBase.prototype.readPoint),
'MultiPoint': ol.xml.makeReplacer(