Brion asked:
>So.... where's your code being loaded from? Site or use JS pages? Some
>literal JS files output from an extension? Something else?

>From a physical JS file (e.g., myfile.js) handed to ResourceLoader by my 
>extension:

$wgResourceModules["vp.wiki.editor.edittools"] = array(
  'scripts' => array(
    'js/myfile.js,
   ),
  'localBasePath' => dirname(__FILE__),
  'remoteExtPath' => 'MyExtension',
);


>Can you see it being loaded incorrectly from something cached?

I just observed that the value doesn't change -- even after ctrl-F5 -- unless I 
clear the browser cache (Tools / Options / Advanced / Network / "Clear Now" in 
Firefox). This was true in IE and Chrome too.

>Did you check in Firebug or WebKit's developer tools or IE's developer tools 
>to see what the response
>from the server is?

I am running Firebug but didn't check this specifically with it -- actually, 
debugging WikiEditor is really difficult because so many of its toolbar objects 
(buttons, menus, etc.) are defined anonymously with wikiEditor('addToToolbar', 
{...anonymous stuff...}), so I have a lot of trouble locating these objects in 
the DOM. Any tips? Is there a simple $('#wpTextBox1')... syntax to reach the 
toolbar buttons etc.?

DanB

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to