Sha256: a81be9dee5c026c973c6ba3b00094d9a393b69c5cbae43ebb5d31c41155b6d8b
Contents?: true
Size: 587 Bytes
Versions: 11
Compression:
Stored size: 587 Bytes
Contents
var WhowishWordAttributeHandler = WhowishWordContentHandler.extend({ init: function(elem,attributeName){ this.elementId = elem.id; this.attributeName = attributeName; }, setContent: function(content){ var elem = $w('#' + this.elementId)[0]; try { elem[this.attributeName] = content; } catch(e) {} try { elem.attributes[this.attributeName].value = content; } catch (e) {} $w(elem).attr(this.attributeName, content); }, getContent: function(){ var elem = $w('#' + this.elementId)[0]; return $w(elem).attr(this.attributeName); } });
Version data entries
11 entries across 11 versions & 1 rubygems