We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While running Moxie under android (4.0.3) I get the above error when doing this for example:
var fi=new mOxie.FileInput({ browse_button: 'mybutton', accept:'image.*' }); fi.addEventListener('change', function(e){ var fr=new mOxie.FileReader(); fr.onload=function(e){console.log('loaded');}; fr.readAsDataURL(this.files[0]); });
I replaced the event setup code in FileReader.read with this:
function removeEventListeners() { Basic.each(events, function(name) { if (fr.removeEventListener) fr.removeEventListener(name, reDispatch); else fr['on'+name]=null; }); if (fr.removeEventListener) fr.removeEventListener('loadend', removeEventListeners); else fr.onloadend=null; }
Basic.each(events, function(name) { if (fr.addEventListener) fr.addEventListener(name, reDispatch); else fr['on'+name]=reDispatch; }); if (fr.addEventListener) fr.addEventListener('loadend', removeEventListeners); else fr['onloadend']=removeEventListeners;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
While running Moxie under android (4.0.3) I get the above error when doing this for example:
var fi=new mOxie.FileInput({
browse_button: 'mybutton',
accept:'image.*'
});
fi.addEventListener('change', function(e){
var fr=new mOxie.FileReader();
fr.onload=function(e){console.log('loaded');};
fr.readAsDataURL(this.files[0]);
});
I replaced the event setup code in FileReader.read with this:
function removeEventListeners() {
Basic.each(events, function(name) {
if (fr.removeEventListener)
fr.removeEventListener(name, reDispatch);
else
fr['on'+name]=null;
});
if (fr.removeEventListener)
fr.removeEventListener('loadend', removeEventListeners);
else
fr.onloadend=null;
}
Basic.each(events, function(name) {
if (fr.addEventListener)
fr.addEventListener(name, reDispatch);
else
fr['on'+name]=reDispatch;
});
if (fr.addEventListener)
fr.addEventListener('loadend', removeEventListeners);
else
fr['onloadend']=removeEventListeners;
The text was updated successfully, but these errors were encountered: