Skip to content

Commit 09ce6ae

Browse files
committed
Merge pull request processing-js#39 from jbuck/t1923
Bug 1923 - Ignore image type in loadImage
2 parents 1cacb45 + 970d953 commit 09ce6ae

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

processing.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15075,10 +15075,8 @@
1507515075
* @see background
1507615076
*/
1507715077
p.loadImage = function(file, type, callback) {
15078-
// if type is specified add it with a . to file to make the filename
15079-
if (type) {
15080-
file = file + "." + type;
15081-
}
15078+
// if type is specified, we just ignore it
15079+
1508215080
var pimg;
1508315081
// if image is in the preloader cache return a new PImage
1508415082
if (curSketch.imageCache.images[file]) {

0 commit comments

Comments
 (0)