diff options
author | Charlie Birks <admin@daftgames.net> | 2014-06-05 20:05:35 +0100 |
---|---|---|
committer | Charlie Birks <admin@daftgames.net> | 2014-06-05 20:05:35 +0100 |
commit | 34d974d84bd01a96d1364d73f98554adcf0426fe (patch) | |
tree | 3a035bc6f976d73f7fc19899e747ebe9d43c25c2 /src | |
parent | 82bac79df4493c6c0acb9feb9170094b816ff508 (diff) |
changes from review
Diffstat (limited to 'src')
-rw-r--r-- | src/library_browser.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library_browser.js b/src/library_browser.js index db1695da..0b590342 100644 --- a/src/library_browser.js +++ b/src/library_browser.js @@ -1178,7 +1178,7 @@ mergeInto(LibraryManager.library, { }, emscripten_get_preloaded_image_data: function(path, w, h) { - if (typeof path == "number") { + if (typeof path === "number") { path = Pointer_stringify(path); } @@ -1194,14 +1194,14 @@ mergeInto(LibraryManager.library, { {{{ makeSetValue('h', '0', 'canvas.height', 'i32') }}}; return buf; } - + return 0; }, emscripten_get_preloaded_image_data_from_FILE__deps: ['emscripten_get_preloaded_image_data'], emscripten_get_preloaded_image_data_from_FILE: function(file, w, h) { var stream = FS.getStreamFromPtr(file); - if(stream) { + if (stream) { return _emscripten_get_preloaded_image_data(stream.path, w, h); } |