Permalink
Browse files

'i' before 'e' except after 'c', plus Sublime Text 2 automatically re…

…moves extra whitespace, so lots of whitespace cleanups
  • Loading branch information...
1 parent 8c2c283 commit 6eb98156ec5c53f0e9b5a2a4d783b8541a5a12a8 @publickeating publickeating committed Jun 7, 2011
@@ -298,7 +298,7 @@ SC.Pane = SC.View.extend(SC.ResponderContext,
giving it one last opportunity to save its state.
@param {SC.Pane} pane
- @returns {SC.Pane} reciever
+ @returns {SC.Pane} receiver
*/
willLoseKeyPaneTo: function(pane) {
this._forwardKeyChange(this.get('isKeyPane'), 'willLoseKeyResponderTo', pane, NO);
@@ -328,7 +328,7 @@ SC.Pane = SC.View.extend(SC.ResponderContext,
final cleanup and changes its own display value if needed.
@param {SC.Pane} pane
- @returns {SC.Pane} reciever
+ @returns {SC.Pane} receiver
*/
didLoseKeyPaneTo: function(pane) {
var isKeyPane = this.get('isKeyPane');
@@ -102,31 +102,31 @@ SC.SparseArray = SC.Object.extend(SC.Observable, SC.Enumerable, SC.Array,
added as range requests are completed.
*/
requestedRangeIndex: null,
-
+
/**
Make sure to create the index array during init so that it is not shared
between all instances.
*/
init: function() {
sc_super();
this.requestedRangeIndex = [];
-
+
this._TMP_PROVIDE_ARRAY = [];
this._TMP_PROVIDE_RANGE = { length: 1 };
this._TMP_RANGE = {};
},
-
- /**
+
+ /**
Returns the object at the specified index. If the value for the index
is currently undefined, invokes the didRequestIndex() method to notify
the delegate.
The omitMaterializing flag ensures that the object will not be materialized,
but it simply checks for the presence of an object at the specified index
and will return YES (or undefined if not found). This is useful in the case
- of SparseArrays, where you might NOT want to request the index to be loaded,
+ of SparseArrays, where you might NOT want to request the index to be loaded,
but simply need a shallow check to see if the position has been filled.
-
+
@param {Number} idx the index to get
@param {Boolean} omitMaterializing
@return {Object} the object
@@ -251,7 +251,7 @@ SC.SparseArray = SC.Object.extend(SC.Observable, SC.Enumerable, SC.Array,
@param {Range} range the range to apply to
@param {Array} array the array of objects to insert
- @returns {SC.SparseArray} reciever
+ @returns {SC.SparseArray} receiver
*/
provideObjectsInRange: function(range, array) {
var content = this._sa_content ;
@@ -300,7 +300,7 @@ SC.SparseArray = SC.Object.extend(SC.Observable, SC.Enumerable, SC.Array,
var start = range.start, loc = Math.min(start + range.length, content.length);
while (--loc>=start) content[loc] = undefined;
}
- }
+ }
this.arrayContentDidChange(range.start, range.length, range.length) ; // notify
return this ;
},
@@ -116,7 +116,7 @@ SC.mixin(SC.String, {
},
/**
- Localizes the string. This will look up the reciever string as a key
+ Localizes the string. This will look up the receiver string as a key
in the current Strings hash. If the key matches, the loc'd value will be
used. The resulting string will also be passed through fmt() to insert
any variables.
@@ -136,7 +136,7 @@ SC.mixin(SC.String, {
var args = SC.$A(arguments);
args.shift(); // remove str param
- //to extend String.prototype
+ //to extend String.prototype
if(args.length>0 && args[0].isSCArray) args=args[0];
return SC.String.fmt(localized, args);
@@ -255,7 +255,7 @@ SC.mixin(SC.String, {
return SC.String.fmt(localized, args);
},
-
+
/**
Removes any extra whitespace from the edges of the string. This method is
also aliased as strip().
@@ -306,7 +306,7 @@ if(String.prototype.trim) {
// We want the version defined here, not in Runtime
SC.mixin(String.prototype,
/** @scope String.prototype */ {
-
+
loc: function() {
return SC.String.loc(this.toString(), SC.$A(arguments));
},
@@ -106,7 +106,7 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
for the receiver.
@param {SC.DataSource...} dataSource one or more data source arguments
- @returns {SC.Store} reciever
+ @returns {SC.Store} receiver
*/
cascade: function(dataSource) {
var dataSources = SC.A(arguments) ;
@@ -416,7 +416,7 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
@param {Number} storeKey
@param {String} status optional new status
- @returns {SC.Store} reciever
+ @returns {SC.Store} receiver
*/
removeDataHash: function(storeKey, status) {
// don't use delete -- that will allow parent dataHash to come through
@@ -2074,7 +2074,7 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
record. This will transition the record back to it non-inflight state.
@param {Number} storeKey record store key to cancel
- @returns {SC.Store} reciever
+ @returns {SC.Store} receiver
*/
dataSourceDidCancel: function(storeKey) {
var status = this.readStatus(storeKey),
@@ -2130,7 +2130,7 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
@param {Number} storeKey record store key to change to READY_CLEAN state
@param {Hash} dataHash optional data hash to replace current hash
@param {Object} newId optional new id to replace the old one
- @returns {SC.Store} reciever
+ @returns {SC.Store} receiver
*/
dataSourceDidComplete: function(storeKey, dataHash, newId) {
var status = this.readStatus(storeKey), K = SC.Record, statusOnly;
@@ -2169,7 +2169,7 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
transition the record to the proper state.
@param {Number} storeKey record store key to cancel
- @returns {SC.Store} reciever
+ @returns {SC.Store} receiver
*/
dataSourceDidDestroy: function(storeKey) {
var status = this.readStatus(storeKey), K = SC.Record;
@@ -2202,7 +2202,7 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
@param {Number} storeKey record store key to error
@param {SC.Error} error [optional] an SC.Error instance to associate with storeKey
- @returns {SC.Store} reciever
+ @returns {SC.Store} receiver
*/
dataSourceDidError: function(storeKey, error) {
var status = this.readStatus(storeKey), errors = this.recordErrors, K = SC.Record;
@@ -2761,7 +2761,7 @@ SC.Store.mixin(/** @scope SC.Store.prototype */{
@param {Integer} storeKey the store key
@param {SC.Record} recordType a record class
- @returns {SC.Store} reciever
+ @returns {SC.Store} receiver
*/
replaceRecordTypeFor: function(storeKey, recordType) {
this.recordTypesByStoreKey[storeKey] = recordType;
Oops, something went wrong.

0 comments on commit 6eb9815

Please sign in to comment.