I might want to return something like:
var that=this,
jq = $("<span>", {html"O"})
.click(function(e){ that.do_something(this); })
.data("dta", {"id":2, "name":"O"})
.add(
$("<span>", {html"X"})
.click(function(e){ that.do_something_else(this); })
.data("dta", {"id":2, "name":"O"})
);
return {jquery: jq};
I can't do above passing HTML.