Permalink
Browse files

converted most (all?) usage of `NO` in Blossom to `false`

  • Loading branch information...
1 parent f83777c commit 5a2f1de2028af3ea8c4019ddbda42e26ba7ce7a8 @erichocean erichocean committed Feb 17, 2012
Showing with 1,815 additions and 1,815 deletions.
  1. +1 −1 SPROUTCORE-CHANGELOG
  2. +15 −15 application/controllers/array.js
  3. +6 −6 application/controllers/object.js
  4. +3 −3 application/controllers/plugin.js
  5. +1 −1 application/controllers/tree.js
  6. +3 −3 application/core.js
  7. +1 −1 application/debug/control_test_pane.js
  8. +2 −2 application/debug/invoke_once_last_debugging.js
  9. +1 −1 application/debug/monitor.js
  10. +1 −1 application/docs/CollectionView State Charts.graffle
  11. +1 −1 application/ext/plugin.js
  12. +4 −4 application/ext/run_loop.js
  13. +2 −2 application/layers/layer.js
  14. +10 −10 application/mixins/animatable.js
  15. +9 −9 application/mixins/button.js
  16. +8 −8 application/mixins/collection_content.js
  17. +4 −4 application/mixins/collection_fast_path.js
  18. +7 −7 application/mixins/collection_view_delegate.js
  19. +3 −3 application/mixins/control.js
  20. +11 −11 application/mixins/editable.js
  21. +7 −7 application/mixins/responder_context.js
  22. +1 −1 application/mixins/selection_support.js
  23. +2 −2 application/mixins/tree_item_content.js
  24. +1 −1 application/mixins/validatable.js
  25. +3 −3 application/panes/alert.js
  26. +6 −6 application/panes/menu.js
  27. +2 −2 application/panes/palette.js
  28. +13 −13 application/panes/pane.js
  29. +2 −2 application/panes/panel.js
  30. +1 −1 application/panes/sheet.js
  31. +7 −7 application/private/state_path_matcher.js
  32. +6 −6 application/private/tree_item_observer.js
  33. +2 −2 application/protocols/drag_source.js
  34. +23 −23 application/protocols/responder.js
  35. +1 −1 application/states/history_state.js
  36. +18 −18 application/states/state.js
  37. +3 −3 application/surfaces/surface.js
  38. +8 −8 application/system/application.js
  39. +7 −7 application/system/bundle.js
  40. +1 −1 application/system/cookie.js
  41. +5 −5 application/system/core_query.js
  42. +6 −6 application/system/device.js
  43. +12 −12 application/system/drag.js
  44. +50 −50 application/system/event.js
  45. +1 −1 application/system/exception_handler.js
  46. +2 −2 application/system/image_cache.js
  47. +2 −2 application/system/locale.js
  48. +10 −10 application/system/platform.js
  49. +5 −5 application/system/ready.js
  50. +16 −16 application/system/render_context.js
  51. +3 −3 application/system/responder.js
  52. +22 −22 application/system/root_responder.js
  53. +1 −1 application/system/routes.js
  54. +22 −22 application/system/statechart.js
  55. +4 −4 application/system/task_queue.js
  56. +3 −3 application/system/user_defaults.js
  57. +4 −4 application/system/utils.js
  58. +1 −1 application/validators/not_empty.js
  59. +6 −6 application/validators/validator.js
  60. +14 −14 application/views/button.js
  61. +4 −4 application/views/checkbox.js
  62. +47 −47 application/views/collection.js
  63. +4 −4 application/views/date_field.js
  64. +2 −2 application/views/disclosure.js
  65. +8 −8 application/views/field.js
  66. +2 −2 application/views/image.js
  67. +16 −16 application/views/inline_text_field.js
  68. +8 −8 application/views/label.js
  69. +4 −4 application/views/list.js
  70. +30 −30 application/views/list_item.js
  71. +7 −7 application/views/menu_item.js
  72. +10 −10 application/views/menu_scroll.js
  73. +2 −2 application/views/plugin_view.js
  74. +8 −8 application/views/popup_button.js
  75. +3 −3 application/views/progress.js
  76. +6 −6 application/views/radio.js
  77. +27 −27 application/views/scroll.js
  78. +11 −11 application/views/scroller.js
  79. +11 −11 application/views/segmented.js
  80. +7 −7 application/views/select.js
  81. +10 −10 application/views/select_button.js
  82. +3 −3 application/views/select_field.js
  83. +5 −5 application/views/slider.js
  84. +1 −1 application/views/source_list.js
  85. +2 −2 application/views/source_list_group.js
  86. +17 −17 application/views/split.js
  87. +17 −17 application/views/text_field.js
  88. +1 −1 application/views/thumb.js
  89. +32 −32 application/views/view.js
  90. +1 −1 application/views/web.js
  91. +1 −1 arraytests.js
  92. +6 −6 datastore/data_sources/cascade.js
  93. +26 −26 datastore/data_sources/data_source.js
  94. +7 −7 datastore/data_sources/fixtures.js
  95. +1 −1 datastore/debug/standard_setup.js
  96. +1 −1 datastore/docs/Design Charts.graffle
  97. +1 −1 datastore/docs/SproutCore Datastore Design.graffle/data.plist
  98. +1 −1 datastore/mixins/relationship_support.js
  99. +1 −1 datastore/models/fetched_attribute.js
  100. +3 −3 datastore/models/many_attribute.js
  101. +10 −10 datastore/models/record.js
  102. +8 −8 datastore/models/record_attribute.js
  103. +2 −2 datastore/models/single_attribute.js
  104. +1 −1 datastore/system/many_array.js
  105. +7 −7 datastore/system/nested_store.js
  106. +8 −8 datastore/system/query.js
  107. +4 −4 datastore/system/record_array.js
  108. +25 −25 datastore/system/store.js
  109. +14 −14 examples/blossom_test/button_view.js
  110. +1 −1 foundation/core.js
  111. +1 −1 foundation/mixins/array.js
  112. +15 −15 foundation/mixins/enumerable.js
  113. +1 −1 foundation/mixins/freezable.js
  114. +7 −7 foundation/mixins/observable.js
  115. +1 −1 foundation/private/observer_queue.js
  116. +7 −7 foundation/private/observer_set.js
  117. +3 −3 foundation/protocols/sparse_array_delegate.js
  118. +1 −1 foundation/system/benchmark.js
  119. +18 −18 foundation/system/binding.js
  120. +1 −1 foundation/system/date_time.js
  121. +1 −1 foundation/system/error.js
  122. +9 −9 foundation/system/index_set.js
  123. +2 −2 foundation/system/logger.js
  124. +18 −18 foundation/system/object.js
  125. +4 −4 foundation/system/range_observer.js
  126. +2 −2 foundation/system/ready.js
  127. +13 −13 foundation/system/request.js
  128. +14 −14 foundation/system/response.js
  129. +6 −6 foundation/system/run_loop.js
  130. +16 −16 foundation/system/selection_set.js
  131. +6 −6 foundation/system/set.js
  132. +1 −1 foundation/system/sparse_array.js
  133. +10 −10 foundation/system/timer.js
  134. +1 −1 tests/application/qunit/desktop/mixins/animatable.js
  135. +1 −1 tests/application/qunit/desktop/panes/menu/methods.js
  136. +7 −7 tests/application/qunit/desktop/panes/menu/ui.js
  137. +1 −1 tests/application/qunit/desktop/panes/pane_page.js
  138. +6 −6 tests/application/qunit/desktop/panes/select_button/methods.js
  139. +32 −32 tests/application/qunit/desktop/panes/select_button/ui.js
  140. +1 −1 tests/application/qunit/desktop/panes/sheet/ui.js
  141. +5 −5 tests/application/qunit/desktop/views/button/methods.js
  142. +25 −25 tests/application/qunit/desktop/views/button/ui.js
  143. +9 −9 tests/application/qunit/desktop/views/checkbox/methods.js
  144. +3 −3 tests/application/qunit/desktop/views/checkbox/ui.js
  145. +4 −4 tests/application/qunit/desktop/views/collection/content.js
  146. +5 −5 tests/application/qunit/desktop/views/collection/deleteSelection.js
  147. +1 −1 tests/application/qunit/desktop/views/collection/displayProperties.js
  148. +1 −1 tests/application/qunit/desktop/views/collection/itemViewForContentIndex.js
  149. +33 −33 tests/application/qunit/desktop/views/collection/mouse.js
  150. +3 −3 tests/application/qunit/desktop/views/collection/nowShowing.js
  151. +2 −2 tests/application/qunit/desktop/views/collection/reload.js
  152. +2 −2 tests/application/qunit/desktop/views/collection/selectNextItem.js
  153. +3 −3 tests/application/qunit/desktop/views/collection/selectPreviousItem.js
  154. +1 −1 tests/application/qunit/desktop/views/collection/ui_diagram.js
  155. +5 −5 tests/application/qunit/desktop/views/date_field/methods.js
  156. +13 −13 tests/application/qunit/desktop/views/date_field/ui.js
  157. +3 −3 tests/application/qunit/desktop/views/disclosure/ui.js
  158. +1 −1 tests/application/qunit/desktop/views/list/rowHeightForContentIndex.js
  159. +1 −1 tests/application/qunit/desktop/views/list/rowOffsetForContentIndex.js
  160. +2 −2 tests/application/qunit/desktop/views/list/ui_alternatingrows.js
  161. +1 −1 tests/application/qunit/desktop/views/list/ui_outline.js
  162. +4 −4 tests/application/qunit/desktop/views/list/ui_row_heights.js
  163. +3 −3 tests/application/qunit/desktop/views/list/ui_simple.js
  164. +8 −8 tests/application/qunit/desktop/views/list_item.js
  165. +3 −3 tests/application/qunit/desktop/views/progress/methods.js
  166. +2 −2 tests/application/qunit/desktop/views/progress/ui.js
  167. +5 −5 tests/application/qunit/desktop/views/radio/methods.js
  168. +2 −2 tests/application/qunit/desktop/views/radio/ui.js
  169. +8 −8 tests/application/qunit/desktop/views/scroll/ui.js
  170. +4 −4 tests/application/qunit/desktop/views/scroller.js
  171. +2 −2 tests/application/qunit/desktop/views/segmented/methods.js
  172. +3 −3 tests/application/qunit/desktop/views/segmented/ui.js
  173. +5 −5 tests/application/qunit/desktop/views/select/methods.js
  174. +33 −33 tests/application/qunit/desktop/views/select/ui.js
  175. +2 −2 tests/application/qunit/desktop/views/select_field/methods.js
  176. +6 −6 tests/application/qunit/desktop/views/select_field/ui.js
  177. +1 −1 tests/application/qunit/desktop/views/split/methods.js
  178. +2 −2 tests/application/qunit/desktop/views/split/ui.js
  179. +4 −4 tests/application/qunit/desktop/views/web/ui.js
  180. +1 −1 tests/application/qunit/foundation/controllers/array/enum_case.js
  181. +4 −4 tests/application/qunit/foundation/controllers/array/null_case.js
  182. +8 −8 tests/application/qunit/foundation/controllers/array/selection_support.js
  183. +11 −11 tests/application/qunit/foundation/controllers/array/single_case.js
  184. +3 −3 tests/application/qunit/foundation/controllers/object/empty_case.js
  185. +4 −4 tests/application/qunit/foundation/controllers/object/multiple_case.js
  186. +2 −2 tests/application/qunit/foundation/controllers/object/single_case.js
  187. +4 −4 tests/application/qunit/foundation/controllers/object/single_enumerable_case.js
  188. +1 −1 tests/application/qunit/foundation/controllers/tree/outline_case.js
  189. +3 −3 tests/application/qunit/foundation/controllers/tree/selection_support.js
  190. +2 −2 tests/application/qunit/foundation/debug/control_test_pane/ui.js
  191. +4 −4 tests/application/qunit/foundation/integration/creating_views.js
  192. +3 −3 tests/application/qunit/foundation/mixins/button/content.js
  193. +5 −5 tests/application/qunit/foundation/mixins/button/displayProperties.js
  194. +2 −2 tests/application/qunit/foundation/mixins/content_display.js
  195. +3 −3 tests/application/qunit/foundation/mixins/control/content.js
  196. +5 −5 tests/application/qunit/foundation/mixins/control/displayProperties.js
  197. +13 −13 tests/application/qunit/foundation/mixins/inline_text_field/beginEditing.js
  198. +3 −3 tests/application/qunit/foundation/mixins/responder_context.js
  199. +2 −2 tests/application/qunit/foundation/mixins/validatable/ui.js
  200. +2 −2 tests/application/qunit/foundation/private/tree_item_observer/flat_case.js
  201. +7 −7 tests/application/qunit/foundation/private/tree_item_observer/group_case.js
  202. +6 −6 tests/application/qunit/foundation/private/tree_item_observer/outline_case.js
  203. +9 −9 tests/application/qunit/foundation/system/core_query/setClass.js
  204. +3 −3 tests/application/qunit/foundation/system/core_query/within.js
  205. +3 −3 tests/application/qunit/foundation/system/render_context/end.js
  206. +11 −11 tests/application/qunit/foundation/system/render_context/helpers_className.js
  207. +3 −3 tests/application/qunit/foundation/system/render_context/init.js
  208. +3 −3 tests/application/qunit/foundation/system/root_responder/makeKeyPane.js
  209. +1 −1 tests/application/qunit/foundation/system/root_responder/makeMenuPane.js
  210. +1 −1 tests/application/qunit/foundation/system/root_responder/root_responder.js
  211. +3 −3 tests/application/qunit/foundation/system/routes.js
  212. +20 −20 tests/application/qunit/foundation/system/utils/rect.js
  213. +2 −2 tests/application/qunit/foundation/views/container/ui.js
  214. +1 −1 tests/application/qunit/foundation/views/image/ui.js
  215. +9 −9 tests/application/qunit/foundation/views/label/ui.js
  216. +3 −3 tests/application/qunit/foundation/views/pane/append_remove.js
  217. +3 −3 tests/application/qunit/foundation/views/pane/firstResponder.js
  218. +10 −10 tests/application/qunit/foundation/views/pane/keyPane.js
  219. +6 −6 tests/application/qunit/foundation/views/text_field/methods.js
  220. +11 −11 tests/application/qunit/foundation/views/text_field/ui.js
  221. +3 −3 tests/application/qunit/foundation/views/view/init.js
  222. +3 −3 tests/application/qunit/foundation/views/view/isVisible.js
  223. +6 −6 tests/application/qunit/foundation/views/view/isVisibleInWindow.js
  224. +9 −9 tests/application/qunit/foundation/views/view/layoutChildViews.js
  225. +2 −2 tests/application/qunit/foundation/views/view/layoutDidChange.js
  226. +1 −1 tests/application/qunit/foundation/views/view/layoutStyle.js
  227. +2 −2 tests/application/qunit/foundation/views/view/nextValidKeyView.js
  228. +12 −12 tests/application/qunit/foundation/views/view/prepareContext.js
  229. +4 −4 tests/application/qunit/foundation/views/view/render.js
  230. +10 −10 tests/application/qunit/foundation/views/view/updateLayer.js
  231. +5 −5 tests/application/qunit/foundation/views/view/updateLayerLocation.js
  232. +1 −1 tests/application/qunit/statechart/basic.js
  233. +2 −2 tests/application/qunit/statechart/transient.js
  234. +8 −8 tests/datastore/qunit/data_sources/cascade.js
  235. +20 −20 tests/datastore/qunit/data_sources/data_source.js
  236. +1 −1 tests/datastore/qunit/integration/contact_model.js
  237. +2 −2 tests/datastore/qunit/integration/cyclical_relationship.js
  238. +1 −1 tests/datastore/qunit/integration/many_array.js
  239. +1 −1 tests/datastore/qunit/integration/test_runner_model.js
  240. +2 −2 tests/datastore/qunit/models/many_attribute.js
  241. +3 −3 tests/datastore/qunit/models/record/core_methods.js
  242. +1 −1 tests/datastore/qunit/models/record/error_methods.js
  243. +2 −2 tests/datastore/qunit/models/record/storeDidChangeProperties.js
  244. +2 −2 tests/datastore/qunit/models/record_attribute.js
  245. +7 −7 tests/datastore/qunit/models/single_attribute.js
  246. +5 −5 tests/datastore/qunit/system/nested_store/chain.js
  247. +4 −4 tests/datastore/qunit/system/nested_store/commitChanges.js
  248. +10 −10 tests/datastore/qunit/system/nested_store/commitChangesFromNestedStore.js
  249. +2 −2 tests/datastore/qunit/system/nested_store/dataHashDidChange.js
  250. +1 −1 tests/datastore/qunit/system/nested_store/discardChanges.js
  251. +4 −4 tests/datastore/qunit/system/nested_store/readDataHash.js
  252. +1 −1 tests/datastore/qunit/system/nested_store/readEditableDataHash.js
  253. +1 −1 tests/datastore/qunit/system/nested_store/removeDataHash.js
  254. +1 −1 tests/datastore/qunit/system/query/compare.js
  255. +12 −12 tests/datastore/qunit/system/query/contains.js
  256. +1 −1 tests/datastore/qunit/system/query/copy.js
  257. +10 −10 tests/datastore/qunit/system/record_array/flush.js
  258. +4 −4 tests/datastore/qunit/system/store/commitChangesFromNestedStore.js
  259. +1 −1 tests/datastore/qunit/system/store/commitRecord.js
  260. +2 −2 tests/datastore/qunit/system/store/core_methods.js
  261. +2 −2 tests/datastore/qunit/system/store/createRecord.js
  262. +3 −3 tests/datastore/qunit/system/store/dataHashDidChange.js
  263. +26 −26 tests/datastore/qunit/system/store/pushRelationships.js
  264. +1 −1 tests/datastore/qunit/system/store/removeDataHash.js
  265. +4 −4 tests/datastore/qunit/system/store/retrieveRecord.js
  266. +5 −5 tests/foundation/qunit/foundation/system/datetime.js
  267. +4 −4 tests/foundation/qunit/foundation/system/request.js
  268. +2 −2 tests/foundation/qunit/foundation/system/timer/invalidate.js
  269. +8 −8 tests/foundation/qunit/foundation/system/timer/invokeLater.js
  270. +5 −5 tests/foundation/qunit/foundation/system/timer/isPaused.js
  271. +8 −8 tests/foundation/qunit/foundation/system/timer/schedule.js
  272. +1 −1 tests/foundation/qunit/runtime/tests/core/clone.js
  273. +15 −15 tests/foundation/qunit/runtime/tests/mixins/enumerable.js
  274. +2 −2 tests/foundation/qunit/runtime/tests/mixins/observable/observable.js
  275. +1 −1 tests/foundation/qunit/runtime/tests/mixins/observable/propertyChanges.js
  276. +15 −15 tests/foundation/qunit/runtime/tests/system/binding.js
  277. +4 −4 tests/foundation/qunit/runtime/tests/system/error.js
  278. +1 −1 tests/foundation/qunit/runtime/tests/system/index_set/clone.js
  279. +8 −8 tests/foundation/qunit/runtime/tests/system/index_set/contains.js
  280. +1 −1 tests/foundation/qunit/runtime/tests/system/index_set/create.js
  281. +6 −6 tests/foundation/qunit/runtime/tests/system/index_set/intersects.js
  282. +16 −16 tests/foundation/qunit/runtime/tests/system/object/base.js
  283. +6 −6 tests/foundation/qunit/runtime/tests/system/object/bindings.js
  284. +2 −2 tests/foundation/qunit/runtime/tests/system/range_observer/create.js
  285. +11 −11 tests/foundation/qunit/runtime/tests/system/range_observer/objectPropertyDidChange.js
  286. +2 −2 tests/foundation/qunit/runtime/tests/system/range_observer/rangeDidChange.js
  287. +1 −1 tests/foundation/qunit/runtime/tests/system/selection_set/add.js
  288. +1 −1 tests/foundation/qunit/runtime/tests/system/selection_set/isEqual.js
  289. +2 −2 tests/foundation/qunit/runtime/tests/system/selection_set/remove.js
  290. +9 −9 tests/foundation/qunit/runtime/tests/system/set.js
  291. +1 −1 tests/foundation/qunit/runtime/tests/system/sparse_array.js
  292. +6 −6 tests/test_suites/array/base.js
  293. +2 −2 tests/test_suites/array/insertAt.js
  294. +1 −1 tests/test_suites/array/popObject.js
  295. +5 −5 tests/test_suites/array/rangeObserver.js
  296. +1 −1 tests/test_suites/array/removeAt.js
  297. +1 −1 tests/test_suites/array/removeObject.js
  298. +1 −1 tests/test_suites/array/shiftObject.js
