Sha256: 390d935c6ee1f2515ee6507434c0e459a7f00d7190626982e88375aab751045e

Contents?: true

Size: 358 Bytes

Versions: 5

Compression:

Stored size: 358 Bytes

Contents

(function() {
	window.$$.utils = {
		_id: 0,
		camelCase: function(input) {
			return input.toLowerCase().replace(/(^|-)(.)/g, function(match, $1, $2) {
				return $2.toUpperCase();
			});
		},
		dash: function(input) {
			return input.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
		},
		guid: function() {
			return this._id++;
		}
	};

}).call(this);

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rails_blocks-0.9.0.beta.5 app/assets/javascripts/utils.js
rails_blocks-0.9.0.beta.4 app/assets/javascripts/utils.js
rails_blocks-0.9.0.beta.3 app/assets/javascripts/utils.js
rails_blocks-0.9.0.beta.2 app/assets/javascripts/utils.js
rails_blocks-0.9.0.beta.1 app/assets/javascripts/utils.js