Hello,

I'm still working extending the edit-text widget. I want to do it more 
responsive, so I want it to update itself when any of its attributes 
changes.
The weird thing that I'm getting is that instead of refreshing it creates a 
new instance of itself reflecting the changes.

I suspect the problem is how I extended the execute function:


    EditTextWidget.prototype.executeOld = EditTextWidget.prototype.execute;
    
    EditTextWidget.prototype.execute = function(){
        EditTextWidget.prototype.executeOld.call(this);
        this.codemirrorMode = this.getAttribute("mode") || "javascript";
    this.theme = this.getAttribute("theme") || "default";
    };


Any help is welcome

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Reply via email to