From cf5825d1fa3a223c4504ce0e7395a649bf6e8144 Mon Sep 17 00:00:00 2001 From: thejohnhoffer Date: Fri, 4 Nov 2016 10:03:04 -0400 Subject: [PATCH] better underscores in preload term handling --- src/tiledimage.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tiledimage.js b/src/tiledimage.js index d9067229..f6337c59 100644 --- a/src/tiledimage.js +++ b/src/tiledimage.js @@ -163,10 +163,13 @@ $.TiledImage = function( options ) { crossOriginPolicy: $.DEFAULT_SETTINGS.crossOriginPolicy, placeholderFillStyle: $.DEFAULT_SETTINGS.placeholderFillStyle, opacity: $.DEFAULT_SETTINGS.opacity, - _preload: $.DEFAULT_SETTINGS.preload, + preload: $.DEFAULT_SETTINGS.preload, compositeOperation: $.DEFAULT_SETTINGS.compositeOperation }, options ); + this._preload = this.preload; + delete this.preload; + this._fullyLoaded = false; this._xSpring = new $.Spring({