# HG changeset patch # User wycc # Date 1302498205 -28800 # Node ID d19f47691d5e1020a921cfc86ef9589eed52da0f # Parent 7f4edd6e175eb0b48d72cf070d757de4bfd04c3b Use cooord.set_text to update the text inside a component. diff -r 7f4edd6e175e -r d19f47691d5e nodejs/component.js --- a/nodejs/component.js Mon Apr 11 13:00:54 2011 +0800 +++ b/nodejs/component.js Mon Apr 11 13:03:25 2011 +0800 @@ -73,9 +73,13 @@ } Component.prototype.toCoord=function() { - return this.coord; + return this.realize(); } +Component.prototype.set_text=function(text) { + this.realize(); + this.coord.set_text("asdsad"); +} function ComponentManager(app) {