#660 JavaScript cleanup

andy Wed 8 Jul 2009

The JavaScript code got a bit of housecleaning today. The webappClient pod got split out and removed. The native sys implementations got moved into the sys/js directory along side the java and dotnet implemetations (and compiled into the sys pod now). And all the DOM and XHR related code got moved into a new pod called dom.

If you were using webappClient at all, updating your code is pretty straight-forward:

  1. Change depends from webappClient 1.0 -> dom 1.0
  2. All using statements should be dom now
  3. If you're including the scripts files in HTML, you'll need to include both sys/sys.js and dom/dom.js now.

All the core code and examples have been updated. Just need to fix the docs. Also while I'm in here, I'm gonna change all occurrences of javascript to js. I'll post on that change when its done.

andy Thu 9 Jul 2009

I pushed a fix to change uses of javascript to js:

@javascript     =>  @js
src/javscript/  =>  src/js/

Right before the next build, I'll also push these changes:

// BuildPod
hasJavascript    =>  jsCompile
javascriptsDirs  =>  jsDirs

Then I believe we should be using js consistently everywhere.

tompalmer Fri 10 Jul 2009

Agreed that "js" is better than "javascript". That language has one of the most unfortunate name ecosystems in history, something I've even seen Brendan Eich lament about.

Login or Signup to reply.