I finally had the chance to use JSB in a project, I must say it's
really the finishing touch on top of base2 to finally use it more
often in my projects. I was wondering why elements returned by the
selector API aren't bound automatically like in the base2.DOM package.
This week I'll be playing around with animations though from what I
know this far I'd really love to see a callback implemented for when
the animation has finished. Should I post a ticket for that on google
code?
Kindest regards,
Marijn
You can easily bind elements yourself in the onattach event:
var mybehavior = jsb.behavior.extend({
onattach: function(element) {
base2.dom.bind(element);
}
});
If you extend mybehavior to create your own behaviors then all attached
elements will be bound.
I decided not to automatically bind elements. Binding takes up valuable
processing time. JSB scales to very large DOMs. It would not scale if
every element was also bound.
> This week I'll be playing around with animations though from what I
> know this far I'd really love to see a callback implemented for when
> the animation has finished.
There is a transitionend event. This fires for every property that is
animated. I will add an another event to signify the end of the
animation itself (an animation is effectively a set of transitions).
> Should I post a ticket for that on google code?
>
Please do.
-dean