[Solved] Bind directly to DOM with not event


It seems that aloha.ui.command is a higher order function, I think you can

use code like this:

aloha.ui.command(aloha.ui.commands.bold)($('#big-bad-bold-button'))

Curring is an intereseted thing:http://en.wikipedia.org/wiki/Currying

solved Bind directly to DOM with not event