Browse Source

Merge pull request #13 from jbalsas/ie_support

Add IE support (Fix #12)
pull/14/head
James Cryer 11 years ago
parent
commit
0d68667b29
  1. 6
      demoassets/main.js
  2. 5
      resemble.js

6
demoassets/main.js

@ -143,7 +143,11 @@ $(function(){
$('#dropzone2').html('<img src="demoassets/People2.jpg"/>'); $('#dropzone2').html('<img src="demoassets/People2.jpg"/>');
$.when(done, dtwo).done(function(file, file1){ $.when(done, dtwo).done(function(file, file1){
resembleControl = resemble(file).compareTo(file1).onComplete(onComplete); if (typeof FileReader === 'undefined') {
resembleControl = resemble('demoassets/People.jpg').compareTo('demoassets/People2.jpg').onComplete(onComplete);
} else {
resembleControl = resemble(file).compareTo(file1).onComplete(onComplete);
}
}); });
return false; return false;

5
resemble.js

@ -271,8 +271,9 @@ URL: https://github.com/Huddle/Resemble.js
var d; var d;
var a; var a;
if(typeof data[offset] !== 'undefined'){ r = data[offset];
r = data[offset];
if(typeof r !== 'undefined'){
g = data[offset+1]; g = data[offset+1];
b = data[offset+2]; b = data[offset+2];
a = data[offset+3]; a = data[offset+3];

Loading…
Cancel
Save