Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed misspellings in comments and in a few tests

  • Loading branch information...
commit 4b24fb73cd351cbec897764685c57e0e60897e0b 1 parent 81c4398
Jeff Pittman geojeff authored publickeating committed
Showing with 506 additions and 506 deletions.
  1. +1 −1  apps/tests/controllers/targets.js
  2. +1 −1  apps/tests/states/no_targets.js
  3. +1 −1  apps/tests/states/ready_detail.js
  4. +1 −1  apps/tests/states/ready_empty.js
  5. +1 −1  apps/tests/states/ready_list.js
  6. +1 −1  apps/tests/states/ready_no_tests.js
  7. +1 −1  apps/welcome/controllers/targets.js
  8. +1 −1  frameworks/ajax/system/request.js
  9. +2 −2 frameworks/ajax/system/response.js
  10. +1 −1  frameworks/ajax/tests/system/request.js
  11. +3 −3 frameworks/animation/core.js
  12. +2 −2 frameworks/core_foundation/controllers/array.js
  13. +2 −2 frameworks/core_foundation/ext/run_loop.js
  14. +1 −1  frameworks/core_foundation/mixins/action_support.js
  15. +1 −1  frameworks/core_foundation/mixins/responder_context.js
  16. +1 −1  frameworks/core_foundation/mixins/selection_support.js
  17. +1 −1  frameworks/core_foundation/protocols/sparse_array_delegate.js
  18. +1 −1  frameworks/core_foundation/system/builder.js
  19. +1 −1  frameworks/core_foundation/system/cursor.js
  20. +5 −5 frameworks/core_foundation/system/event.js
  21. +57 −57 frameworks/core_foundation/system/locale.js
  22. +4 −4 frameworks/core_foundation/system/platform.js
  23. +3 −3 frameworks/core_foundation/system/render_context.js
  24. +1 −1  frameworks/core_foundation/system/responder.js
  25. +6 −6 frameworks/core_foundation/system/root_responder.js
  26. +3 −3 frameworks/core_foundation/system/timer.js
  27. +1 −1  frameworks/core_foundation/tests/system/event.js
  28. +11 −11 frameworks/core_foundation/tests/system/locale.js
  29. +1 −1  frameworks/core_foundation/tests/system/render_context/helpers_className.js
  30. +1 −1  frameworks/core_foundation/tests/system/selection_set/remove.js
  31. +2 −2 frameworks/core_foundation/tests/views/view/createChildViews.js
  32. +6 −6 frameworks/core_foundation/views/view.js
  33. +1 −1  frameworks/core_foundation/views/view/layout.js
  34. +1 −1  frameworks/core_foundation/views/view/theming.js
  35. +2 −2 frameworks/datastore/data_sources/data_source.js
  36. +4 −4 frameworks/datastore/models/record.js
  37. +1 −1  frameworks/datastore/models/record_attribute.js
  38. +1 −1  frameworks/datastore/system/many_array.js
  39. +2 −2 frameworks/datastore/system/nested_store.js
  40. +3 −3 frameworks/datastore/system/query.js
  41. +1 −1  frameworks/datastore/system/record_array.js
  42. +7 −7 frameworks/datastore/system/store.js
  43. +1 −1  frameworks/datastore/tests/models/many_attribute.js
  44. +3 −3 frameworks/datastore/tests/models/nested_records/nested_record.js
  45. +2 −2 frameworks/datastore/tests/models/nested_records/nested_record_array.js
  46. +3 −3 frameworks/datastore/tests/models/nested_records/nested_record_array_complex.js
  47. +2 −2 frameworks/datastore/tests/models/nested_records/nested_record_complex.js
  48. +1 −1  frameworks/datastore/tests/models/record/destroy.js
  49. +1 −1  frameworks/datastore/tests/models/record/refresh.js
  50. +1 −1  frameworks/datastore/tests/models/record_attribute.js
  51. +1 −1  frameworks/datastore/tests/system/nested_store/commitChangesFromNestedStore.js
  52. +1 −1  frameworks/datastore/tests/system/nested_store/readDataHash.js
  53. +1 −1  frameworks/datastore/tests/system/query/parse.js
  54. +1 −1  frameworks/datastore/tests/system/store/cancelRecord.js
  55. +1 −1  frameworks/datastore/tests/system/store/commitChangesFromNestedStore.js
  56. +3 −3 frameworks/datastore/tests/system/store/pushRelationships.js
  57. +1 −1  frameworks/datastore/tests/system/store/readDataHash.js
  58. +3 −3 frameworks/datetime/frameworks/core/system/datetime.js
  59. +1 −1  frameworks/desktop/core.js
  60. +1 −1  frameworks/desktop/mixins/collection_row_delegate.js
  61. +1 −1  frameworks/desktop/mixins/collection_view_delegate.js
  62. +1 −1  frameworks/desktop/panes/alert.js
  63. +1 −1  frameworks/desktop/panes/palette.js
  64. +7 −7 frameworks/desktop/panes/picker.js
  65. +1 −1  frameworks/desktop/protocols/drag_data_source.js
  66. +8 −8 frameworks/desktop/protocols/drop_target.js
  67. +2 −2 frameworks/desktop/protocols/responder.js
  68. +2 −2 frameworks/desktop/render_delegates/disclosure.js
  69. +4 −4 frameworks/desktop/system/drag.js
  70. +3 −3 frameworks/desktop/system/undo_manager.js
  71. +9 −9 frameworks/desktop/tests/panes/alert/ui.js
  72. +1 −1  frameworks/desktop/tests/views/button/content.js
  73. +1 −1  frameworks/desktop/tests/views/collection/reload.js
  74. +1 −1  frameworks/desktop/tests/views/date_field/ui.js
  75. +3 −3 frameworks/desktop/tests/views/list/rowDelegate.js
  76. +3 −3 frameworks/desktop/views/button.js
  77. +13 −13 frameworks/desktop/views/collection.js
  78. +4 −4 frameworks/desktop/views/date_field.js
  79. +1 −1  frameworks/desktop/views/disclosure.js
  80. +1 −1  frameworks/desktop/views/grid.js
  81. +2 −2 frameworks/desktop/views/list_item.js
  82. +2 −2 frameworks/desktop/views/menu_item.js
  83. +3 −3 frameworks/desktop/views/menu_scroll.js
  84. +2 −2 frameworks/desktop/views/radio.js
  85. +2 −2 frameworks/desktop/views/scene.js
  86. +6 −6 frameworks/desktop/views/scroll.js
  87. +3 −3 frameworks/desktop/views/select.js
  88. +3 −3 frameworks/desktop/views/select_button.js
  89. +2 −2 frameworks/desktop/views/split.js
  90. +2 −2 frameworks/desktop/views/stacked.js
  91. +1 −1  frameworks/desktop/views/static_content.js
  92. +2 −2 frameworks/desktop/views/web.js
  93. +1 −1  frameworks/experimental/apps/greenhouse/controllers/files.js
  94. +1 −1  frameworks/experimental/apps/greenhouse/controllers/library.js
  95. +1 −1  frameworks/experimental/apps/greenhouse/controllers/targets.js
  96. +1 −1  frameworks/experimental/apps/greenhouse/controllers/view_configs.js
  97. +1 −1  frameworks/experimental/apps/greenhouse/mixins/drop_down.js
  98. +1 −1  frameworks/experimental/apps/greenhouse/states/ready.js
  99. +1 −1  frameworks/experimental/apps/greenhouse/views/plist_item.js
  100. +1 −1  frameworks/experimental/apps/greenhouse/views/web.js
  101. +2 −2 frameworks/experimental/frameworks/designer/controllers/page_design.js
  102. +1 −1  frameworks/experimental/frameworks/designer/designers/object_designer.js
  103. +2 −2 frameworks/experimental/frameworks/designer/designers/view_designer.js
  104. +3 −3 frameworks/experimental/frameworks/designer/mixins/snap_lines.js
  105. +1 −1  frameworks/experimental/frameworks/designer/views/designer_drop_target.js
  106. +3 −3 frameworks/experimental/frameworks/designer/views/page_item_view.js
  107. +1 −1  frameworks/experimental/frameworks/forms/views/form.js
  108. +2 −2 frameworks/experimental/frameworks/menu/views/menu/scroll.js
  109. +1 −1  frameworks/experimental/frameworks/polymorphism/tests/models/polymorphism/simple.js
  110. +6 −6 frameworks/experimental/frameworks/scroll_view/views/core_scroll.js
  111. +2 −2 frameworks/experimental/frameworks/scroll_view/views/touch/scroll.js
  112. +1 −1  frameworks/experimental/frameworks/split_view/tests/split_thumb.js
  113. +5 −5 frameworks/experimental/frameworks/split_view/views/split.js
  114. +1 −1  frameworks/foundation/mixins/auto_resize.js
  115. +1 −1  frameworks/foundation/mixins/editable.js
  116. +3 −3 frameworks/foundation/mixins/flowed_layout.js
  117. +2 −2 frameworks/foundation/mixins/gestureable.js
  118. +1 −1  frameworks/foundation/mixins/inline_editable.js
  119. +1 −1  frameworks/foundation/mixins/static_layout.js
  120. +3 −3 frameworks/foundation/private/tree_item_observer.js
  121. +1 −1  frameworks/foundation/render_delegates/helpers/sizing.js
  122. +1 −1  frameworks/foundation/render_delegates/render_delegate.js
  123. +2 −2 frameworks/foundation/system/benchmark.js
  124. +1 −1  frameworks/foundation/system/chance.js
  125. +1 −1  frameworks/foundation/system/text_selection.js
  126. +1 −1  frameworks/foundation/system/utils/misc.js
  127. +1 −1  frameworks/foundation/tests/mixins/content_value_support/content.js
  128. +1 −1  frameworks/foundation/tests/views/text_field/ui.js
  129. +1 −1  frameworks/foundation/validators/credit_card.js
  130. +1 −1  frameworks/foundation/validators/date.js
  131. +1 −1  frameworks/foundation/validators/date_time.js
  132. +3 −3 frameworks/foundation/validators/validator.js
  133. +1 −1  frameworks/foundation/views/inline_text_field.js
  134. +2 −2 frameworks/foundation/views/text_field.js
  135. +1 −1  frameworks/jquery/jquery.js
  136. +4 −4 frameworks/media/views/audio.js
  137. +6 −6 frameworks/media/views/video.js
  138. +5 −5 frameworks/qunit/qunit/qunit.js
  139. +85 −85 frameworks/routing/system/routes.js
  140. +2 −2 frameworks/routing/tests/system/routes.js
  141. +2 −2 frameworks/runtime/core.js
  142. +5 −5 frameworks/runtime/debug/test_suites/array/base.js
  143. +1 −1  frameworks/runtime/ext/function.js
  144. +1 −1  frameworks/runtime/mixins/array.js
  145. +7 −7 frameworks/runtime/mixins/enumerable.js
  146. +6 −6 frameworks/runtime/mixins/observable.js
  147. +1 −1  frameworks/runtime/private/observer_set.js
  148. +3 −3 frameworks/runtime/system/binding.js
  149. +1 −1  frameworks/runtime/system/enumerator.js
  150. +2 −2 frameworks/runtime/system/error.js
  151. +3 −3 frameworks/runtime/system/index_set.js
  152. +5 −5 frameworks/runtime/system/logger.js
  153. +2 −2 frameworks/runtime/system/object.js
  154. +1 −1  frameworks/runtime/tests/mixins/observable/observable.js
  155. +1 −1  frameworks/runtime/tests/private/observer_queue.js
  156. +2 −2 frameworks/runtime/tests/system/binding.js
  157. +2 −2 frameworks/runtime/tests/system/index_set/remove.js
  158. +3 −3 frameworks/runtime/tests/system/run_loop.js
  159. +3 −3 frameworks/statechart/system/state.js
  160. +4 −4 frameworks/statechart/system/statechart.js
  161. +1 −1  frameworks/testing/system/equiv.js
  162. +2 −2 frameworks/testing/system/plan.js
  163. +4 −4 frameworks/testing/system/suite.js
