Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
the pendingRequests property needs to be initialized in the constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre GIRAUD committed Mar 28, 2012
1 parent 9e7e31a commit 07e3219
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion core/src/script/CGXP/plugins/Editing.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,13 @@ cgxp.plugins.Editing = Ext.extend(gxp.plugins.Tool, {
*/
pendingRequests: null,

/** private: method[constructor]
*/
constructor: function(config) {
cgxp.plugins.Editing.superclass.constructor.apply(this, arguments);
this.pendingRequests = [];
},

/** private: method[init]
*/
init: function() {
Expand All @@ -130,7 +137,6 @@ cgxp.plugins.Editing = Ext.extend(gxp.plugins.Tool, {
this.map = this.target.mapPanel.map;
this.addEditingLayer();
this.createGetFeatureControl();
this.pendingRequests = [];

this.newFeatureBtn = this.createNewFeatureBtn();
var win = this.win = new Ext.Window({
Expand Down

0 comments on commit 07e3219

Please sign in to comment.