Sha256: 06f018d96ed911d377423b62121fccc69b9d13c5f93b82c16ce109ce5ba7899e

Contents?: true

Size: 411 Bytes

Versions: 3

Compression:

Stored size: 411 Bytes

Contents

var WhowishWordAttributeHandler = WhowishWordContentHandler.extend({
	
  init: function(elem,attributeName){
    this.element = elem;
	this.attributeName = attributeName;
  },
  
  setContent: function(content){
    this.element[this.attributeName] = content;
	this.element.attributes[this.attributeName].value = content;
  },
  
  getContent: function(){
    return this.element[this.attributeName];
  }
  
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
whowish_word-0.1.2 lib/whowish_word/rails/public/javascripts/7_whowish_word_attribute_handler.js
whowish_word-0.1.1 lib/whowish_word/rails/public/javascripts/7_whowish_word_attribute_handler.js
whowish_word-0.1.0 lib/whowish_word/rails/public/javascripts/7_whowish_word_attribute_handler.js