Sha256: b08b97e80448e1eb3f87c571a459219c9980900f847b33dc548ce121419c8032

Contents?: true

Size: 617 Bytes

Versions: 33

Compression:

Stored size: 617 Bytes

Contents

// jquery.escape 1.0 - escape strings for use in jQuery selectors
// http://ianloic.com/tag/jquery.escape
// Copyright 2009 Ian McKellar <http://ian.mckellar.org/>
// Just like jQuery you can use it under either the MIT license or the GPL
// (see: http://docs.jquery.com/License)

(function($w){

 	$w.extend({ 
 		
 		escape: function(s) {
			escape_re = /[#;&,\.\+\*~':"!\^\$\[\]\(\)=>|\/\\]/;
			
			var left = s.split(escape_re, 1)[0];
			if (left == s) return s;
			return left + '\\' + 
					s.substr(left.length, 1) + 
					jQueryWhowishWord.escape(s.substr(left.length+1));
		}
	});
	
})(jQueryWhowishWord);

Version data entries

33 entries across 33 versions & 1 rubygems

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