Permalink
Browse files

Fix regression introduced by D2960

Summary:
D2960 renamed callback to load_callback. Everything was fine except for
windows phone (Might be the only one using?

Test Plan: Executed the code that was failing now is passing

Reviewers: jeffmo, epriestley, marek

Reviewed By: epriestley

CC: aran, Korvin

Differential Revision: https://secure.phabricator.com/D3454
  • Loading branch information...
1 parent c59b8ba commit 83aedd5351c59cd45af9a81cdfb492fa16d10adf Sergio Clemente committed Sep 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/Resource.js
View
@@ -81,7 +81,7 @@ JX.install('Resource', {
script.onreadystatechange = function() {
var state = this.readyState;
if (state == 'complete' || state == 'loaded') {
- callback();
+ load_callback();
}
};
document.getElementsByTagName('head')[0].appendChild(script);

0 comments on commit 83aedd5

Please sign in to comment.