dailinjie / jsload

Automatically exported from code.google.com/p/jsload
0 stars 0 forks source link

DOM is not correctly updated with opera #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try to access to javascript function in JSLoad.prototype.load callback
function

What is the expected output? What do you see instead?
I was enable to access to my namespace function, it's not in dom. However,
corresponing js is loaded 

What version of the product are you using? On what operating system?
Opera 9.63, Revision 5261, Plate-forme Mac OS X, System 10.5.6 

Please provide any additional information below.
---------------
Opera error:
ecmascript
http://localhost/~sebastien/nws/proxycachedns.html
Event thread: readystatechange
Error:
name: TypeError
message: Statement on line 14: Cannot convert undefined or null to Object
Backtrace:
  Line 14 of linked script
http://localhost/~sebastien/nws/modules/proxycachedns/proxycachedns-loader.js:
In function callbackLoaded
            Nws.Services.ProxyCacheDns.Demo.load(true);
  Line 175 of linked script
http://localhost/~sebastien/nws/libs/jsload/jsload.js: In function loadNext
                srcSetObj.callback();
  Line 253 of linked script
http://localhost/~sebastien/nws/libs/jsload/jsload.js
                    loadNext();
  Line 206 of linked script
http://localhost/~sebastien/nws/libs/jsload/jsload.js: In function scriptOnLoad
                        thisObj.loadScript(srcSetObj, iteration);
  ...
stacktrace:   ...  Line 175 of linked script
http://localhost/~sebastien/nws/libs/jsload/jsload.js: In function loadNext
                srcSetObj.callback();
  Line 253 of linked script
http://localhost/~sebastien/nws/libs/jsload/jsload.js
                    loadNext();
  Line 206 of linked script
http://localhost/~sebastien/nws/libs/jsload/jsload.js: In function scriptOnLoad
                        thisObj.loadScript(srcSetObj, iteration);
  ...

---------------

Loaded js files

Lié - ext-base.js
eval - Id du script: 192
Lié - ext-all.js
Lié - DomQuery.js
eval - Id du script: 196
Inline - Id du script: 197
Lié - jsload.js
Lié - modules.js
Lié - proxycachedns-loader.js -> jsload load is called here 
Lié - str.js
Lié - init.js
Lié - uri.js
Lié - thema.js
Lié - conv.js
Lié - comm.js
Lié - utils.js
Lié - cookie.js
Lié - ui.js
Lié - potreader.js
Lié - core.js
Lié - engine.js
eval - Id du script: 213
eval - Id du script: 214
Lié - proxycachedns.js
Lié - proxycachedns-ui.js
Lié - proxycachedns-demo.js

---------------
proxycachedns-loader.js code

Ext.onReady(function(){ // Called when dom is ready
    jsLoader.load(['proxycachedns-demo'], callbackLoaded);

    function callbackLoaded(){
        Nws.init({
            debugEnabled: true,
            exceptionCatchEnabled: false,
            useBrowserConsole: false
        });

        Nws.Services.ProxyCacheDns.Demo.load(true); // in proxycachedns-demo.js

        Nws.Ui.removeLoaderMask();
    }
});

Original issue reported on code.google.com by sdol...@gmail.com on 4 Mar 2009 at 2:56

GoogleCodeExporter commented 8 years ago
Thanks so much for the bug report, sdolard. My fix for issue 1 seems to have 
covered
this one as well. You can find the fixed code at r11. More useful updates are 
coming
soon!

Original comment by ericngu...@gmail.com on 8 Oct 2009 at 4:27