2  apps/tests/controllers/targets.js
View
@@ -15,7 +15,7 @@ TestRunner.targetsController = SC.ArrayController.create(
/** @scope TestRunner.targetsController.prototype */ {
/**
- Call this method whenever you want to relaod the targets from the server.
+ Call this method whenever you want to reload the targets from the server.
*/
reload: function() {
var targets = TestRunner.store.find(CoreTools.TARGETS_QUERY);
2  apps/tests/states/no_targets.js
View
@@ -12,7 +12,7 @@
TestRunner.NO_TARGETS = SC.Responder.create({
/**
- Show laoding targets view.
+ Show loading targets view.
*/
didBecomeFirstResponder: function() {
TestRunner.set('currentScene', 'noTargets');
2  apps/tests/states/ready_detail.js
View
@@ -16,7 +16,7 @@ TestRunner.READY_DETAIL = SC.Responder.create({
nextResponder: TestRunner.READY,
/**
- Show laoding targets view.
+ Show loading targets view.
*/
didBecomeFirstResponder: function() {
TestRunner.set('currentScene', 'testsDetail');
2  apps/tests/states/ready_empty.js
View
@@ -16,7 +16,7 @@ TestRunner.READY_EMPTY = SC.Responder.create({
nextResponder: TestRunner.READY,
/**
- Show laoding targets view.
+ Show loading targets view.
*/
didBecomeFirstResponder: function() {
TestRunner.set('currentScene', 'testsNone');
2  apps/tests/states/ready_list.js
View
@@ -16,7 +16,7 @@ TestRunner.READY_LIST = SC.Responder.create({
nextResponder: TestRunner.READY,
/**
- Show laoding targets view.
+ Show loading targets view.
*/
didBecomeFirstResponder: function() {
TestRunner.set('currentScene', 'testsMaster');
2  apps/tests/states/ready_no_tests.js
View
@@ -14,7 +14,7 @@ TestRunner.READY_NO_TESTS = SC.Responder.create({
nextResponder: TestRunner.READY,
/**
- Show laoding targets view.
+ Show loading targets view.
*/
didBecomeFirstResponder: function() {
TestRunner.set('currentScene', 'noTests');
2  apps/welcome/controllers/targets.js
View
@@ -14,7 +14,7 @@ Welcome.targetsController = SC.ArrayController.create(
/** @scope Welcome.targetsController.prototype */ {
/**
- Call this method whenever you want to relaod the targets from the server.
+ Call this method whenever you want to reload the targets from the server.
*/
reload: function() {
var targets = Welcome.store.find(CoreTools.TARGETS_QUERY);
2  frameworks/ajax/system/request.js
View
@@ -66,7 +66,7 @@ SC.Request = SC.Object.extend(SC.Copyable, SC.Freezable,
You may want to set this to NO if you are making simple CORS requests
in compatible browsers. See <a href="http://www.w3.org/TR/cors/">CORS
- Spec for more informatinon.</a>
+ Spec for more information.</a>
TODO: Add unit tests for this feature
4 frameworks/ajax/system/response.js
View
@@ -120,7 +120,7 @@ SC.Response = SC.Object.extend(
/**
If set, then will attempt to automatically parse response as XML
- regarldess of headers.
+ regardless of headers.
@field
@type Boolean
@@ -609,7 +609,7 @@ SC.XHRResponse = SC.Response.extend(
this.set('errorObject', error);
}
- // set the status - this will trigger changes on relatedp properties
+ // set the status - this will trigger changes on related properties
this.set('status', status);
}, this);
2  frameworks/ajax/tests/system/request.js
View
@@ -223,7 +223,7 @@ test("Timeouts - SC.Request didReceive callback", function() {
ok(elapsed >= 10,
'timeout must not fire earlier than 10msec - actual %@'.fmt(elapsed));
} else {
- // We received a response from thes server, which should never happen
+ // We received a response from the server, which should never happen
ok(false, 'timeout did not fire before response was received. should have fired after 10msec. response time: %@msec'.fmt(Date.now() - now));
}
});
6 frameworks/animation/core.js
View
@@ -19,7 +19,7 @@
- display, in a way. All animating display does is delay setting display:none
until <em>after</em> the transition duration has passed. This allows you
to set display:none after fading out. If mixing with CSS transitions, you will
- need to set the delay a tad longer to accomodate any delays in beginning the
+ need to set the delay a tad longer to accommodate any delays in beginning the
transition.
## Example Usage:
@@ -754,7 +754,7 @@ SC.Animatable = {
},
/**
- Overriden to support animation.
+ Overridden to support animation.
Works by copying the styles to the object's "style" property.
*/
@@ -1079,7 +1079,7 @@ SC.mixin(SC.Animatable, {
_ticks: 0,
_timer_start_time: null,
- // the global tiemr interval
+ // the global timer interval
interval: 10,
// the current time (a placeholder, really)
4 frameworks/core_foundation/controllers/array.js
View
@@ -223,7 +223,7 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
},
/**
- Removes the passed object from the array. If the underyling content
+ Removes the passed object from the array. If the underlying content
is a single object, then this simply sets the content to null. Otherwise
it will call removeObject() on the content.
@@ -524,7 +524,7 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
}.observes('orderBy'),
/** @private
- Whenver the content "status" property changes, relay out.
+ Whenever the content "status" property changes, relay out.
*/
_scac_contentStatusDidChange: function() {
this.notifyPropertyChange('status');
4 frameworks/core_foundation/ext/run_loop.js
View
@@ -29,12 +29,12 @@ SC.RunLoop = SC.RunLoop.extend(
Note that timers should fire only once per run loop to avoid the
situation where a timer might cause an infinite loop by constantly
- rescheduling itself everytime it is fired.
+ rescheduling itself every time it is fired.
*/
endRunLoop: function() {
this.fireExpiredTimers(); // fire them timers!
var ret = sc_super(); // do everything else
- this.scheduleNextTimeout(); // schedule a timout if timers remain
+ this.scheduleNextTimeout(); // schedule a timeout if timers remain
return ret;
},
2  frameworks/core_foundation/mixins/action_support.js
View
@@ -56,7 +56,7 @@ SC.ActionSupport =
actionContext: null,
/**
- Perform the action. If an action paramter is not provided, then
+ Perform the action. If an action parameter is not provided, then
the action defaults to the `action` property.
@param {String} [action] The action to fire.
2  frameworks/core_foundation/mixins/responder_context.js
View
@@ -220,7 +220,7 @@ SC.ResponderContext = {
@param {String} action name of action
@param {Object} sender object sending the action
- @param {Object} context optional additonal context info
+ @param {Object} context optional additional context info
@returns {SC.Responder} the responder that handled it or null
*/
sendAction: function(action, sender, context) {
2  frameworks/core_foundation/mixins/selection_support.js
View
@@ -65,7 +65,7 @@ SC.SelectionSupport = {
have groups or want to otherwise limit the kinds of objects that can be
selected.
- the default imeplementation returns firstObject property.
+ the default implementation returns firstObject property.
@returns {Object} first selectable object
*/
2  frameworks/core_foundation/protocols/sparse_array_delegate.js
View
@@ -13,7 +13,7 @@
array content as needed.
Your object does not need to implement all of these methods, but it should
- at least implment the sparseArrayDidRequestIndex() method.
+ at least implement the sparseArrayDidRequestIndex() method.
@since SproutCore 1.0
*/
2  frameworks/core_foundation/system/builder.js
View
@@ -154,7 +154,7 @@ SC.Builder.fn = {
new matched set.) The receiver will be saved so it can be popped later.
@param {Object|Array} content
- @returns {SC.Builder} new isntance
+ @returns {SC.Builder} new instance
*/
pushStack: function() {
// Build a new CoreQuery matched element set
2  frameworks/core_foundation/system/cursor.js
View
@@ -26,7 +26,7 @@ SC.HELP_CURSOR = 'help' ;
/**
@class SC.Cursor
- A Cursor object is used to sychronize the cursor used by multiple views at
+ A Cursor object is used to synchronize the cursor used by multiple views at
the same time. For example, thumb views within a split view acquire a cursor
instance from the split view and set it as their cursor. The split view is
able to update its cursor object to reflect the state of the split view.
10 frameworks/core_foundation/system/event.js
View
@@ -200,7 +200,7 @@ SC.mixin(SC.Event, /** @scope SC.Event */ {
SC.Event.add(anElement, "click", myClickHandler) ;
The most basic type of handler you can pass is a function. This function
- will be executed everytime an event of the type you specify occurs on the
+ will be executed every time an event of the type you specify occurs on the
named element. You can optionally pass an additional context object which
will be included on the event in the event.data property.
@@ -415,7 +415,7 @@ SC.mixin(SC.Event, /** @scope SC.Event */ {
@param {Element} elem the element the event targets
@param {String} eventType event type. mousedown, mouseup, etc
- @param {Hash} attrs optional additonal attributes to apply to event.
+ @param {Hash} attrs optional additional attributes to apply to event.
@returns {Hash} simulated event object
*/
simulateEvent: function(elem, eventType, attrs) {
@@ -436,7 +436,7 @@ SC.mixin(SC.Event, /** @scope SC.Event */ {
/**
Trigger an event execution immediately. You can use this method to
- simulate arbitrary events on arbitary elements.
+ simulate arbitrary events on arbitrary elements.
## Limitations
@@ -565,7 +565,7 @@ SC.mixin(SC.Event, /** @scope SC.Event */ {
if (val !== NO) val = ret;
- // if method returned NO, do not continue. Stop propogation and
+ // if method returned NO, do not continue. Stop propagation and
// return default. Note that we test explicitly for NO since
// if the handler returns no specific value, we do not want to stop.
if ( ret === NO ) {
@@ -874,7 +874,7 @@ SC.Event.prototype = {
},
/**
- Stops both the default action and further propogation. This is more
+ Stops both the default action and further propagation. This is more
convenient than calling both.
@returns {SC.Event} receiver
114 frameworks/core_foundation/system/locale.js
View
@@ -10,41 +10,41 @@
number formatting conventions, and localization strings. You can define
various locales by adding them to the SC.locales hash, keyed by language
and/or country code.
-
- On page load, the default locale will be chosen based on the current
- languages and saved at SC.Locale.current. This locale is used for
+
+ On page load, the default locale will be chosen based on the current
+ languages and saved at SC.Locale.current. This locale is used for
localization, etc.
-
+
## Creating a new locale
-
+
You can create a locale by simply extending the SC.Locale class and adding
it to the locales hash:
-
+
SC.Locale.locales['en'] = SC.Locale.extend({ .. config .. }) ;
-
+
Alternatively, you could choose to base your locale on another locale by
extending that locale:
-
+
SC.Locale.locales['en-US'] = SC.Locale.locales['en'].extend({ ... }) ;
-
+
Note that if you do not define your own strings property, then your locale
will inherit any strings added to the parent locale. Otherwise you must
implement your own strings instead.
-
+
@extends SC.Object
@since SproutCore 1.0
*/
SC.Locale = SC.Object.extend({
-
+
init: function() {
// make sure we know the name of our own locale.
if (!this.language) SC.Locale._assignLocales();
-
+
// Make sure we have strings that were set using the new API. To do this
- // we check to a bool that is set by one of the string helpers. This
+ // we check to a bool that is set by one of the string helpers. This
// indicates that the new API was used. If the new API was not used, we
- // check to see if the old API was used (which places strings on the
- // String class).
+ // check to see if the old API was used (which places strings on the
+ // String class).
if (!this.hasStrings) {
var langs = this._deprecatedLanguageCodes || [] ;
langs.push(this.language);
@@ -54,18 +54,18 @@ SC.Locale = SC.Object.extend({
strings = String[langs[idx]];
}
if (strings) {
- this.hasStrings = YES;
+ this.hasStrings = YES;
this.strings = strings ;
}
}
},
-
+
/** Set to YES when strings have been added to this locale. */
hasStrings: NO,
-
+
/** The strings hash for this locale. */
strings: {},
-
+
/**
The metrics for this locale. A metric is a singular value that is usually
used in a user interface layout, such as "width of the OK button".
@@ -76,18 +76,18 @@ SC.Locale = SC.Object.extend({
if (!this.language) SC.Locale._assignLocales() ;
return "SC.Locale["+this.language+"]"+SC.guidFor(this) ;
},
-
- /**
+
+ /**
Returns the localized version of the string or the string if no match
was found.
-
+
@param {String} string
@param {String} optional default string to return instead
@returns {String}
*/
locWithDefault: function(string, def) {
var ret = this.strings[string];
-
+
// strings may be blank, so test with typeOf.
if (SC.typeOf(ret) === SC.T_STRING) return ret;
else if (SC.typeOf(def) === SC.T_STRING) return def;
@@ -215,16 +215,16 @@ SC.Locale.mixin(/** @scope SC.Locale */ {
layoutKeys: ['left', 'top', 'right', 'bottom', 'width', 'height',
'minWidth', 'minHeight', 'centerX', 'centerY'],
- /**
- Invoked at the start of SproutCore's document onready handler to setup
+ /**
+ Invoked at the start of SproutCore's document onready handler to setup
the currentLocale. This will use the language properties you have set on
the locale to make a decision.
*/
createCurrentLocale: function() {
- // get values from String if defined for compatibility with < 1.0 build
+ // get values from String if defined for compatibility with < 1.0 build
// tools.
- var autodetect = (String.useAutodetectedLanguage !== undefined) ? String.useAutodetectedLanguage : this.useAutodetectedLanguage;
+ var autodetect = (String.useAutodetectedLanguage !== undefined) ? String.useAutodetectedLanguage : this.useAutodetectedLanguage;
var preferred = (String.preferredLanguage !== undefined) ? String.preferredLanguage : this.preferredLanguage ;
// determine the language
@@ -251,33 +251,33 @@ SC.Locale.mixin(/** @scope SC.Locale */ {
localeClassFor: function(lang) {
lang = SC.Locale.normalizeLanguage(lang) ;
var parent, klass = this.locales[lang];
-
+
// if locale class was not found and there is a broader-based locale
// present, create a new locale based on that.
if (!klass && ((parent = lang.split('-')[0]) !== lang) && (klass = this.locales[parent])) {
- klass = this.locales[lang] = klass.extend() ;
+ klass = this.locales[lang] = klass.extend() ;
}
-
+
// otherwise, try to create a new locale based on english.
if (!klass) klass = this.locales[lang] = this.locales.en.extend();
-
+
return klass;
},
- /**
+ /**
Shorthand method to define the settings for a particular locale.
The settings you pass here will be applied directly to the locale you
- designate.
+ designate.
If you are already holding a reference to a locale definition, you can
also use this method to operate on the receiver.
-
- If the locale you name does not exist yet, this method will create the
- locale for you, based on the most closely related locale or english. For
+
+ If the locale you name does not exist yet, this method will create the
+ locale for you, based on the most closely related locale or english. For
example, if you name the locale 'fr-CA', you will be creating a locale for
French as it is used in Canada. This will be based on the general French
locale (fr), since that is more generic. On the other hand, if you create
- a locale for manadarin (cn), it will be based on generic english (en)
+ a locale for mandarin (cn), it will be based on generic english (en)
since there is no broader language code to match against.
@param {String} localeName
@@ -292,20 +292,20 @@ SC.Locale.mixin(/** @scope SC.Locale */ {
SC.mixin(locale.prototype, options) ;
return locale ;
},
-
+
/**
- Gets the current options for the receiver locale. This is useful for
+ Gets the current options for the receiver locale. This is useful for
inspecting registered locales that have not been instantiated.
-
+
@returns {Hash} options + instance methods
*/
options: function() { return this.prototype; },
-
+
/**
Adds the passed hash of strings to the locale's strings table. Note that
- if the receiver locale inherits its strings from its parent, then the
+ if the receiver locale inherits its strings from its parent, then the
strings table will be cloned first.
-
+
@returns {Object} receiver
*/
addStrings: function(stringsHash) {
@@ -316,7 +316,7 @@ SC.Locale.mixin(/** @scope SC.Locale */ {
this.prototype.strings = SC.clone(strings) ;
}
} else strings = this.prototype.strings = {} ;
-
+
// add strings hash
if (stringsHash) this.prototype.strings = SC.mixin(strings, stringsHash) ;
this.prototype.hasStrings = YES ;
@@ -354,13 +354,13 @@ SC.Locale.mixin(/** @scope SC.Locale */ {
},
_map: { english: 'en', french: 'fr', german: 'de', japanese: 'ja', jp: 'ja', spanish: 'es' },
-
+
/**
Normalizes the passed language into a two-character language code.
This method allows you to specify common languages in their full english
name (i.e. English, French, etc). and it will be treated like their two
letter code equivalent.
-
+
@param {String} languageCode
@returns {String} normalized code
*/
@@ -368,19 +368,19 @@ SC.Locale.mixin(/** @scope SC.Locale */ {
if (!languageCode) return 'en' ;
return SC.Locale._map[languageCode.toLowerCase()] || languageCode ;
},
-
- // this method is called once during init to walk the installed locales
+
+ // this method is called once during init to walk the installed locales
// and make sure they know their own names.
_assignLocales: function() {
for(var key in this.locales) this.locales[key].prototype.language = key;
},
-
+
toString: function() {
if (!this.prototype.language) SC.Locale._assignLocales() ;
return "SC.Locale["+this.prototype.language+"]" ;
},
-
- // make sure important properties are copied to new class.
+
+ // make sure important properties are copied to new class.
extend: function() {
var ret= SC.Object.extend.apply(this, arguments) ;
ret.addStrings= SC.Locale.addStrings;
@@ -389,14 +389,14 @@ SC.Locale.mixin(/** @scope SC.Locale */ {
ret.toString = SC.Locale.toString ;
return ret ;
}
-
+
}) ;
-/**
+/**
This locales hash contains all of the locales defined by SproutCore and
by your own application. See the SC.Locale class definition for the
various properties you can set on your own locales.
-
+
@property {Hash}
*/
SC.Locale.locales = {
@@ -413,12 +413,12 @@ SC.Locale.locales = {
/**
This special helper will store the strings you pass in the locale matching
the language code. If a locale is not defined from the language code you
- specify, then one will be created for you with the english locale as the
+ specify, then one will be created for you with the english locale as the
parent.
-
+
@param {String} languageCode
@param {Hash} strings
- @returns {Object} receiver
+ @returns {Object} receiver
*/
SC.stringsFor = function(languageCode, strings) {
// get the locale, creating one if needed.
8 frameworks/core_foundation/system/platform.js
View
@@ -98,7 +98,7 @@ SC.platform = SC.Object.create({
cssPrefix: null,
/**
- Prefix for browsew specific CSS attributes when used in the DOM. Calculated later.
+ Prefix for browser specific CSS attributes when used in the DOM. Calculated later.
*/
domCSSPrefix: null,
@@ -171,7 +171,7 @@ SC.platform = SC.Object.create({
When simulating touch events, this method is called when mousemove events
are received.
- If the altKey is depresed and pinch center not yet established, we will capture the mouse position.
+ If the altKey is depressed and pinch center not yet established, we will capture the mouse position.
*/
_simtouch_mousemove: function(evt) {
if (!this._mousedown) {
@@ -316,7 +316,7 @@ SC.platform = SC.Object.create({
supportsAcceleratedLayers: NO,
/**
- Wether the browser supports the hashchange event.
+ Whether the browser supports the hashchange event.
*/
supportsHashChange: function() {
// Code copied from Modernizr which copied code from YUI (MIT licenses)
@@ -325,7 +325,7 @@ SC.platform = SC.Object.create({
}(),
/**
- Wether the browser supports HTML5 history.
+ Whether the browser supports HTML5 history.
*/
supportsHistory: function() {
return !!(window.history && window.history.pushState);
6 frameworks/core_foundation/system/render_context.js
View
@@ -152,7 +152,7 @@ SC.RenderContext = SC.Builder.create(
managed code (such as in CollectionView) can append or prepend content
instead.
- You probably do not want to change this propery unless you know what you
+ You probably do not want to change this property unless you know what you
are doing.
@property {String}
@@ -329,7 +329,7 @@ SC.RenderContext = SC.Builder.create(
}
}
- // attributes, styles, and class naems will already have been set.
+ // attributes, styles, and class names will already have been set.
// id="foo"
if (this._idDidChange && (value = this._id)) {
@@ -985,7 +985,7 @@ SC.RenderContext = SC.Builder.create(
});
/**
- html is an alias for push(). Makes thie object more CoreQuery like
+ html is an alias for push(). Makes the object more CoreQuery like
*/
SC.RenderContext.fn.html = SC.RenderContext.fn.push;
2  frameworks/core_foundation/system/responder.js
View
@@ -59,7 +59,7 @@ SC.Responder = SC.Object.extend( /** @scope SC.Responder.prototype */ {
hasFirstResponder: NO,
/** @property
- Set to YES if your view is willing to accept first responder status. This is used when calculcating key responder loop.
+ Set to YES if your view is willing to accept first responder status. This is used when calculating key responder loop.
*/
acceptsFirstResponder: YES,
12 frameworks/core_foundation/system/root_responder.js
View
@@ -52,7 +52,7 @@ SC.RootResponder = SC.Object.extend(
/** @scope SC.RootResponder.prototype */{
/**
- Contains a list of all panes currently visible on screen. Everytime a
+ Contains a list of all panes currently visible on screen. Every time a
pane attaches or detaches, it will update itself in this array.
*/
panes: null,
@@ -365,7 +365,7 @@ SC.RootResponder = SC.Object.extend(
/**
Handle window focus event for IE. Listening to the focus event is not
- reliable as per every focus event you receive you inmediately get a blur
+ reliable as per every focus event you receive you immediately get a blur
event (Only on IE of course ;)
*/
focusin: function() {
@@ -374,7 +374,7 @@ SC.RootResponder = SC.Object.extend(
/**
Handle window blur event for IE. Listening to the focus event is not
- reliable as per every focus event you receive you inmediately get a blur
+ reliable as per every focus event you receive you immediately get a blur
event (Only on IE of course ;)
*/
focusout: function() {
@@ -1698,7 +1698,7 @@ SC.RootResponder = SC.Object.extend(
IE's default behavior to blur textfields and other controls can only be
blocked by returning NO to this event. However we don't want to block
its default behavior otherwise textfields won't lose focus by clicking on
- an empty area as it's expected. If you want to block IE from bluring another
+ an empty area as it's expected. If you want to block IE from blurring another
control set blockIEDeactivate to true on the specific view in which you
want to avoid this. Think of an autocomplete menu, you want to click on
the menu but don't loose focus.
@@ -1707,7 +1707,7 @@ SC.RootResponder = SC.Object.extend(
var toElement = evt.toElement;
if (toElement && toElement.tagName && toElement.tagName!=="IFRAME") {
var view = SC.$(toElement).view()[0];
- //The following line is neccesary to allow/block text selection for IE,
+ //The following line is necessary to allow/block text selection for IE,
// in combination with the selectstart event.
if (view && view.get('blocksIEDeactivate')) return NO;
}
@@ -1919,7 +1919,7 @@ SC.RootResponder = SC.Object.extend(
this._lastMoveY = evt.clientY;
SC.run(function() {
- // make sure the view gets focus no matter what. FF is inconsistant
+ // make sure the view gets focus no matter what. FF is inconsistent
// about this.
// this.focus();
// only do mouse[Moved|Entered|Exited|Dragged] if not in a drag session
6 frameworks/core_foundation/system/timer.js
View
@@ -19,7 +19,7 @@
Timers were created for SproutCore as a way to efficiently defer execution
of code fragments for use in Animations, event handling, and other tasks.
- Browsers are typically fairly inconsistant about when they will fire a
+ Browsers are typically fairly inconsistent about when they will fire a
timeout or interval based on what the browser is currently doing. Timeouts
and intervals are also fairly expensive for a browser to execute, which
means if you schedule a large number of them it can quickly slow down the
@@ -28,7 +28,7 @@
Timers, on the other handle, are scheduled cooperatively using the
SC.RunLoop, which uses exactly one timeout to fire itself when needed and
then executes by timers that need to fire on its own. This approach can
- be many timers faster than using timers and gaurantees that timers scheduled
+ be many timers faster than using timers and guarantes that timers scheduled
to execute at the same time generally will do so, keeping animations and
other operations in sync.
@@ -414,7 +414,7 @@ SC.Timer = SC.Object.extend(
Resets the timer settings with the new settings. This is the method
called by the Timer pool when a timer is reused. You will not normally
call this method yourself, though you could override it if you need to
- reset additonal properties when a timer is reused.
+ reset additional properties when a timer is reused.
@params {Hash} props properties to copy over
@returns {SC.Timer} receiver
2  frameworks/core_foundation/tests/system/event.js
View
@@ -13,7 +13,7 @@
// WebKit browsers have equal values for keyCode and charCode on keypress event
test("commandCodes() : should handle equal keyCode and charCode on keypress", function () {
- // 115 is alose keyCode for F4 button
+ // 115 is also keyCode for F4 button
var codes = new SC.Event({ type: 'keypress', keyCode: 115, charCode: 115 }).commandCodes();
equals(codes[0], null, 'command');
equals(codes[1], 's', 'char');
22 frameworks/core_foundation/tests/system/locale.js
View
@@ -55,27 +55,27 @@ test("Locale.addStrings() : Should be able to add the passed hash of strings to
//Added the new languages to the existing list of locales
SC.Locale.addStrings(newLocales);
- //Result should be true as the new lacales added to the list of default locales
+ //Result should be true as the new locales added to the list of default locales
equals(true, SC.Locale.options().strings.chinese === 'zh' && SC.Locale.options().strings.dutch === 'nl') ;
});
test("Locale.options() : Should provide the registered locales that have not been instantiated", function() {
//hash of new languages
- var newLocales = { jamican: 'ji', korean: 'ko'};
+ var newLocales = { jamaican: 'ji', korean: 'ko'};
//Added the new languages to the existing list of locales
SC.Locale.addStrings(newLocales);
- //Options should return the list of registered locales, so checking if the retruned object has strings.
+ //Options should return the list of registered locales, so checking if the returned object has strings.
equals(SC.Locale.options().hasStrings, true) ;
//Checking the strings with default locales.
- equals(true, SC.Locale.options().strings.jamican === 'ji' && SC.Locale.options().strings.korean === 'ko') ;
+ equals(true, SC.Locale.options().strings.jamaican === 'ji' && SC.Locale.options().strings.korean === 'ko') ;
});
test("Locale.normalizeLanguage() : Should provide the two character language code for the passed locale", function() {
- //If nothing is passed this will retrun the default code as 'en'
+ //If nothing is passed this will return the default code as 'en'
equals(SC.Locale.normalizeLanguage(), 'en') ;
//If the language is passed as 'English' this will return the code as 'en'
@@ -85,17 +85,17 @@ test("Locale.normalizeLanguage() : Should provide the two character language cod
equals(SC.Locale.normalizeLanguage('ab'), 'ab') ;
});
-test("Locale.toString() : Should retrun the current language set with the guid value", function() {
+test("Locale.toString() : Should return the current language set with the guid value", function() {
// Creating the new locale by extending an existing Locale object
SC.Locale.locales['mx'] = SC.Locale.extend({ _deprecatedLanguageCodes: ['mexican'] }) ;
- //Result should retrun the chinese object
+ //Result should return the chinese object
equals(SC.Locale.locales.mx.currentLocale.isObject, true) ;
});
-test("Locale.createCurrentLocale() : Should create the Lacale Object for the language selected", function() {
- //This will match the browser language with the SC lanuage and create the object accordingly
+test("Locale.createCurrentLocale() : Should create the Locale Object for the language selected", function() {
+ //This will match the browser language with the SC language and create the object accordingly
// This test will pass only for the default languages i.e en, fr, de, ja, es, it.
equals(true, SC.Locale.createCurrentLocale().language === SC.browser.language) ;
@@ -123,7 +123,7 @@ test("Locale.define() : Should be able to define a particular type of locale", f
shortNames: ['C','A','Y','N']
});
- //Result should retrun the new locale object
+ //Result should return the new locale object
equals(SC.Locale.locales.xy.isClass, true) ;
});
@@ -135,6 +135,6 @@ test("Locale.extend() : Should make sure important properties of Locale object a
//Added the new languages to the existing list of locales through the new locale object
SC.Locale.locales.mn.addStrings(testLocales);
- //Result should be true as the new lacales added to the list of default locales
+ //Result should be true as the new locales added to the list of default locales
equals(SC.Locale.locales.mn.options().strings.test,'te') ;
});
2  frameworks/core_foundation/tests/system/render_context/helpers_className.js
View
@@ -85,7 +85,7 @@ module("SC.RenderContext#addClass", {
}
});
-test("shoudl return receiver", function() {
+test("shouldl return receiver", function() {
equals(context.addClass('foo'), context, "receiver");
});
2  frameworks/core_foundation/tests/system/selection_set/remove.js
View
@@ -97,7 +97,7 @@ test("removing index set should also remove individually added objects", functio
ok(set.contains(objToRemove), 'set should contain objToRemove');
ok(set.contains(objToNotRemove), 'set should contain objToNotRemove');
- equals(set.get('length'), 5, 'set.length sould == two objects + index.length');
+ equals(set.get('length'), 5, 'set.length should == two objects + index.length');
// now remove from array set
set.remove(array, 2, 4);
4 frameworks/core_foundation/tests/views/view/createChildViews.js
View
@@ -20,7 +20,7 @@ test("calls createChildView() for each class or string in childViews array", fun
'customClassName' // string - should be called
],
- // this shuld be used for the 'customClassName' item above
+ // this should be used for the 'customClassName' item above
customClassName: SC.View.extend({ key: 2 }),
// patch to record results...
@@ -71,7 +71,7 @@ test("should not throw error when there is an extra space in the childViews list
var called = [];
var v = SC.View.create({
childViews: "customClassName customKlassName".w(),
- // this shuld be used for the 'customClassName' item above
+ // this should be used for the 'customClassName' item above
customClassName: SC.View.extend({ key: 2 }),
customKlassName: SC.View.extend({ key: 3 })
});
12 frameworks/core_foundation/views/view.js
View
@@ -296,7 +296,7 @@ SC.CoreView.reopen(
run at the end of the run loop, or you can call updateLayerIfNeeded()
to force the layer to update immediately.
- Instead of overriding this method, consider overidding the render() method
+ Instead of overriding this method, consider overriding the render() method
instead, which is called both when creating and updating a layer. If you
do not want your render() method called when updating a layer, then you
should override this method instead.
@@ -1033,7 +1033,7 @@ SC.CoreView.reopen(
/** @property
Set to YES if your view is willing to accept first responder status. This
- is used when calculcating key responder loop.
+ is used when calculating key responder loop.
*/
acceptsFirstResponder: NO,
@@ -1344,7 +1344,7 @@ SC.CoreView.reopen(
} else {
// attrs should always exist...
if (!attrs) { attrs = {} ; }
- // clone the hash that was given so we dont pollute it if it's being reused
+ // clone the hash that was given so we do not pollute it if it's being reused
else { attrs = SC.clone(attrs); }
}
@@ -1377,7 +1377,7 @@ SC.CoreView.reopen(
to override this function to always return YES , instead of setting
isTextSelectable to true.
- For example in textfield you dont want to enable textSelection on the text
+ For example in textfield you do not want to enable textSelection on the text
hint only on the actual text you are entering. You can achieve that by
only overriding this method.
@@ -1586,7 +1586,7 @@ SC.CoreView.mixin(/** @scope SC.CoreView.prototype */ {
},
/**
- Internal method actually updates the localizated attributes on the view
+ Internal method actually updates the localized attributes on the view
class. This is overloaded in design mode to also save the attributes.
*/
applyLocalizedAttributes: function(loc) {
@@ -1645,7 +1645,7 @@ SC.CoreView.unload = function() {
- `init` -- override this method for any general object setup (such as
observers, starting timers and animations, etc) that you need to happen
- everytime the view is created, regardless of whether or not its layer
+ every time the view is created, regardless of whether or not its layer
exists yet.
- `render` -- override this method to generate or update your HTML to reflect
the current state of your view. This method is called both when your view
2  frameworks/core_foundation/views/view/layout.js
View
@@ -838,7 +838,7 @@ SC.View.reopen(
/**
One of two methods that are invoked whenever one of your childViews
- layout changes. This method is invoked everytime a child view's layout
+ layout changes. This method is invoked every time a child view's layout
changes to give you a chance to record the information about the view.
Since this method may be called many times during a single run loop, you
2  frameworks/core_foundation/views/view/theming.js
View
@@ -358,7 +358,7 @@ SC.View._RenderDelegateProxy = {
the view's render delegate, if present. You may specify a default value to
return if there is no such property or is no render delegate.
- The generated property is read+write, so it may be overriden.
+ The generated property is read+write, so it may be overridden.
@param {String} propertyName The name of the property to get from the render delegate..
@param {Value} def The default value to use if the property is not present.
4 frameworks/datastore/data_sources/data_source.js
View
@@ -260,7 +260,7 @@ SC.DataSource = SC.Object.extend( /** @scope SC.DataSource.prototype */ {
queries, you can do so by passing a SC.SparseArray instance instead of
a regular array of storeKeys and then populate the sparse array on demand.
- ### Handling Errors and Cancelations
+ ### Handling Errors and Cancellations
If you encounter an error while trying to fetch the results for a query
you can call SC.Store#dataSourceDidErrorQuery() instead. This will put
@@ -424,7 +424,7 @@ SC.DataSource = SC.Object.extend( /** @scope SC.DataSource.prototype */ {
},
/**
- Called from `commitRecords()` to commit destroted records to the
+ Called from `commitRecords()` to commit destroyed records to the
store. You can override this method to actually send the destroyed
records to your store. The default version will simply call
`destroyRecord()` for each storeKey.
8 frameworks/datastore/models/record.js
View
@@ -336,7 +336,7 @@ SC.Record = SC.Object.extend(
/**
You can invoke this method anytime you need to make the record as dirty.
- This will cause the record to be commited when you `commitChanges()`
+ This will cause the record to be committed when you `commitChanges()`
on the underlying store.
If you use the `writeAttribute()` primitive, this method will be called
@@ -691,7 +691,7 @@ SC.Record = SC.Object.extend(
Lets you commit this specific record to the store which will trigger
the appropriate methods in the data source for you.
- @param {Hash} params optional additonal params that will passed down
+ @param {Hash} params optional additional params that will passed down
to the data source
@param {boolean} recordOnly optional param if you want to only commit a single
record if it has a parent.
@@ -913,7 +913,7 @@ SC.Record = SC.Object.extend(
if (!id && (pk = recordType.prototype.primaryKey)) {
id = hash[pk];
- // In case there isnt a primary key supplied then we create on
+ // In case there is not a primary key supplied then we create on
// on the fly
sk = id ? store.storeKeyExists(recordType, id) : null;
if (sk){
@@ -1352,7 +1352,7 @@ SC.Record.mixin( /** @scope SC.Record */ {
Will return one of the following:
1. `SC.SingleAttribute` that converts the underlying ID to a single
- record. If you modify this property, it will rewrite the underyling
+ record. If you modify this property, it will rewrite the underlying
ID. It will also modify the inverse of the relationship, if you set it.
2. `SC.ChildAttribute` that you can edit the contents
of this relationship.
2  frameworks/datastore/models/record_attribute.js
View
@@ -377,7 +377,7 @@ SC.RecordAttribute.mixin(
- `to(value, attr, klass, record, key)` converts the passed value
(which will be of the class expected by the attribute) into the
underlying attribute value
- - `from(value, attr, klass, record, key)` converts the underyling
+ - `from(value, attr, klass, record, key)` converts the underlying
attribute value into a value of the class
You can also provide an array of keys to observer on the return value.
2  frameworks/datastore/system/many_array.js
View
@@ -255,7 +255,7 @@ SC.ManyArray = SC.Object.extend(SC.Enumerable, SC.Array,
// objects are added and removed
if (inverse) {
- // notive removals
+ // notify removals
for(i=0;i<amt;i++) {
inverseRecord = toRemove[i];
attr = inverseRecord ? inverseRecord[inverse] : null;
4 frameworks/datastore/system/nested_store.js
View
@@ -77,7 +77,7 @@ SC.NestedStore = SC.Store.extend(
/** @private
Array contains the base revision for an attribute hash when it was first
cloned from the parent store. If the attribute hash is edited and
- commited, the commit will fail if the parent attributes hash has been
+ committed, the commit will fail if the parent attributes hash has been
edited since.
This is a form of optimistic locking, hence the name.
@@ -402,7 +402,7 @@ SC.NestedStore = SC.Store.extend(
/** @private - bookkeeping for a single data hash. */
dataHashDidChange: function(storeKeys, rev, statusOnly, key) {
// update the revision for storeKey. Use generateStoreKey() because that
- // gaurantees a universally (to this store hierarchy anyway) unique
+ // guarantes a universally (to this store hierarchy anyway) unique
// key value.
if (!rev) rev = SC.Store.generateStoreKey();
var isArray, len, idx, storeKey;
6 frameworks/datastore/system/query.js
View
@@ -967,7 +967,7 @@ SC.Query = SC.Object.extend(SC.Copyable, SC.Freezable,
c = inputString.charAt(i);
// set true after end of delimeted token so that
- // final delimeter is not catched again
+ // final delimeter is not caught again
skipThisCharacter = false;
@@ -1485,7 +1485,7 @@ SC.Query.mixin( /** @scope SC.Query */ {
/** @private
- Hash of registered comparisons by propery name.
+ Hash of registered comparisons by property name.
*/
SC.Query.comparisons = {};
@@ -1506,7 +1506,7 @@ SC.Query.registerComparison = function(propertyName, comparison) {
/**
Call to register an extension for the query language.
- You shoud provide a name for your extension and a definition
+ You should provide a name for your extension and a definition
specifying how it should be parsed and evaluated.
Have a look at `queryLanguage` for examples of definitions.
2  frameworks/datastore/system/record_array.js
View
@@ -279,7 +279,7 @@ SC.RecordArray = SC.Object.extend(SC.Enumerable, SC.Array,
/**
Adds the specified record to the record array if it is not already part
- of the array. Provided for compatibilty with `SC.Set`.
+ of the array. Provided for compatibility with `SC.Set`.
@param {SC.Record} record
@returns {SC.RecordArray} receiver
14 frameworks/datastore/system/store.js
View
@@ -487,7 +487,7 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
dataHashDidChange: function(storeKeys, rev, statusOnly, key) {
// update the revision for storeKey. Use generateStoreKey() because that
- // gaurantees a universally (to this store hierarchy anyway) unique
+ // guarantes a universally (to this store hierarchy anyway) unique
// key value.
if (!rev) rev = SC.Store.generateStoreKey();
var isArray, len, idx, storeKey;
@@ -678,7 +678,7 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
/** @private
Called by a nested store on a parent store to commit any changes from the
- store. This will copy any changed dataHashes as well as any persistant
+ store. This will copy any changed dataHashes as well as any persistent
change logs.
If the parentStore detects a conflict with the optimistic locking, it will
@@ -1136,7 +1136,7 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
}
// Finally return materialized record, after we propagate the status to
- // any aggregrate records.
+ // any aggregate records.
ret = this.materializeRecord(storeKey);
if (ret) ret.propagateToAggregates();
return ret;
@@ -1714,7 +1714,7 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
@param {String} id to id of the record to load
@param {SC.Record} recordType the expected record type
@param {Number} storeKey (optional) optional store key
- @param {Function} callback (optional) when refresh complets
+ @param {Function} callback (optional) when refresh completes
@returns {Boolean} YES if the retrieval was a success.
*/
refreshRecord: function(recordType, id, storeKey, callback) {
@@ -1729,7 +1729,7 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
@param {SC.Record|Array} recordTypes class or array of classes
@param {Array} ids ids to destroy
@param {Array} storeKeys (optional) store keys to destroy
- @param {Function} callback (optional) when refresh complets
+ @param {Function} callback (optional) when refresh completes
@returns {Boolean} YES if the retrieval was a success.
*/
refreshRecords: function(recordTypes, ids, storeKeys, callback) {
@@ -1821,7 +1821,7 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
ret = source.commitRecords.call(source, this, retCreate, retUpdate, retDestroy, params);
}
- //remove all commited changes from changelog
+ //remove all committed changes from changelog
if (ret && !recordTypes && !ids) {
if (storeKeys === this.changelog) {
this.changelog = null;
@@ -1844,7 +1844,7 @@ SC.Store = SC.Object.extend( /** @scope SC.Store.prototype */ {
@param {SC.Record} recordType the expected record type
@param {String} id the id of the record to commit
@param {Number} storeKey the storeKey of the record to commit
- @param {Hash} params optional additonal params that will passed down
+ @param {Hash} params optional additional params that will passed down
to the data source
@param {Function|Array} callback function or array of functions
@returns {Boolean} if the action was successful.
2  frameworks/datastore/tests/models/many_attribute.js
View
@@ -332,7 +332,7 @@ test("adding a record to a many-to-many; bar side", function() {
bar3.get('fooToMany').pushObject(foo2);
- // v-- since bar3 is added throught inverse, it should follow orderBy
+ // v-- since bar3 is added through inverse, it should follow orderBy
equals(foo2.get('barToMany').indexOf(bar3), 1, 'foo1.barToMany should contain bar1');
ok(bar3.get('fooToMany').indexOf(foo2) >= 0, 'bar1.fooToMany should contain foo1');
6 frameworks/datastore/tests/models/nested_records/nested_record.js
View
@@ -164,7 +164,7 @@ test("Basic Read", function() {
ok(storeRef, 'checking that the store has the instance of the child record with proper primary key');
equals(cr, storeRef, "checking the parent reference is the same as the direct store reference");
- // Check to see if the attributes of a Child Record match the refrence of the parent
+ // Check to see if the attributes of a Child Record match the reference of the parent
same(storeRef.get('attributes'), testParent.readAttribute('info'), "check that the ChildRecord's attributes are the same as the ParentRecord's readAttribute for the reference");
// Duplication check
@@ -211,7 +211,7 @@ test("Basic Write As a Hash", function() {
ok(cr.get('status') & SC.Record.DIRTY, 'check that the child record is dirty');
ok(testParent.get('status') & SC.Record.DIRTY, 'check that the parent record is dirty');
var newCR = testParent.get('info');
- same(newCR, cr, "after a set('name', <new>) on child, checking to see that the parent has recieved the changes from the child record");
+ same(newCR, cr, "after a set('name', <new>) on child, checking to see that the parent has received the changes from the child record");
same(testParent.readAttribute('info'), cr.get('attributes'), "after a set('name', <new>) on child, readAttribute on the parent should be correct for info child attributes");
});
@@ -248,7 +248,7 @@ test("Basic Write As a Child Record", function() {
ok(cr.get('status') & SC.Record.DIRTY, 'check that the child record is dirty');
ok(testParent.get('status') & SC.Record.DIRTY, 'check that the parent record is dirty');
var newCR = testParent.get('info');
- same(newCR, cr, "after a set('name', <new>) on child, checking to see that the parent has recieved the changes from the child record");
+ same(newCR, cr, "after a set('name', <new>) on child, checking to see that the parent has received the changes from the child record");
same(testParent.readAttribute('info'), cr.get('attributes'), "after a set('name', <new>) on child, readAttribute on the parent should be correct for info child attributes");
// Make sure you can set the child to null.
4 frameworks/datastore/tests/models/nested_records/nested_record_array.js
View
@@ -170,7 +170,7 @@ test("Basic Read", function() {
ok(storeRef, 'check that first ChildRecord that the store has the instance of the child record with proper primary key');
equals(cr, storeRef, "check the parent reference to the first child is the same as the direct store reference");
- // Check to see if the attributes of a Child Record match the refrence of the parent
+ // Check to see if the attributes of a Child Record match the reference of the parent
var parentArray = testParent.readAttribute('elements');
ok(!SC.instanceOf(parentArray, SC.ChildArray), "check that get() creates an actual instance of a SC.ChildArray");
same(parentArray[0], storeRef.get('attributes'), "check that the ChildRecord's attributes are the same as the ParentRecord's readAttribute for the reference");
@@ -234,7 +234,7 @@ test("Basic Write: reference tests", function() {
ok(testParent.get('status') & SC.Record.DIRTY, 'check that the parent record is dirty');
newElems = testParent.get('elements');
var newCR = newElems.objectAt(0);
- same(newCR, cr, "after a set('name', <new>) on child, checking to see that the parent has recieved the changes from the child record");
+ same(newCR, cr, "after a set('name', <new>) on child, checking to see that the parent has received the changes from the child record");
var readAttrsArray = testParent.readAttribute('elements');
ok(readAttrsArray, "checks to make sure the readAttibute works with a change to the name in the first child.");
equals(readAttrsArray.length, 4, "after set() on parent, check that the length of the attribute array of child records is 4");
6 frameworks/datastore/tests/models/nested_records/nested_record_array_complex.js
View
@@ -196,7 +196,7 @@ test("Basic Read, Testing the First Child Array", function() {
ok(pStore, 'check that first ChildRecord that the store has the instance of the child record with proper primary key');
equals(p, pStore, "check the parent reference to the first child is the same as the direct store reference");
- // Check to see if the attributes of a Child Record match the refrence of the parent
+ // Check to see if the attributes of a Child Record match the reference of the parent
pplAttr = testParent.readAttribute('people');
ok(!SC.instanceOf(pplAttr, SC.ChildArray), "check that readAttribute() does not create an actual instance of a SC.ChildArray");
same(pplAttr[0], pStore.get('attributes'), "check that the ChildRecord's attributes are the same as the ParentRecord's readAttribute for the reference");
@@ -237,7 +237,7 @@ test("Basic Read, Testing the Second Child Array", function() {
ok(aStore, 'check that first ChildRecord that the store has the instance of the child record with proper primary key');
equals(a, aStore, "check the parent reference to the first child is the same as the direct store reference");
- // Check to see if the attributes of a Child Record match the refrence of the parent
+ // Check to see if the attributes of a Child Record match the reference of the parent
addrsAttr = p.readAttribute('addresses');
ok(!SC.instanceOf(addrsAttr, SC.ChildArray), "check that readAttribute() does not create an actual instance of a SC.ChildArray");
same(addrsAttr[0], aStore.get('attributes'), "check that the ChildRecord's attributes are the same as the ParentRecord's readAttribute for the reference");
@@ -274,7 +274,7 @@ test("Basic Write: Testing the First Child Array", function() {
ok(SC.kindOf(p, SC.Record), "check that first ChildRecord from the get() creates an actual instance that is a kind of a SC.Record Object");
ok(SC.instanceOf(p, NestedRecord.Person), "check that first ChildRecord from the get() creates an actual instance of a Person Object");
- // TODO: [EG] Add test to make sure the number of ChildRecords in store is correct when we add store recored clearing
+ // TODO: [EG] Add test to make sure the number of ChildRecords in store is correct when we add store record clearing
// Check reference information
pm = p.get('primaryKey');
4 frameworks/datastore/tests/models/nested_records/nested_record_complex.js
View
@@ -278,14 +278,14 @@ function() {
ok(testParent.get('status') & SC.Record.DIRTY, 'check that the parent record is dirty');
oldP = p;
p = testParent.get('person');
- same(p, oldP, "after a set('name', <new>) on child, checking to see that the parent has recieved the changes from the child record");
+ same(p, oldP, "after a set('name', <new>) on child, checking to see that the parent has received the changes from the child record");
same(testParent.readAttribute('person'), p.get('attributes'), "after a set('name', <new>) on child, readAttribute on the parent should be correct for info child attributes");
// Check changes on the address
a = testParent.getPath('person.address');
a.set('street', '321 Nutty Professor Lane');
parentAttrs = testParent.readAttribute('person');
- same(a.get('attributes'), parentAttrs.address, "after a set('street', <new>) on address child, checking to see that the parent has recieved the changes from the child record");
+ same(a.get('attributes'), parentAttrs.address, "after a set('street', <new>) on address child, checking to see that the parent has received the changes from the child record");
});
test("Basic normalize()", function() {
2  frameworks/datastore/tests/models/record/destroy.js
View
@@ -23,7 +23,7 @@ module("SC.Record#destroy", {
MyApp.foo = MyApp.store.createRecord(MyApp.Foo, MyApp.json);
- // modify store so that everytime refreshRecords() is called it updates
+ // modify store so that every time refreshRecords() is called it updates
// callInfo
callInfo = null ;
MyApp.store.__orig = MyApp.store.destroyRecord;
2  frameworks/datastore/tests/models/record/refresh.js
View
@@ -23,7 +23,7 @@ module("SC.Record#refresh", {
MyApp.foo = MyApp.store.createRecord(MyApp.Foo, MyApp.json);
- // modify store so that everytime refreshRecords() is called it updates
+ // modify store so that every time refreshRecords() is called it updates
// callInfo
callInfo = null ;
MyApp.store.refreshRecord = function(records) {
2  frameworks/datastore/tests/models/record_attribute.js
View
@@ -138,7 +138,7 @@ test("pass-through should return builtin value" ,function() {
equals(rec.get('firstName'), 'John', 'reading prop should get attr value');
});
-test("returns default value if underyling value is empty", function() {
+test("returns default value if underlying value is empty", function() {
equals(rec.get('defaultValue'), 'default', 'reading prop should return default value');
});
2  frameworks/datastore/tests/system/nested_store/commitChangesFromNestedStore.js
View
@@ -23,7 +23,7 @@ module("SC.NestedStore#commitChangesFromNestedStore", {
store = parent.chain();
child = store.chain(); // test multiple levels deep
- // wirte basic status
+ // write basic status
child.writeDataHash(storeKey, json, SC.Record.READY_DIRTY);
child.dataHashDidChange(storeKey);
child.changelog = SC.Set.create();
2  frameworks/datastore/tests/system/nested_store/readDataHash.js
View
@@ -150,7 +150,7 @@ test("data state=EDITABLE", function() {
});
test("should return null when accessing an unknown storeKey", function() {
- equals(store.readDataHash(20000000), null, 'shuld return null for non-existant store key');
+ equals(store.readDataHash(20000000), null, 'should return null for non-existent store key');
equals(store.storeKeyEditState(20000000), SC.Store.LOCKED, 'should put into locked edit state');
});
2  frameworks/datastore/tests/system/query/parse.js
View
@@ -217,7 +217,7 @@ test("token tree should build", function() {
q.parse();
ok(q._tokenList.length == 13, 'list should have 13 tokens');
ok(!q._tokenTree.error, 'there should be no errors');
- ok(q._tokenTree.tokenValue == 'AND', 'tree root shoud be AND');
+ ok(q._tokenTree.tokenValue == 'AND', 'tree root should be AND');
});
2  frameworks/datastore/tests/system/store/cancelRecord.js
View
@@ -49,6 +49,6 @@ test("Check for error state handling and make sure that the method executes.", f
}catch (error){
throwError=false;
}
- ok(throwError, " cancelRecord was succesfully executed.");
+ ok(throwError, " cancelRecord was successfully executed.");
});
2  frameworks/datastore/tests/system/store/commitChangesFromNestedStore.js
View
@@ -22,7 +22,7 @@ module("SC.Store#commitChangesFromNestedStore", {
child = store.chain(); // test multiple levels deep
- // wirte basic status
+ // write basic status
child.writeDataHash(storeKey, json, SC.Record.READY_DIRTY);
child.dataHashDidChange(storeKey);
child.changelog = SC.Set.create();
6 frameworks/datastore/tests/system/store/pushRelationships.js
View
@@ -252,7 +252,7 @@ test("A slave does NOT update a relationship [one(slave) to *]", function () {
ok(SC.none(s1.get('relative')), 'precond2 - s1 has no relative');
equals(r1.get('slave'), s1, 'test1- r1 is related to s1');
- // case - create slave WITH releationship
+ // case - create slave WITH relationship
SC.RunLoop.begin();
MyApp.store.loadRecords(MyApp.Relative, [
{ guid: 'r2'}
@@ -1087,7 +1087,7 @@ test("RecordAttribute flag 'lazilyInstantiate' tests", function () {
equals(m1.get('slave'), s1, 'm1 should be master of s1');
// test lazy creation fails on isMaster => NO
- ok(SC.none(m2), 'm2 should NOT have been creaetd');
+ ok(SC.none(m2), 'm2 should NOT have been created');
ok(!s2.get('master') ||
s2.get('master').get('status') & SC.Record.ERROR, 's2 should have no master record');
});
@@ -1133,7 +1133,7 @@ test("RecordAttribute flag 'lazilyInstantiate' can be a function", function () {
ok(!s1, 's1 should NOT be created lazily');
// test lazy creation fails on isMaster => NO
- ok(SC.none(m2), 'm2 should NOT have been creaetd');
+ ok(SC.none(m2), 'm2 should NOT have been created');
ok(!s2.get('master') ||
s2.get('master').get('status') & SC.Record.ERROR, 's2 should have no master record');
});
2  frameworks/datastore/tests/system/store/readDataHash.js
View
@@ -68,7 +68,7 @@ test("data state=EDITABLE", function() {
});
test("should return null when accessing an unknown storeKey", function() {
- equals(store.readDataHash(20000000), null, 'shuld return null for non-existant store key');
+ equals(store.readDataHash(20000000), null, 'should return null for non-existent store key');
equals(store.storeKeyEditState(storeKey), SC.Store.LOCKED, 'should put into locked edit state');
});
6 frameworks/datetime/frameworks/core/system/datetime.js
View
@@ -259,7 +259,7 @@ SC.DateTime = SC.Object.extend(SC.Freezable, SC.Copyable,
/**
Returns a new `SC.DateTime` object advanced according the the given parameters.
- Don't use floating point values, it might give unpredicatble results.
+ Don't use floating point values, it might give unpredictable results.
@see SC.DateTime#create for the list of options you can pass
@param {Hash} options the amount of date/time to advance the receiver
@@ -522,7 +522,7 @@ SC.DateTime.mixin(SC.Comparable,
/**
@private
- The index of the lastest cached value. Used with `_DT_CACHE_MAX_LENGTH` to
+ The index of the latest cached value. Used with `_DT_CACHE_MAX_LENGTH` to
limit the size of the cache.
@type Integer
@@ -851,7 +851,7 @@ SC.DateTime.mixin(SC.Comparable,
local timezone. If you want to create a UTC+2 (CEST) date, for example,
then you should pass a timezone of -120.
- @param options one of the three kind of parameters descibed above
+ @param options one of the three kind of parameters described above
@returns {SC.DateTime} the SC.DateTime instance that corresponds to the
passed parameters, possibly fetched from cache
*/
2  frameworks/desktop/core.js
View
@@ -11,7 +11,7 @@
page in the browser history, which is the default behavior in most browsers.
Usually it is best to leave this property set to `NO` in order to prevent the
- user from inadvertantly losing data by pressing the backspace key.
+ user from inadvertently losing data by pressing the backspace key.
@static
@type Boolean
2  frameworks/desktop/mixins/collection_row_delegate.js
View
@@ -71,7 +71,7 @@ SC.CollectionRowDelegate = {
/**
Index set of rows that should have a custom row height. If you need
- certains rows to have a custom row height, then set this property to a
+ certain rows to have a custom row height, then set this property to a
non-null value. Otherwise leave it blank to disable custom row heights.
@type SC.IndexSet
2  frameworks/desktop/mixins/collection_view_delegate.js
View
@@ -157,7 +157,7 @@ SC.CollectionViewDelegate = {
The default implementation always returns `YES`.
@param {SC.CollectionView} view the collection view
- @returns {Boolean} YES to alow, NO to prevent it
+ @returns {Boolean} YES to allow, NO to prevent it
*/
collectionViewShouldBeginDrag: function(view) {
return YES;
2  frameworks/desktop/panes/alert.js
View
@@ -214,7 +214,7 @@ SC.AlertPane = SC.PanelPane.extend(
}.property('message').cacheable(),
/**
- An optional detailed decription. Use this string to provide further
+ An optional detailed description. Use this string to provide further
explanation of the condition and, optionally, ways the user can resolve
the problem.
2  frameworks/desktop/panes/palette.js
View
@@ -22,7 +22,7 @@ sc_require('panes/panel');
Palette pane is a simple way to provide non-modal messaging that won't
blocks the user's interaction with your application. Palette panes are
- useful for showing important detail informations with flexsible position.
+ useful for showing important detail information with flexible position.
They provide a better user experience than modal panel.
@extends SC.PanelPane
14 frameworks/desktop/panes/picker.js
View
@@ -12,7 +12,7 @@ sc_require('panes/palette');
default: initiated just below the anchor.
shift x, y to optimized picker visibility and make sure top-left corner is always visible.
menu : same as default rule +
- default(1,4,3) or custom offset below the anchor for default location to fine tunned visual alignment +
+ default(1,4,3) or custom offset below the anchor for default location to fine tuned visual alignment +
enforce min left(7px)/right(8px) padding to the window
fixed : default(1,4,3) or custom offset below the anchor for default location to cope with specific anchor and skip fitPositionToScreen
pointer :take default [0,1,2,3,2] or custom matrix to choose one of four perfect pointer positions.Ex:
@@ -435,7 +435,7 @@ SC.PickerPane = SC.PalettePane.extend(
/** @private
This method will return ret (x, y, width, height) from a rectangular element
- Notice: temp hack for calculating visiable anchor height by counting height
+ Notice: temp hack for calculating visible anchor height by counting height
up to window bottom only. We do have 'clippingFrame' supported from view.
But since our anchor can be element, we use this solution for now.
*/
@@ -455,7 +455,7 @@ SC.PickerPane = SC.PalettePane.extend(
height: bounding.height
};
// If width and height are undefined this means we are in IE or FF<3.5
- // if we didnt get the frame dimensions the do the calculations
+ // if we did not get the frame dimensions the do the calculations
// based on an element
if(ret.width===undefined || ret.height===undefined){
cq = SC.$(anchor);
@@ -771,9 +771,9 @@ SC.PickerPane = SC.PalettePane.extend(
}
}
- // set up preferMatrix according to type if not provided excplicitly:
+ // set up preferMatrix according to type if not provided explicitly:
// take default [0,1,2,3,2] for picker, [3,0,1,2,3] for menu picker if
- // custom matrix not provided excplicitly
+ // custom matrix not provided explicitly
if(!this.preferMatrix || this.preferMatrix.length !== 5) {
// menu-picker default re-position rule :
// perfect bottom (3) > perfect right (0) > perfect left (1) > perfect top (2)
@@ -845,7 +845,7 @@ SC.PickerPane = SC.PalettePane.extend(
/** @private
Internal method to hide the overflow on the body to make sure we don't
- show scrollbars when the picker has shadows, as it's really anoying.
+ show scrollbars when the picker has shadows, as it's really annoying.
*/
_hideOverflow: function(){
var body = SC.$(document.body),
@@ -862,7 +862,7 @@ SC.PickerPane = SC.PalettePane.extend(
/** @private
Internal method to show the overflow on the body to make sure we don't
- show scrollbars when the picker has shadows, as it's really anoying.
+ show scrollbars when the picker has shadows, as it's really annoying.
*/
_showOverflow: function(){
var body = SC.$(document.body);
2  frameworks/desktop/protocols/drag_data_source.js
View
@@ -10,7 +10,7 @@ sc_require('system/drag') ;
/**
@namespace
- This procol implements a dynamic data source for a drag operation. You can
+ This protocol implements a dynamic data source for a drag operation. You can
return a set of allowed data types and then the method will be used to
actually get data in that format when requested.
*/
16 frameworks/desktop/protocols/drop_target.js
View
@@ -35,7 +35,7 @@ sc_require('system/drag');
once during every drag session. computeDragOperations, if called at all, may be
called more than once before the dragEntered method is called. Once dragEntered
is called, you are at guaranteed that both dragUpdated and dragExited will be
- called at some point, followed by either dragEnded or additonal
+ called at some point, followed by either dragEnded or additional
computeDragOperation calls.
*/
SC.DropTarget = {
@@ -66,7 +66,7 @@ SC.DropTarget = {
dragStarted: function(drag, evt) {},
/**
- Called when the drag first enters the droppable area, if it returns a
+ Called when the drag first enters the dropable area, if it returns a
drag operations other than `SC.DRAG_NONE`.
The default implementation does nothing.
@@ -77,7 +77,7 @@ SC.DropTarget = {
dragEntered: function(drag, evt) {},
/**
- Called periodically when a drag is over your droppable area.
+ Called periodically when a drag is over your dropable area.
Override this method this to update various elements of the drag state,
including the location of ghost view. You should use this method to
@@ -96,8 +96,8 @@ SC.DropTarget = {
dragUpdated: function(drag, evt) {},
/**
- Called when the user exits your droppable area or the drag ends
- and you were the last targeted droppable area.
+ Called when the user exits your dropable area or the drag ends
+ and you were the last targeted dropable area.
Override this method to perform any clean up on your UI such as hiding
a special highlight state or removing insertion points.
@@ -128,8 +128,8 @@ SC.DropTarget = {
valid in a given area.
Override this method to return an OR'd mask of the allowed drag
- operations. If the user drags over a droppable area within another
- droppable area, the drag will latch onto the deepest view that returns one
+ operations. If the user drags over a dropable area within another
+ dropable area, the drag will latch onto the deepest view that returns one
or more available operations.
The default implementation returns `SC.DRAG_NONE`
@@ -167,7 +167,7 @@ SC.DropTarget = {
/**
Called to actually perform the drag operation.
- Overide this method to actually perform the drag operation. This method
+ Override this method to actually perform the drag operation. This method
is only called if you returned `YES` in `acceptDragOperation()`.
Return the operation that was actually performed or `SC.DRAG_NONE` if the
4 frameworks/desktop/protocols/responder.js
View
@@ -26,7 +26,7 @@ SC.ResponderProtocol = {
//
/**
- Called when the mouse is pressed. You must return `YES` to recieve
+ Called when the mouse is pressed. You must return `YES` to receive
mouseDragged and mouseUp in the future.
@param evt {SC.Event} the mousedown event
@@ -118,7 +118,7 @@ SC.ResponderProtocol = {
@param charCode {String} the character code
@param evt {SC.Event} the keydown event
- @returns {Boolean} YES if you handled th emethod; NO otherwise
+ @returns {Boolean} YES if you handled the method; NO otherwise
*/
performKeyEquivalent: function(charCode, evt) { return false; },
4 frameworks/desktop/render_delegates/disclosure.js
View
@@ -18,7 +18,7 @@ SC.BaseTheme.disclosureRenderDelegate = SC.RenderDelegate.create({
var labelId = SC.guidFor(dataSource) + "-label";
- //addresing accessibility
+ //addressing accessibility
context.attr('aria-expanded', value);
context.attr('aria-labelledby', labelId);
@@ -42,7 +42,7 @@ SC.BaseTheme.disclosureRenderDelegate = SC.RenderDelegate.create({
value = dataSource.get('value'),
title = dataSource.get('title');
- //addresing accessibility
+ //addressing accessibility
jquery.attr('aria-expanded', value);
if (dataSource.get('isSelected')) jquery.addClass('sel');
8 frameworks/desktop/system/drag.js
View
@@ -71,7 +71,7 @@ SC.View.reopen(
@class
An instance of this object is created whenever a drag occurs. The instance
- manages the mouse/touch events and coordinating with droppable targets until the
+ manages the mouse/touch events and coordinating with dropable targets until the
user releases the mouse button.
To initiate a drag, you should call `SC.Drag.start()` with the options below
@@ -335,7 +335,7 @@ SC.Drag = SC.Object.extend(
_dragInProgress: YES,
/** @private
- Stores the initial visibililty state of the dragView so it can be restored
+ Stores the initial visibility state of the dragView so it can be restored
after the drag
*/
_dragViewWasVisible: null,
@@ -360,7 +360,7 @@ SC.Drag = SC.Object.extend(
var dv = this._getDragView() ;
var pv = dv.get('parentView') ;
- // convert to global cooridinates
+ // convert to global coordinates
var origin = pv ? pv.convertFrameToView(dv.get('frame'), null) : dv.get('frame') ;
if (this.get('ghost')) {
@@ -885,7 +885,7 @@ SC.Drag = SC.Object.extend(
/** @private
Returns an array of scrollable views, sorted with nested scrollable views
at the top of the array. The first time this method is called during a