Sha256: e81a5f331a633f133b8b23e1939e68470d3d68d6e55347f6266592b0a040586f
Contents?: true
Size: 1.43 KB
Versions: 13
Compression:
Stored size: 1.43 KB
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2011 Strobe Inc. and contributors. // Portions ©2008-2011 Apple Inc. All rights reserved. // License: Licensed under MIT license (see license.js) // ========================================================================== sc_require('system/string'); SC.supplement(String.prototype, /** @scope String.prototype */ { /** @see SC.String.capitalize */ capitalize: function() { return SC.String.capitalize(this, arguments); }, /** @see SC.String.camelize */ camelize: function() { return SC.String.camelize(this, arguments); }, /** @see SC.String.decamelize */ decamelize: function() { return SC.String.decamelize(this, arguments); }, /** @see SC.String.dasherize */ dasherize: function() { return SC.String.dasherize(this, arguments); }, /** @see SC.String.loc */ loc: function() { var args = SC.$A(arguments); args.unshift(this); return SC.String.loc.apply(SC.String, args); }, /** @see SC.String.locWithDefault */ locWithDefault: function(def) { var args = SC.$A(arguments); args.unshift(this); return SC.String.locWithDefault.apply(SC.String, args); }, /** @see SC.String.mult */ mult: function(value) { return SC.String.mult(this, value); } });
Version data entries
13 entries across 13 versions & 1 rubygems