$._data( $("#foo")[0], "events" );
function _$(selector) {
// Сюда пишем логику сохранения списка селекторов
// ..
return $(selector);
}
_$('.div1').click()
_$('.input1').change()
_$('.input2').focus()
UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
CGFloat xPos =self.frame.size.width + self.frame.origin.x + 10;
CGFloat yPos =self.frame.origin.y;
button.frame = CGRectMake(xPos, yPos, self.frame.size.height, self.frame.size.height);
[button setImage:[UIImage imageNamed:@"nice.png"] forState:UIControlStateNormal];
[button addTarget:self action:@selector(focused:) forControlEvents:UIControlEventTouchUpInside];
[self.superview addSubview:button];