Permalink
Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…
Cannot retrieve contributors at this time.
Cannot retrieve contributors at this time
| /** | |
| @module ember | |
| @submodule ember-runtime | |
| */ | |
| import Ember from 'ember-metal/core'; // Ember.EXTEND_PROTOTYPES, Ember.assert, Ember.FEATURES | |
| import { | |
| fmt, | |
| w, | |
| loc, | |
| camelize, | |
| decamelize, | |
| dasherize, | |
| underscore, | |
| capitalize, | |
| classify | |
| } from 'ember-runtime/system/string'; | |
| var StringPrototype = String.prototype; | |
| if (Ember.EXTEND_PROTOTYPES === true || Ember.EXTEND_PROTOTYPES.String) { | |
| /** | |
| See [Ember.String.fmt](/api/classes/Ember.String.html#method_fmt). | |
| @method fmt | |
| @for String | |
| @private | |
| */ | |
| StringPrototype.fmt = function () { | |
| return fmt(this, arguments); | |
| }; | |
| /** | |
| See [Ember.String.w](/api/classes/Ember.String.html#method_w). | |
| @method w | |
| @for String | |
| @private | |
| */ | |
| StringPrototype.w = function () { | |
| return w(this); | |
| }; | |
| /** | |
| See [Ember.String.loc](/api/classes/Ember.String.html#method_loc). | |
| @method loc | |
| @for String | |
| @private | |
| */ | |
| StringPrototype.loc = function () { | |
| return loc(this, arguments); | |
| }; | |
| /** | |
| See [Ember.String.camelize](/api/classes/Ember.String.html#method_camelize). | |
| @method camelize | |
| @for String | |
| @private | |
| */ | |
| StringPrototype.camelize = function () { | |
| return camelize(this); | |
| }; | |
| /** | |
| See [Ember.String.decamelize](/api/classes/Ember.String.html#method_decamelize). | |
| @method decamelize | |
| @for String | |
| @private | |
| */ | |
| StringPrototype.decamelize = function () { | |
| return decamelize(this); | |
| }; | |
| /** | |
| See [Ember.String.dasherize](/api/classes/Ember.String.html#method_dasherize). | |
| @method dasherize | |
| @for String | |
| @private | |
| */ | |
| StringPrototype.dasherize = function () { | |
| return dasherize(this); | |
| }; | |
| /** | |
| See [Ember.String.underscore](/api/classes/Ember.String.html#method_underscore). | |
| @method underscore | |
| @for String | |
| @private | |
| */ | |
| StringPrototype.underscore = function () { | |
| return underscore(this); | |
| }; | |
| /** | |
| See [Ember.String.classify](/api/classes/Ember.String.html#method_classify). | |
| @method classify | |
| @for String | |
| @private | |
| */ | |
| StringPrototype.classify = function () { | |
| return classify(this); | |
| }; | |
| /** | |
| See [Ember.String.capitalize](/api/classes/Ember.String.html#method_capitalize). | |
| @method capitalize | |
| @for String | |
| @private | |
| */ | |
| StringPrototype.capitalize = function () { | |
| return capitalize(this); | |
| }; | |
| } |