toddmotto / echo

Lazy-loading images with data-* attributes

Home Page:http://toddmotto.com/labs/echo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use echo,jquery appear bug

cdefg198 opened this issue · comments

import:
`<script src="/Scripts/jquery-1.10.2.min.js"></script>

<script src="/Scripts/echo.min.js"></script>`

use eg:
$.getScript("/Scripts/bootstrap.min.js").done(function(script, textStatus,jqxhr) { console.log(jqxhr.status); }) .fail(function(jqxhr, settings, exception ) { console.log(jqxhr.status); });
Uncaught TypeError: Cannot read property 'done' of undefined(…)

This isn't anything to do with echo.js, getScript() is the undefined property.