jquery-tmpl
jquery-tmpl copied to clipboard
tmplItem.update() should return a jQuery object
As .tmpl(data) return a jQuery object, that we can continue do some post processing, for example event binding, the tmplItem.update() method should follow the same pattern, so that the newly updated jQuery object should be also returned.
function tiUpdate() {
var coll = this.nodes;
var tmpl = jQuery.tmpl( null, null, null, this).insertBefore( coll[0] );
jQuery( coll ).remove();
return tmpl;
}
}
+1 vote for this feature - after update nodes attributes becomes empty
quick unofficial fix :)
function tiUpdate() { var coll = this.nodes; var _renderedContent$ = jQuery.tmpl( null, null, null, this).insertBefore( coll[0] ); jQuery( coll ).remove(); return _renderedContent$; }
Thanks, we will look into this for Beta2.
+1 vote
+1
+1... er... already did that :)
Thanks for taking the time to submit this issue. Just wanted to let you know this plugin is no longer being actively developed or maintained by the jQuery team. See README for more info.