View
@@ -191,7 +191,7 @@ MISCELLANEOUS
* FocusRings for SC.ButtonView
* Adding a handy escapeForRegExp method to String
* Alignment support for SC.SegmentedView
-* allowing text fields to only apply changes on blur via applyImmediately: NO
+* allowing text fields to only apply changes on blur via applyImmediately: false
* Added a property to enable/disable textfield tabbing.
* Removed mobile framework as it was unnecessary
* Update all encodings to be valid UTF-8
@@ -50,7 +50,7 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
content: null,
/**
- Makes the array editable or not. If this is set to NO, then any attempts
+ Makes the array editable or not. If this is set to false, then any attempts
at changing the array content itself will throw an exception.
@property {Boolean}
@@ -101,13 +101,13 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
deleted. This is a convenient way to manage lists of items owned
by a parent record object.
- Note that even if this is set to NO, calling destroyObject() instead of
+ Note that even if this is set to false, calling destroyObject() instead of
removeObject() will still destroy the object in question as well as
removing it from the parent array.
@property {Boolean}
*/
- destroyOnRemoval: NO,
+ destroyOnRemoval: false,
/**
Returns an SC.Array object suitable for use in a CollectionView.
@@ -133,7 +133,7 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
if (ret) {
return !content.isEnumerable ||
(SC.typeOf(content.removeObject) === SC.T_FUNCTION);
- } else return NO ;
+ } else return false ;
}.property('content', 'isEditable', 'hasContent'),
/**
@@ -167,13 +167,13 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
if (ret) {
return (SC.typeOf(content.addObject) === SC.T_FUNCTION) ||
(SC.typeOf(content.pushObject) === SC.T_FUNCTION);
- } else return NO ;
+ } else return false ;
}.property('content', 'isEditable'),
/**
Set to true if the controller has valid content that can be displayed,
- even an empty array. Returns NO if the content is null or not enumerable
- and allowsSingleContent is NO.
+ even an empty array. Returns false if the content is null or not enumerable
+ and allowsSingleContent is false.
@property {Boolean}
*/
@@ -317,10 +317,10 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
},
/** @private
- Cached observable content property. Set to NO to indicate cache is
+ Cached observable content property. Set to false to indicate cache is
invalid.
*/
- _scac_cached: NO,
+ _scac_cached: false,
/**
@private
@@ -335,7 +335,7 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
*/
_scac_observableContent: function() {
var ret = this._scac_cached;
- if (ret !== NO) return ret;
+ if (ret !== false) return ret;
var content = this.get('content'),
orderBy, func, t, len;
@@ -379,7 +379,7 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
var idx=0, status=0, key, aValue, bValue, descending;
for(idx=0;(idx<len)&&(status===0);idx++) {
key = orderBy.objectAt(idx);
- descending = NO;
+ descending = false;
if (key.indexOf('ASC') > -1) {
key = key.split('ASC ')[1];
@@ -417,7 +417,7 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
*/
_scac_contentDidChange: function() {
- this._scac_cached = NO; // invalidate observable content
+ this._scac_cached = false; // invalidate observable content
var cur = this.get('content'),
orders = !!this.get('orderBy'),
@@ -441,7 +441,7 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
ro = null;
// save new cached values
- this._scac_cached = NO;
+ this._scac_cached = false;
this._scac_content = cur ;
// setup new observers
@@ -479,7 +479,7 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
this._scac_length = newlen;
this.beginPropertyChanges();
- this._scac_cached = NO; // invalidate
+ this._scac_cached = false; // invalidate
this.enumerableContentDidChange(0, newlen, newlen-oldlen);
this.endPropertyChanges();
this.updateSelectionAfterContentChange();
@@ -495,7 +495,7 @@ SC.ArrayController = SC.Controller.extend(SC.Array, SC.SelectionSupport,
var content = this.get('content');
this._scac_length = content.get('length');
- this._scac_cached = NO; // invalidate
+ this._scac_cached = false; // invalidate
// if array length has changed, just notify every index from min up
if (indexes) {
@@ -76,18 +76,18 @@ SC.ObjectController = SC.Controller.extend(
the enumerable and return it. set() will set the property on every item
in the enumerable.
- If NO, then setting content to an enumerable with multiple items will be
- treated like setting a null value. hasContent will be NO.
+ If false, then setting content to an enumerable with multiple items will be
+ treated like setting a null value. hasContent will be false.
@property {Boolean}
*/
- allowsMultipleContent: NO,
+ allowsMultipleContent: false,
/**
Becomes true whenever this object is managing content. Usually this means
the content property contains a single object or an array or enumerable
with a single item. Array's or enumerables with multiple items will
- normally make this property NO unless allowsMultipleContent is true.
+ normally make this property false unless allowsMultipleContent is true.
@property {Boolean}
*/
@@ -113,7 +113,7 @@ SC.ObjectController = SC.Controller.extend(
when setting content to an enumerable, this may return a different object.
Note that if you set the content to an enumerable which itself contains
- enumerables and allowsMultipleContent is NO, this will become null.
+ enumerables and allowsMultipleContent is false, this will become null.
@property {Object}
*/
@@ -219,7 +219,7 @@ SC.ObjectController = SC.Controller.extend(
isSame = true;
cur = value.objectAt(0);
while((--loc > 0) && isSame) {
- if (cur !== value.objectAt(loc)) isSame = NO ;
+ if (cur !== value.objectAt(loc)) isSame = false ;
}
if (isSame) value = cur;
} else value = undefined; // empty array.
@@ -174,7 +174,7 @@ SC.PluginController = SC.Object.create(
/** @private */
_appendPlugin: function(plugin) {
- if(!plugin || !plugin.isPlugin) return NO;
+ if(!plugin || !plugin.isPlugin) return false;
plugin.append();
},
@@ -192,7 +192,7 @@ SC.PluginController = SC.Object.create(
jobs = hooks.filter(function(job) {
if(job.plugin === pluginName) {
console.warn("apprently ", job.plugin, " == ", pluginName);
- return true; } else { return NO; } });
+ return true; } else { return false; } });
if(jobs.length > 0) {
while(jobs.length > 0) {
var job = jobs.shift();
@@ -218,7 +218,7 @@ SC.PluginController = SC.Object.create(
plugins[loadable.name] = loadable;
return true;
}
- return NO;
+ return false;
});
this._loadables = modules;
this._plugins = plugins;
@@ -36,7 +36,7 @@ SC.TreeController = SC.ObjectController.extend(SC.SelectionSupport,
@property {Boolean}
*/
- treeItemIsGrouped: NO,
+ treeItemIsGrouped: false,
/**
If your content support expanding and collapsing of content, then set this
View
@@ -6,15 +6,15 @@
// ==========================================================================
/**
- If set to NO, then pressing backspace will NOT navigate to the previous
+ If set to false, then pressing backspace will falseT navigate to the previous
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
+ Usually it is best to leave this property set to false in order to prevent the
user from inadvertently losing data by pressing the backspace key.
@property {Boolean}
*/
-SC.allowsBackspaceToPreviousPage = NO;
+SC.allowsBackspaceToPreviousPage = false;
// ..........................................................
// Plugins
@@ -28,7 +28,7 @@ if (! BLOSSOM) {
var pane = SC.ControlTestPane.design()
.add('basic', SC.CheckboxView.design({ title: "Hello World" }))
.add('disabled', SC.CheckboxView.design({
- title: "Hello World", isEnabled: NO
+ title: "Hello World", isEnabled: false
}));
module("CheckboxView UI", pane);
@@ -36,7 +36,7 @@ SC.addInvokeOnceLastDebuggingInfo = function() {
methods.contexts[SC.guidFor(method)] = context ;
}
- this._membersCacheIsValid = NO ;
+ this._membersCacheIsValid = false ;
// THIS IS THE PORTION THAT DIFFERS FROM THE STANDARD IMPLEMENTATION
@@ -242,7 +242,7 @@ SC.addInvokeOnceLastDebuggingInfo = function() {
while (currentFunction && i < 6) {
// Skip ourselves!
if (first) {
- first = NO;
+ first = false;
}
else {
functionName = currentFunction.displayName || currentFunction.toString();
@@ -52,7 +52,7 @@ SC.StatechartMonitor = SC.Object.extend({
matched = 0,
statechart = this.get('statechart');
- if (expected.length !== actual.length) return NO;
+ if (expected.length !== actual.length) return false;
expected.forEach(function(item) {
if (SC.typeOf(item) === SC.T_STRING) item = statechart.getState(item);
@@ -4658,7 +4658,7 @@ mousemoved}</string>
{\colortbl;\red255\green255\blue255;}
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural
-\f0\b\fs24 \cf0 Collection View Mouse Events - NORMAL mode (selectOnMouseDown = true, useToggleSelection = NO)}</string>
+\f0\b\fs24 \cf0 Collection View Mouse Events - NORMAL mode (selectOnMouseDown = true, useToggleSelection = false)}</string>
<key>VerticalPad</key>
<integer>0</integer>
</dict>
@@ -73,7 +73,7 @@ SC.Plugin = SC.Object.extend(
@type {Boolean}
*/
- isRegistered: NO,
+ isRegistered: false,
//..........................................
// Bindings
@@ -84,10 +84,10 @@ SC.RunLoop = SC.RunLoop.extend(
Usually you will not call this method directly, but it will be invoked
automatically at the end of the run loop.
- @returns {Boolean} true if timers were fired, NO otherwise
+ @returns {Boolean} true if timers were fired, false otherwise
*/
fireExpiredTimers: function() {
- if (!this._timerQueue || this._firing) return NO; // nothing to do
+ if (!this._timerQueue || this._firing) return false; // nothing to do
// max time we are allowed to run timers
var now = this.get('startTime'),
@@ -109,7 +109,7 @@ SC.RunLoop = SC.RunLoop.extend(
// cleanup
didFire = timers.length > 0 ;
timers.length = 0 ; // reset for later use...
- this._firing = NO ;
+ this._firing = false ;
return didFire;
},
@@ -124,7 +124,7 @@ SC.RunLoop = SC.RunLoop.extend(
scheduleNextTimeout: function() {
var timer = this._timerQueue ;
- var ret = NO ;
+ var ret = false ;
// if no timer, and there is an existing timeout, cancel it
if (!timer) {
if (this._timeout) clearTimeout(this._timeout);
@@ -36,8 +36,8 @@ SC.Layer = SC.Object.extend({
/**
The isVisible property determines if the view is shown in the view
hierarchy it is a part of. A view can have isVisible == true and still have
- isVisibleInWindow == NO. This occurs, for instance, when a parent view has
- isVisible == NO. Default is true.
+ isVisibleInWindow == false. This occurs, for instance, when a parent view has
+ isVisible == false. Default is true.
The isVisible property is considered part of the layout and so changing it
will trigger a layout update.
@@ -199,11 +199,11 @@
// dictionary = SC.clone(dictionary);
// }
//
-// var style = SC.clone(this.get("style")), didChangeStyle = NO, layout = SC.clone(this.get("layout")), didChangeLayout = NO;
+// var style = SC.clone(this.get("style")), didChangeStyle = false, layout = SC.clone(this.get("layout")), didChangeLayout = false;
// var sprops = this._styleProperties;
// for (var i in dictionary)
// {
-// var didChange = NO;
+// var didChange = false;
//
// var current = (sprops.indexOf(i) >= 0) ? style : layout;
// var cval = current[i], nval = dictionary[i];
@@ -360,9 +360,9 @@
// topDuration = this.transitions['top'] && this.transitions['top'].duration;
//
// if (leftDuration !== topDuration) {
-// return NO;
+// return false;
// } else if ((topDuration || leftDuration) && !SC.platform.supportsCSSTransitions) {
-// return NO;
+// return false;
// } else {
// return arguments.callee.base.apply(this, arguments);
// }
@@ -385,7 +385,7 @@
//
// /* SPECIAL CASES (done now because they need to happen whether or not animation will take place) */
// ////**SPECIAL TRANSFORM CASE**////
-// var specialTransform = NO, specialTransformValue = "";
+// var specialTransform = false, specialTransformValue = "";
// if (this.get('hasAcceleratedLayer')) {
//
// var nT = newStyle['top'],
@@ -404,7 +404,7 @@
// specialTransform = true;
// this._useSpecialCaseTransform = true;
// } else {
-// this._useSpecialCaseTransform = NO;
+// this._useSpecialCaseTransform = false;
// }
// }
// ////**/SPECIAL TRANSFORM CASE**////
@@ -633,7 +633,7 @@
// if (!layer) return;
//
// // handle a specific style first: display. There is a special case because it disrupts transitions.
-// var needsRender = NO;
+// var needsRender = false;
// if (styles["display"] && layer.style["display"] !== styles["display"]) {
// layer.style["display"] = styles["display"];
// needsRender = true;
@@ -683,7 +683,7 @@
// // more to be added here...
// };
//
-// var newLayout = {}, updateLayout = NO, style = layer.style;
+// var newLayout = {}, updateLayout = false, style = layer.style;
//
// // we extract the layout portion so SproutCore can do its own thing...
// var transform = "";
@@ -748,7 +748,7 @@
// {
// var style = SC.clone(this.get("style"));
// var newLayout = this.get("layout");
-// var i = 0, ls = this._layoutStyles, lsl = ls.length, didChange = NO;
+// var i = 0, ls = this._layoutStyles, lsl = ls.length, didChange = false;
// for (i = 0; i < lsl; i++)
// {
// var key = ls[i];
@@ -783,7 +783,7 @@
// // SOME OPTIMIZATIONS COULD BE DONE, LIKE MOVING THIS INTO ITS OWN BIT AT BEGINNING OF ANIMATION.
// var epsilon = 1.0 / (200.0 * duration);
//
-// // a method I have NO idea about... Newton's method
+// // a method I have false idea about... Newton's method
// var t0, t1, t2, x2, d2, i;
// for (t2 = x, i = 0; i < 8; i++) {
// x2 = ((ax * t2 + bx) * t2 + cx) * t2 - x; // sample curve x for t2, - x
Oops, something went wrong.

0 comments on commit 5a2f1de

Please sign in to comment.