Commit c16efde6 authored by Michael Adair's avatar Michael Adair
Browse files

re #56: callbacks should be called only after projection code has been initialized

parent ede6ceb7
Loading
Loading
Loading
Loading
+6 −6
Original line number Diff line number Diff line
@@ -636,12 +636,6 @@ Proj4js.Proj = Proj4js.Class({
    defsLoaded: function() {
      this.parseDefs();
      this.loadProjCode(this.projName);
      if( this.queue ) {
        var item;
        while( (item = this.queue.shift()) ) {
          item.call( this, this );
        }
      }
    },
    
/**
@@ -735,6 +729,12 @@ Proj4js.Proj = Proj4js.Class({
      Proj4js.extend(this, Proj4js.Proj[this.projName]);
      this.init();
      this.readyToUse = true;
      if( this.queue ) {
        var item;
        while( (item = this.queue.shift()) ) {
          item.call( this, this );
        }
      }
  },

/**