Sha256: 39734dd8a8ae7eacdfd0fcaf94183f2d787ca88cec2a77c6be34abdff048adc3

Contents?: true

Size: 307 Bytes

Versions: 29

Compression:

Stored size: 307 Bytes

Contents

var WhowishWordTextGuard = {
	
	check: function(element) {
		return element.tagName.toLowerCase() == "option" 
				&& (typeof(text = $w(element).text())).toLowerCase() == "string"
				&& whowishWordHelper.match(text)
				&& ($w('#' + whowishWordHelper.makeEditIconId(element, 'text')).length == 0);
	}
  
};

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
whowish_word-1.0.0 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.6.5 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.6.4 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.6.3 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.6.2 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.6.2gem lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.6.1 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.6.0 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.5.5 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.5.4 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.5.3 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.5.2 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.5.1 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.5.0 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.4.0 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.3.3 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.3.2 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.3.1 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.3.0 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js
whowish_word-0.2.7 lib/whowish_word/rails/public/javascripts/6_whowish_word_text_guard.js