Sha256: ddfb8946fe4cca1cffe83a8f822b7c1141347def5bed783aface53ef77941c35
Contents?: true
Size: 589 Bytes
Versions: 2
Compression:
Stored size: 589 Bytes
Contents
var WhowishWordAttributeHandler = WhowishWordContentHandler.extend({ init: function(elem,attributeName){ this.element_id = elem.id; this.attributeName = attributeName; }, setContent: function(content){ var elem = $w('#' + this.element_id)[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.element_id)[0]; return $w(elem).attr(this.attributeName); } });
Version data entries
2 entries across 2 versions & 1 rubygems