Sha256: a2a03152c806552484ca88a3b1dda1b6d6ea4705506b586f41fa7cc219021b25

Contents?: true

Size: 1.21 KB

Versions: 5

Compression:

Stored size: 1.21 KB

Contents

/**
 * @author Tanin
 */
var whowishWordVariables = {
	idRunner: 0,
	separator: "_____"
};
	
whowishWordVariables.attributeValuePattern = new RegExp("^__whowishWord__" +
															whowishWordVariables.separator + 
															"(.+)" + 
															whowishWordVariables.separator + "(.+)");
										
whowishWordVariables.whowishWordIdPattern = new RegExp("([^\|]+)(\|(.*))?");
	
whowishWordVariables.matchers = [
									{
										match: function(element){ return WhowishWordElementGuard.check(element); },
										createWhowishWord: function(element) { new WhowishWordElementCreator(element); }
									},
									{
										match: function(element) { return WhowishWordHtmlGuard.check(element); },
										createWhowishWord: function(element) { new WhowishWordHtmlCreator(element); }
									},
									{
										match: function(element) { return WhowishWordValueGuardAndSanitizer.check(element); },
										createWhowishWord: function(element) { new WhowishWordValueCreator(element); }
									},
									{
										match: function(element) { return WhowishWordTextGuard.check(element); },
										createWhowishWord: function(element) { new WhowishWordTextCreator(element); }
									}
								];

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
whowish_word-0.5.1 lib/whowish_word/rails/public/javascripts/2_whowish_word_variables.js
whowish_word-0.5.0 lib/whowish_word/rails/public/javascripts/2_whowish_word_variables.js
whowish_word-0.4.0 lib/whowish_word/rails/public/javascripts/2_whowish_word_variables.js
whowish_word-0.3.3 lib/whowish_word/rails/public/javascripts/2_whowish_word_variables.js
whowish_word-0.3.2 lib/whowish_word/rails/public/javascripts/2_whowish_word_variables.js