AngularJS 1.2 $ инжектор: modulerr

JS Fiddle: http://jsfiddle.net/eyedean/1bw357kw/

popFileSelector = function() {
    var el = document.getElementById("fileElem");
    if (el) {
        el.click();  
    }
};

window.popRightAway = function() {
    document.getElementById('log').innerHTML += 'I am right away!
'; popFileSelector(); }; window.popWithDelay = function() { document.getElementById('log').innerHTML += 'I am gonna delay!
'; window.setTimeout(function() { document.getElementById('log').innerHTML += 'I was delayed!
'; popFileSelector(); }, 1000); };

  
Pop Now
Pop With 1 Second Delay
Log:

443
задан Dawid 17 August 2013 в 09:56
поделиться