components-js


JavaScript application framework

Components is a high-level JavaScript framework. It helps you write cleaner, clearer applications with less code and less effort.

It revolves around having a model for the interface instead of tons of CSS queries. The model gives you all the page access you need, with simple conventions for describing Requests, Updates and Events.

It looks like this...

Here's a rewrite of an example from jQuery:

``` bind('gallery', {

onLoadFocal: function() { this.clear('loading'); this.focal.appear(); },

load: function(source) { this.apply('loading'); this.focal.fade(function() { this.replace('').element.src = source; }); } });

bind('focal');

bind('thumb', {

onClick: function() { this.gallery.load(this.element.src); return false; } }); ```

```

Click on an image to view it full size.

```

Project Information