code: function() {
          for (var i=0, len=this.layers.length; i<len; i++) {
              var layer = this.layers[i];
              this.setLayerZIndex(layer, i);
          }
      }
docs: Method: resetLayersZIndex
  Reset each layer's z-index based on layer's array index