toloframework
Version: 
Javascript/HTML/CSS compiler for Firefox OS or nodewebkit apps using modules in the nodejs style.
23 lines (20 loc) • 426 B
JavaScript
/**
 * @created 17/09/2014
 *
 */
window["TFW::wtag.Bind"] = {
    superclass: "WTag",
    init: function() {},
    
    functions: {
	/**
         * Update content when data has changed.
         */
        val: function(value) {
            if (this._type == 'html') {
                this._element.innerHTML = value;
            } else {
                this._element.textContent = value;
            }
        }
    }
};