Skip to content

Commit d5c6b75

Browse files
committed
Removed the reference to new Image() #2
1 parent ff996c4 commit d5c6b75

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build/ExportMap.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/ExportMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ OpenLayers.Control.ExportMap = OpenLayers.Class(OpenLayers.Control, {
135135
* @returns {undefined}
136136
*/
137137
loadImage: function (resolve, url) {
138-
var image = new Image();
138+
var image = document.createElement('img');
139139
var that = this;
140140

141141
image.onload = function () {

0 commit comments

Comments
 (0)