Compressed Nifty Corners

Recently I was experimenting with different techniques and libraries that implement rounded corners with no images. Nifty Corners Cube by Alessandro Fulciniti was among them.

I liked the fact that the library detected background color and padding of the target element. This allows the technique to degrade gracefully if JavaScript is disabled.

I usually compress the libraries I use with JavaScript packer written by Dean Edwards and Rob Seiler. However niftycube.js had to be corrected before since there is a semicolon missing on line 24.

return(this.indexOf(what)>=0 ? true : false);
}; // Missing semicolon

Download Nifty Corners Cube (compressed), 4.66 KB.