Sha256: b2baf5539b9a8dbda74018a8f44615376fa587030d56d52f53535205e233936a

Contents?: true

Size: 348 Bytes

Versions: 26

Compression:

Stored size: 348 Bytes

Contents

var WhowishWordTextHandler = WhowishWordContentHandler.extend({
	
  init: function(elem){
    this.elementId = elem.id;
  },
  
  setContent: function(content){
  	var elem = $w('#' + this.elementId)[0];
    $w(elem).text(content);
  },
  
  getContent: function() {
  	var elem = $w('#' + this.elementId)[0];
    return $w(elem).text();
  }
  
});

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
whowish_word-0.2.6 lib/whowish_word/rails/public/javascripts/7_whowish_word_text_handler.js
whowish_word-0.2.5 lib/whowish_word/rails/public/javascripts/7_whowish_word_text_handler.js
whowish_word-0.2.3 lib/whowish_word/rails/public/javascripts/7_whowish_word_text_handler.js
whowish_word-0.2.2 lib/whowish_word/rails/public/javascripts/7_whowish_word_text_handler.js
whowish_word-0.2.1 lib/whowish_word/rails/public/javascripts/7_whowish_word_text_handler.js
whowish_word-0.2.0 lib/whowish_word/rails/public/javascripts/7_whowish_word_text_handler.js