Skip to content

Instantly share code, notes, and snippets.

@adamkdean
Last active August 29, 2015 13:57
Show Gist options
  • Save adamkdean/9503341 to your computer and use it in GitHub Desktop.
Save adamkdean/9503341 to your computer and use it in GitHub Desktop.
Closure compiler test
angular.f("LocalFileModule",[]).g("localFileService",[function(){function h(d,e,f){var g=new FileReader;d=d.target.files;0<d.length&&(g.onload=function(d){e(d.target.result)},g.onerror=function(d){f(d)},g.readAsText(d[0]))}function k(d){d=document.getElementById(d);var e=document.createElement("input");e.type="file";e.id=d.id;e.name=d.name;e.className=d.className;e.style.cssText=d.style.cssText;d.parentNode.replaceChild(e,d)}return{isSupported:window.a&&window.c&&window.b&&window.Blob,d:function(d,
e){document.getElementById(d).addEventListener("change",e,!1)},e:function(d,e,f){k(d);document.getElementById(d).addEventListener("change",function(d){h(d,e,f)},!1)}}}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment