public
Description: script.aculo.us is an open-source JavaScript framework for visual effects and interface behaviours.
Homepage: http://script.aculo.us/
Clone URL: git://github.com/madrobby/scriptaculous.git
Click here to lend your support to: scriptaculous and make a donation at www.pledgie.com !

Comments for madrobby's scriptaculous   feed

aemkei commented on madrobby/scriptaculous Thu Aug 20 03:02:29 -0700 2009
Comment on src/dragdrop.js L285 in fa7fb6b:

Just encountered some strange timing issues.
Bitwise XOR makes no sence here. Use x*x instead of x^2!

nraynaud commented on madrobby/scriptaculous Thu Mar 05 17:41:39 -0800 2009
Comment in 951f483:

Hi, thanks for your work.

But I’ve got a problem with $$(‘head script[src]’), because my scripts tags are not at the top, but at the bottom of the page, as asked by YSlow. So scriptaculous files never get loaded.

madrobby commented on madrobby/scriptaculous Tue Sep 23 05:08:49 -0700 2008
Comment in fe1d37a:

i concur and i’ve reverted the change and did some cleanups.

mislav commented on madrobby/scriptaculous Mon Sep 22 18:19:11 -0700 2008
Comment in fe1d37a:

@jdalton: add a couple of images to the page (site logo, content images, background css images) and their size becomes >> js size, making the difference in 10kB negligible.

kangax commented on madrobby/scriptaculous Mon Sep 22 17:35:31 -0700 2008
Comment in fe1d37a:

@jdalton I’m always amazed at how you manage to memorize all those numbers (gzipped, minified, gzipped/minified, etc.) : )

jdalton commented on madrobby/scriptaculous Mon Sep 22 15:01:48 -0700 2008
Comment in fe1d37a:

Things like: if (something()) top = 3 // ; <-- needs a semi colon... bottom = 4;

Because when its flattened if (something()) top=3 bottom=4; //<- boom syntax error.

jdalton commented on madrobby/scriptaculous Mon Sep 22 15:00:44 -0700 2008
Comment in fe1d37a:

This ate the formatting…

These semi colons don’t effect code minifiers so they really aren’t needed. Plus this breaks with the style of Prototype which doesn’t include them in those situations.

jdalton commented on madrobby/scriptaculous Mon Sep 22 14:59:03 -0700 2008
Comment in fe1d37a:

These semi colons don’t effect code minifiers so they really aren’t needed. Plus this breaks with the style of Prototype which doesn’t include them in those situations.

Things like: if (something()) top = 3 // ; <-- needs a semi colon... bottom = 4;

Because when its flattened if (something()) top=3 bottom=4; //<- boom syntax error.

Rant below: And before someone says “Well, they can just gzip the files.” Minification + gzip can save 18kb+ with Prototype+Scripty over gzipping alone. This number is only going to increase with the next release. To give you an idea of how much that is, you can fit the entire jQuery framework gzipped in under 15kb. Prototype min+gzipped is 20.7kb , add effects (min+gzipped) to that and the total rises 27.1kb which is still smaller than regular Prototype gzipped (28.2kb)

smoofles commented on madrobby/scriptaculous Fri Sep 19 07:20:08 -0700 2008
Comment in fe1d37a:

I suggest someone starts a “Save The Semicolon” online petition, then we’ll know for sure. :-P

mislav commented on madrobby/scriptaculous Fri Sep 19 06:28:52 -0700 2008
Comment in fe1d37a:

So without semicolons, this scriptaculous code wasn’t comlete? :-/

elia commented on madrobby/scriptaculous Fri Sep 19 00:45:43 -0700 2008
Comment in fe1d37a:

It’s not required, but it’s no bad… To me it seems more complete :)

From ECMAScript spec:

7.9.1 Rules of Automatic Semicolon Insertion When, as the program is parsed from left to right, a token (called the offending token) is encountered that is not allowed by any production of the grammar, then a semicolon is automatically inserted before the offending token if one or more of the following conditions is true: 1. The offending token is separated from the previous token by at least one LineTerminator. 2. The offending token is }.

staaky commented on madrobby/scriptaculous Thu Sep 18 14:57:44 -0700 2008
Comment in fe1d37a:

Semicolons aren’t required here. In similar context where the function is just one line Prototype doesn’t add semicolons.