public ClientWriter id(String id, Script... s) throws IOException { if (s == null) return this; for (Script i : s) { i.write(this.getBuffer().append("$('").append(id).append("')").toString(), this); } return this; }
public ClientWriter select(String selector, Script... s) throws IOException { if (s == null || selector == null) return this; this.writer.write( this.getBuffer().append("$$('").append(selector).append("').each(function(e){").toString()); for (Script i : s) { i.write("e", this); } this.writer.write("});"); return this; }