spade 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1660) hide show
  1. data/.gitmodules +0 -9
  2. data/Gemfile +1 -17
  3. data/Gemfile.lock +16 -11
  4. data/lib/spade.rb +1 -0
  5. data/lib/spade/cli/base.rb +18 -0
  6. data/lib/spade/package.rb +21 -13
  7. data/lib/spade/remote.rb +7 -0
  8. data/lib/spade/version.rb +1 -1
  9. data/spade.gemspec +14 -1
  10. data/spec/cli/build_spec.rb +7 -7
  11. data/spec/cli/install_spec.rb +14 -0
  12. data/spec/cli/yank_spec.rb +68 -0
  13. data/spec/fixtures/core-test/bin/cot +1 -0
  14. data/spec/fixtures/core-test/lib/main.js +1 -0
  15. data/spec/fixtures/{coffee/bin/cake → core-test/resources/runner.css} +0 -0
  16. data/spec/fixtures/core-test/tests/test.js +1 -0
  17. data/spec/fixtures/package.json +28 -23
  18. data/spec/gauntlet_spec.rb +0 -3
  19. data/spec/package_spec.rb +32 -22
  20. data/spec/support/core_test.rb +19 -12
  21. data/spec/support/fake.rb +3 -1
  22. data/spec/support/fake_gem_server.rb +27 -11
  23. data/spec/support/fake_gemcutter.rb +8 -0
  24. metadata +101 -1650
  25. data/packages/core-test/.gitignore +0 -2
  26. data/packages/core-test/Buildfile +0 -15
  27. data/packages/core-test/CHANGELOG.md +0 -24
  28. data/packages/core-test/__preamble__.js +0 -34
  29. data/packages/core-test/bin/cot +0 -3
  30. data/packages/core-test/lib/assert.js +0 -306
  31. data/packages/core-test/lib/cli.js +0 -258
  32. data/packages/core-test/lib/core.js +0 -311
  33. data/packages/core-test/lib/loggers/browser.js +0 -390
  34. data/packages/core-test/lib/loggers/console.js +0 -235
  35. data/packages/core-test/lib/loggers/default.js +0 -272
  36. data/packages/core-test/lib/loggers/dummy.js +0 -168
  37. data/packages/core-test/lib/main.js +0 -22
  38. data/packages/core-test/lib/private/jquery.js +0 -6079
  39. data/packages/core-test/lib/qunit.js +0 -159
  40. data/packages/core-test/lib/runner.js +0 -65
  41. data/packages/core-test/lib/spec.js +0 -302
  42. data/packages/core-test/lib/sync.js +0 -64
  43. data/packages/core-test/lib/system/dump.js +0 -208
  44. data/packages/core-test/lib/system/equiv.js +0 -199
  45. data/packages/core-test/lib/system/ext.js +0 -62
  46. data/packages/core-test/lib/system/module.js +0 -162
  47. data/packages/core-test/lib/system/plan.js +0 -223
  48. data/packages/core-test/lib/system/stub.js +0 -98
  49. data/packages/core-test/lib/system/test.js +0 -373
  50. data/packages/core-test/lib/test.js +0 -69
  51. data/packages/core-test/lib/utils.js +0 -256
  52. data/packages/core-test/package.json +0 -10
  53. data/packages/core-test/resources/additions.css +0 -8
  54. data/packages/core-test/resources/runner.css +0 -177
  55. data/packages/core-test/tests/apis/commonjs-test.js +0 -102
  56. data/packages/core-test/tests/apis/core-test.js +0 -154
  57. data/packages/core-test/tests/apis/qunit-test.js +0 -244
  58. data/packages/core-test/tests/apis/spec-test.js +0 -344
  59. data/packages/core-test/tests/system/equiv/qunit-test.js +0 -1400
  60. data/packages/core-test/tests/system/test/assert-test.js +0 -86
  61. data/packages/core-test/tests/system/test/error-test.js +0 -62
  62. data/packages/core-test/tests/system/test/schedule-test.js +0 -210
  63. data/packages/core-test/tests/utils/fmt-test.js +0 -24
  64. data/packages/handlebars/Gemfile +0 -4
  65. data/packages/handlebars/README.markdown +0 -205
  66. data/packages/handlebars/Rakefile +0 -65
  67. data/packages/handlebars/lib/handlebars.js +0 -19
  68. data/packages/handlebars/lib/handlebars/ast.js +0 -88
  69. data/packages/handlebars/lib/handlebars/compiler.js +0 -116
  70. data/packages/handlebars/lib/handlebars/debug.js +0 -25
  71. data/packages/handlebars/lib/handlebars/printer.js +0 -114
  72. data/packages/handlebars/lib/handlebars/runtime.js +0 -280
  73. data/packages/handlebars/lib/handlebars/utils.js +0 -61
  74. data/packages/handlebars/lib/handlebars/visitor.js +0 -14
  75. data/packages/handlebars/lib/handlebars/vm.js +0 -634
  76. data/packages/handlebars/spec/acceptance_spec.rb +0 -100
  77. data/packages/handlebars/spec/parser_spec.rb +0 -181
  78. data/packages/handlebars/spec/qunit_spec.js +0 -497
  79. data/packages/handlebars/spec/spec_helper.rb +0 -107
  80. data/packages/handlebars/spec/tokenizer_spec.rb +0 -145
  81. data/packages/handlebars/src/handlebars.l +0 -27
  82. data/packages/handlebars/src/handlebars.yy +0 -79
  83. data/packages/handlebars/test.js +0 -56
  84. data/packages/jquery-core/lib/main.js +0 -897
  85. data/packages/jquery-core/package.json +0 -9
  86. data/packages/sproutcore-bootstrap/lib/main.js +0 -11
  87. data/packages/sproutcore-bootstrap/package.json +0 -15
  88. data/packages/sproutcore-corefoundation/lib/main.js +0 -66
  89. data/packages/sproutcore-corefoundation/lib/tests.js +0 -74
  90. data/packages/sproutcore-corefoundation/package.json +0 -27
  91. data/packages/sproutcore-corefoundation/tests.html +0 -12
  92. data/packages/sproutcore-datastore/lib/main.js +0 -23
  93. data/packages/sproutcore-datastore/package.json +0 -16
  94. data/packages/sproutcore-datetime/lib/main.js +0 -6
  95. data/packages/sproutcore-datetime/package.json +0 -16
  96. data/packages/sproutcore-handlebars/lib/handlebars.js +0 -5
  97. data/packages/sproutcore-handlebars/lib/main.js +0 -15
  98. data/packages/sproutcore-handlebars/package.json +0 -17
  99. data/packages/sproutcore-jquery/lib/main.js +0 -10
  100. data/packages/sproutcore-jquery/package.json +0 -12
  101. data/packages/sproutcore-preprocessor/bin/chance +0 -64
  102. data/packages/sproutcore-preprocessor/lib/css.js +0 -21
  103. data/packages/sproutcore-preprocessor/lib/main.js +0 -1
  104. data/packages/sproutcore-preprocessor/lib/preprocessor.js +0 -12
  105. data/packages/sproutcore-preprocessor/lib/sc_static.js +0 -9
  106. data/packages/sproutcore-preprocessor/package.json +0 -18
  107. data/packages/sproutcore-runtime/lib/main.js +0 -37
  108. data/packages/sproutcore-runtime/package.json +0 -21
  109. data/spec/fixtures/coffee/bin/coffee +0 -0
  110. data/spec/fixtures/coffee/lib/coffee.js +0 -0
  111. data/spec/fixtures/coffee/lib/coffee.png +0 -0
  112. data/spec/fixtures/coffee/lib/coffee/base.js +0 -0
  113. data/spec/fixtures/coffee/lib/coffee/mocha/chai.js +0 -0
  114. data/spec/fixtures/coffee/qunit/coffee/test.js +0 -0
  115. data/spec/fixtures/coffee/qunit/test.js +0 -0
  116. data/spec/fixtures/coffee/qunit/test.log +0 -0
  117. data/sproutcore/.gitignore +0 -13
  118. data/sproutcore/Buildfile +0 -112
  119. data/sproutcore/CHANGELOG.md +0 -232
  120. data/sproutcore/README.md +0 -68
  121. data/sproutcore/apps/docs/core.js +0 -27
  122. data/sproutcore/apps/docs/design/Doc Viewer.graffle/QuickLook/Preview.pdf +0 -0
  123. data/sproutcore/apps/docs/design/Doc Viewer.graffle/QuickLook/Thumbnail.tiff +0 -0
  124. data/sproutcore/apps/docs/design/Doc Viewer.graffle/data.plist +0 -14378
  125. data/sproutcore/apps/docs/design/Doc Viewer.graffle/image10.png +0 -0
  126. data/sproutcore/apps/docs/design/Doc Viewer.graffle/image11.png +0 -0
  127. data/sproutcore/apps/docs/design/Doc Viewer.graffle/image13.png +0 -0
  128. data/sproutcore/apps/docs/design/Doc Viewer.graffle/image14.png +0 -0
  129. data/sproutcore/apps/docs/design/Doc Viewer.graffle/image8.png +0 -0
  130. data/sproutcore/apps/docs/design/Doc Viewer.graffle/image9.tiff +0 -0
  131. data/sproutcore/apps/docs/english.lproj/loading.rhtml +0 -9
  132. data/sproutcore/apps/docs/english.lproj/main_page.js +0 -22
  133. data/sproutcore/apps/docs/english.lproj/strings.js +0 -15
  134. data/sproutcore/apps/docs/main.js +0 -30
  135. data/sproutcore/apps/greenhouse/README +0 -18
  136. data/sproutcore/apps/greenhouse/TODO +0 -56
  137. data/sproutcore/apps/greenhouse/beautify.js +0 -1058
  138. data/sproutcore/apps/greenhouse/controllers/design.js +0 -20
  139. data/sproutcore/apps/greenhouse/controllers/file.js +0 -35
  140. data/sproutcore/apps/greenhouse/controllers/files.js +0 -40
  141. data/sproutcore/apps/greenhouse/controllers/layout.js +0 -53
  142. data/sproutcore/apps/greenhouse/controllers/library.js +0 -194
  143. data/sproutcore/apps/greenhouse/controllers/page.js +0 -18
  144. data/sproutcore/apps/greenhouse/controllers/property.js +0 -19
  145. data/sproutcore/apps/greenhouse/controllers/property_editor.js +0 -17
  146. data/sproutcore/apps/greenhouse/controllers/target.js +0 -20
  147. data/sproutcore/apps/greenhouse/controllers/targets.js +0 -43
  148. data/sproutcore/apps/greenhouse/controllers/view_configs.js +0 -100
  149. data/sproutcore/apps/greenhouse/core.js +0 -65
  150. data/sproutcore/apps/greenhouse/core_file.js +0 -124
  151. data/sproutcore/apps/greenhouse/data_source.js +0 -250
  152. data/sproutcore/apps/greenhouse/english.lproj/app_page.js +0 -399
  153. data/sproutcore/apps/greenhouse/english.lproj/css/app-selector.css +0 -107
  154. data/sproutcore/apps/greenhouse/english.lproj/css/button.css +0 -314
  155. data/sproutcore/apps/greenhouse/english.lproj/css/dock.css +0 -90
  156. data/sproutcore/apps/greenhouse/english.lproj/css/general.css +0 -51
  157. data/sproutcore/apps/greenhouse/english.lproj/css/main-page.css +0 -93
  158. data/sproutcore/apps/greenhouse/english.lproj/css/menu.css +0 -49
  159. data/sproutcore/apps/greenhouse/english.lproj/css/modal.css +0 -41
  160. data/sproutcore/apps/greenhouse/english.lproj/css/picker.css +0 -195
  161. data/sproutcore/apps/greenhouse/english.lproj/css/search.css +0 -60
  162. data/sproutcore/apps/greenhouse/english.lproj/css/text-field.css +0 -67
  163. data/sproutcore/apps/greenhouse/english.lproj/dialogs.js +0 -303
  164. data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.eot +0 -0
  165. data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.otf +0 -0
  166. data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.woff +0 -0
  167. data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.eot +0 -0
  168. data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.otf +0 -0
  169. data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.woff +0 -0
  170. data/sproutcore/apps/greenhouse/english.lproj/images/app-selector/choose-app.png +0 -0
  171. data/sproutcore/apps/greenhouse/english.lproj/images/app-selector/list-item-sel.png +0 -0
  172. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-l.png +0 -0
  173. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-m.png +0 -0
  174. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-r.png +0 -0
  175. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-l.png +0 -0
  176. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-m.png +0 -0
  177. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-r.png +0 -0
  178. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/active-l.png +0 -0
  179. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/active-r.png +0 -0
  180. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-l.png +0 -0
  181. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-r.png +0 -0
  182. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/regular-l.png +0 -0
  183. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/regular-r.png +0 -0
  184. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-l.png +0 -0
  185. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-r.png +0 -0
  186. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-l.png +0 -0
  187. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-r.png +0 -0
  188. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-l.png +0 -0
  189. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-r.png +0 -0
  190. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-l.png +0 -0
  191. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-m.png +0 -0
  192. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-r.png +0 -0
  193. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-l.png +0 -0
  194. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-r.png +0 -0
  195. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-l.png +0 -0
  196. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-r.png +0 -0
  197. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-l.png +0 -0
  198. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-r.png +0 -0
  199. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-l.png +0 -0
  200. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-r.png +0 -0
  201. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-l.png +0 -0
  202. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-m.png +0 -0
  203. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-r.png +0 -0
  204. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-l.png +0 -0
  205. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-m.png +0 -0
  206. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-r.png +0 -0
  207. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-l.png +0 -0
  208. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-m.png +0 -0
  209. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-r.png +0 -0
  210. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-l.png +0 -0
  211. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-m.png +0 -0
  212. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-r.png +0 -0
  213. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-l.png +0 -0
  214. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-m.png +0 -0
  215. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-r.png +0 -0
  216. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/active-m.png +0 -0
  217. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/disabled-m.png +0 -0
  218. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/regular-m.png +0 -0
  219. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-active-m.png +0 -0
  220. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-disabled-m.png +0 -0
  221. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-m.png +0 -0
  222. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/active-l.png +0 -0
  223. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/active-r.png +0 -0
  224. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/disabled-l.png +0 -0
  225. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/disabled-r.png +0 -0
  226. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/regular-l.png +0 -0
  227. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/regular-r.png +0 -0
  228. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-active-l.png +0 -0
  229. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-active-r.png +0 -0
  230. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-l.png +0 -0
  231. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-r.png +0 -0
  232. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-l.png +0 -0
  233. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-r.png +0 -0
  234. data/sproutcore/apps/greenhouse/english.lproj/images/icons/actions-active.png +0 -0
  235. data/sproutcore/apps/greenhouse/english.lproj/images/icons/actions.png +0 -0
  236. data/sproutcore/apps/greenhouse/english.lproj/images/icons/inspector-active.png +0 -0
  237. data/sproutcore/apps/greenhouse/english.lproj/images/icons/inspector.png +0 -0
  238. data/sproutcore/apps/greenhouse/english.lproj/images/icons/library-active.png +0 -0
  239. data/sproutcore/apps/greenhouse/english.lproj/images/icons/library.png +0 -0
  240. data/sproutcore/apps/greenhouse/english.lproj/images/icons/projects-active.png +0 -0
  241. data/sproutcore/apps/greenhouse/english.lproj/images/icons/projects.png +0 -0
  242. data/sproutcore/apps/greenhouse/english.lproj/images/icons/run-active.png +0 -0
  243. data/sproutcore/apps/greenhouse/english.lproj/images/icons/run.png +0 -0
  244. data/sproutcore/apps/greenhouse/english.lproj/images/icons/save-active.png +0 -0
  245. data/sproutcore/apps/greenhouse/english.lproj/images/icons/save.png +0 -0
  246. data/sproutcore/apps/greenhouse/english.lproj/images/logos/greenhouse-l.png +0 -0
  247. data/sproutcore/apps/greenhouse/english.lproj/images/logos/greenhouse-s.png +0 -0
  248. data/sproutcore/apps/greenhouse/english.lproj/images/logos/sproutcore.png +0 -0
  249. data/sproutcore/apps/greenhouse/english.lproj/images/main-bg.png +0 -0
  250. data/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom-left.png +0 -0
  251. data/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom-right.png +0 -0
  252. data/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom.png +0 -0
  253. data/sproutcore/apps/greenhouse/english.lproj/images/picker/close-active.png +0 -0
  254. data/sproutcore/apps/greenhouse/english.lproj/images/picker/close.png +0 -0
  255. data/sproutcore/apps/greenhouse/english.lproj/images/picker/left.png +0 -0
  256. data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-bottom.png +0 -0
  257. data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-left.png +0 -0
  258. data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-right.png +0 -0
  259. data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-top.png +0 -0
  260. data/sproutcore/apps/greenhouse/english.lproj/images/picker/right.png +0 -0
  261. data/sproutcore/apps/greenhouse/english.lproj/images/picker/search-active.png +0 -0
  262. data/sproutcore/apps/greenhouse/english.lproj/images/picker/search.png +0 -0
  263. data/sproutcore/apps/greenhouse/english.lproj/images/picker/top-left.png +0 -0
  264. data/sproutcore/apps/greenhouse/english.lproj/images/picker/top-right.png +0 -0
  265. data/sproutcore/apps/greenhouse/english.lproj/images/picker/top.png +0 -0
  266. data/sproutcore/apps/greenhouse/english.lproj/images/toolbar-bg.png +0 -0
  267. data/sproutcore/apps/greenhouse/english.lproj/inspectors.js +0 -365
  268. data/sproutcore/apps/greenhouse/english.lproj/loading.rhtml +0 -9
  269. data/sproutcore/apps/greenhouse/english.lproj/main_page.js +0 -95
  270. data/sproutcore/apps/greenhouse/english.lproj/strings.js +0 -93
  271. data/sproutcore/apps/greenhouse/fixtures/file.js +0 -35
  272. data/sproutcore/apps/greenhouse/main.js +0 -28
  273. data/sproutcore/apps/greenhouse/mixins/drop_down.js +0 -97
  274. data/sproutcore/apps/greenhouse/models/design.js +0 -26
  275. data/sproutcore/apps/greenhouse/models/dir.js +0 -93
  276. data/sproutcore/apps/greenhouse/models/file.js +0 -51
  277. data/sproutcore/apps/greenhouse/models/target.js +0 -82
  278. data/sproutcore/apps/greenhouse/models/view_config.js +0 -49
  279. data/sproutcore/apps/greenhouse/resources/test_page.js +0 -37
  280. data/sproutcore/apps/greenhouse/states/inspector.js +0 -152
  281. data/sproutcore/apps/greenhouse/states/library.js +0 -142
  282. data/sproutcore/apps/greenhouse/states/main.js +0 -283
  283. data/sproutcore/apps/greenhouse/states/modals.js +0 -299
  284. data/sproutcore/apps/greenhouse/states/ready.js +0 -235
  285. data/sproutcore/apps/greenhouse/tests/controllers/design.js +0 -15
  286. data/sproutcore/apps/greenhouse/tests/controllers/designs.js +0 -15
  287. data/sproutcore/apps/greenhouse/tests/controllers/file.js +0 -15
  288. data/sproutcore/apps/greenhouse/tests/controllers/files.js +0 -15
  289. data/sproutcore/apps/greenhouse/tests/models/file.js +0 -15
  290. data/sproutcore/apps/greenhouse/tests/models/view_config.js +0 -15
  291. data/sproutcore/apps/greenhouse/tests/views/list_item.js +0 -16
  292. data/sproutcore/apps/greenhouse/tests/views/plist_item.js +0 -20
  293. data/sproutcore/apps/greenhouse/theme.js +0 -25
  294. data/sproutcore/apps/greenhouse/views/anchor.js +0 -277
  295. data/sproutcore/apps/greenhouse/views/application_list_item.js +0 -19
  296. data/sproutcore/apps/greenhouse/views/event_blocker.js +0 -32
  297. data/sproutcore/apps/greenhouse/views/label_designer.js +0 -16
  298. data/sproutcore/apps/greenhouse/views/list_item.js +0 -42
  299. data/sproutcore/apps/greenhouse/views/plist_item.js +0 -178
  300. data/sproutcore/apps/greenhouse/views/simple_button.js +0 -157
  301. data/sproutcore/apps/greenhouse/views/tear_off_picker.js +0 -56
  302. data/sproutcore/apps/greenhouse/views/web.js +0 -44
  303. data/sproutcore/apps/test_controls/Buildfile +0 -0
  304. data/sproutcore/apps/test_controls/controllers/buttons.js +0 -21
  305. data/sproutcore/apps/test_controls/controllers/categories.js +0 -108
  306. data/sproutcore/apps/test_controls/controllers/category.js +0 -36
  307. data/sproutcore/apps/test_controls/core.js +0 -29
  308. data/sproutcore/apps/test_controls/main.js +0 -14
  309. data/sproutcore/apps/test_controls/resources/buttons_page.js +0 -142
  310. data/sproutcore/apps/test_controls/resources/checkboxes_page.js +0 -45
  311. data/sproutcore/apps/test_controls/resources/flow_layout_page.js +0 -84
  312. data/sproutcore/apps/test_controls/resources/list_page.js +0 -40
  313. data/sproutcore/apps/test_controls/resources/loading.rhtml +0 -9
  314. data/sproutcore/apps/test_controls/resources/main_page.css +0 -60
  315. data/sproutcore/apps/test_controls/resources/main_page.js +0 -145
  316. data/sproutcore/apps/test_controls/resources/progress_page.js +0 -32
  317. data/sproutcore/apps/test_controls/resources/radio_page.js +0 -48
  318. data/sproutcore/apps/test_controls/resources/scroll_page.js +0 -76
  319. data/sproutcore/apps/test_controls/resources/segmented_page.js +0 -98
  320. data/sproutcore/apps/test_controls/resources/select_page.js +0 -60
  321. data/sproutcore/apps/test_controls/resources/sliders_page.js +0 -53
  322. data/sproutcore/apps/test_controls/resources/strings.js +0 -50
  323. data/sproutcore/apps/test_controls/resources/tab_page.js +0 -44
  324. data/sproutcore/apps/test_controls/resources/text_field_page.js +0 -41
  325. data/sproutcore/apps/test_controls/theme.js +0 -34
  326. data/sproutcore/apps/tests/controllers/detail.js +0 -25
  327. data/sproutcore/apps/tests/controllers/source.js +0 -29
  328. data/sproutcore/apps/tests/controllers/target.js +0 -26
  329. data/sproutcore/apps/tests/controllers/targets.js +0 -86
  330. data/sproutcore/apps/tests/controllers/tests.js +0 -33
  331. data/sproutcore/apps/tests/core.js +0 -133
  332. data/sproutcore/apps/tests/english.lproj/loading.rhtml +0 -9
  333. data/sproutcore/apps/tests/english.lproj/main_page.css +0 -48
  334. data/sproutcore/apps/tests/english.lproj/main_page.js +0 -233
  335. data/sproutcore/apps/tests/english.lproj/strings.js +0 -26
  336. data/sproutcore/apps/tests/main.js +0 -27
  337. data/sproutcore/apps/tests/states/no_targets.js +0 -26
  338. data/sproutcore/apps/tests/states/ready.js +0 -56
  339. data/sproutcore/apps/tests/states/ready_detail.js +0 -41
  340. data/sproutcore/apps/tests/states/ready_empty.js +0 -48
  341. data/sproutcore/apps/tests/states/ready_list.js +0 -41
  342. data/sproutcore/apps/tests/states/ready_loading.js +0 -44
  343. data/sproutcore/apps/tests/states/ready_no_tests.js +0 -31
  344. data/sproutcore/apps/tests/states/start.js +0 -39
  345. data/sproutcore/apps/tests/tests/controllers/detail.js +0 -15
  346. data/sproutcore/apps/tests/tests/controllers/source.js +0 -15
  347. data/sproutcore/apps/tests/tests/controllers/target.js +0 -15
  348. data/sproutcore/apps/tests/tests/controllers/targets.js +0 -15
  349. data/sproutcore/apps/tests/tests/controllers/tests.js +0 -15
  350. data/sproutcore/apps/tests/tests/models/target.js +0 -15
  351. data/sproutcore/apps/tests/tests/models/test.js +0 -15
  352. data/sproutcore/apps/tests/tests/views/offset_checkbox.js +0 -15
  353. data/sproutcore/apps/tests/views/offset_checkbox.js +0 -26
  354. data/sproutcore/apps/welcome/controllers/targets.js +0 -56
  355. data/sproutcore/apps/welcome/core.js +0 -30
  356. data/sproutcore/apps/welcome/english.lproj/images/main-bg.png +0 -0
  357. data/sproutcore/apps/welcome/english.lproj/loading.rhtml +0 -10
  358. data/sproutcore/apps/welcome/english.lproj/main_page.css +0 -25
  359. data/sproutcore/apps/welcome/english.lproj/main_page.js +0 -67
  360. data/sproutcore/apps/welcome/english.lproj/strings.js +0 -15
  361. data/sproutcore/apps/welcome/main.js +0 -19
  362. data/sproutcore/apps/welcome/tests/controllers/targets.js +0 -15
  363. data/sproutcore/design/CollectionView State Charts.graffle +0 -4848
  364. data/sproutcore/design/Design Charts.graffle +0 -16845
  365. data/sproutcore/design/Record State Table.numbers +0 -0
  366. data/sproutcore/design/SproutCore Datastore Design.graffle/QuickLook/Preview.pdf +0 -0
  367. data/sproutcore/design/SproutCore Datastore Design.graffle/QuickLook/Thumbnail.tiff +0 -0
  368. data/sproutcore/design/SproutCore Datastore Design.graffle/data.plist +0 -19588
  369. data/sproutcore/design/SproutCore Datastore Design.graffle/image8.png +0 -0
  370. data/sproutcore/design/SproutCore Design Template.graffle/QuickLook/Preview.pdf +0 -0
  371. data/sproutcore/design/SproutCore Design Template.graffle/QuickLook/Thumbnail.tiff +0 -0
  372. data/sproutcore/design/SproutCore Design Template.graffle/data.plist +0 -1452
  373. data/sproutcore/design/SproutCore Design Template.graffle/image8.png +0 -0
  374. data/sproutcore/design/TestRunner Design.graffle/QuickLook/Preview.pdf +0 -0
  375. data/sproutcore/design/TestRunner Design.graffle/QuickLook/Thumbnail.tiff +0 -0
  376. data/sproutcore/design/TestRunner Design.graffle/data.plist +0 -24187
  377. data/sproutcore/design/TestRunner Design.graffle/image10.png +0 -0
  378. data/sproutcore/design/TestRunner Design.graffle/image11.png +0 -0
  379. data/sproutcore/design/TestRunner Design.graffle/image13.png +0 -0
  380. data/sproutcore/design/TestRunner Design.graffle/image15.png +0 -0
  381. data/sproutcore/design/TestRunner Design.graffle/image16.png +0 -0
  382. data/sproutcore/design/TestRunner Design.graffle/image17.png +0 -0
  383. data/sproutcore/design/TestRunner Design.graffle/image18.png +0 -0
  384. data/sproutcore/design/TestRunner Design.graffle/image19.png +0 -0
  385. data/sproutcore/design/TestRunner Design.graffle/image22.tiff +0 -0
  386. data/sproutcore/design/TestRunner Design.graffle/image23.png +0 -0
  387. data/sproutcore/design/TestRunner Design.graffle/image24.png +0 -0
  388. data/sproutcore/design/TestRunner Design.graffle/image25.png +0 -0
  389. data/sproutcore/design/TestRunner Design.graffle/image30.png +0 -0
  390. data/sproutcore/design/TestRunner Design.graffle/image31.png +0 -0
  391. data/sproutcore/design/TestRunner Design.graffle/image8.png +0 -0
  392. data/sproutcore/design/TestRunner Design.graffle/image9.png +0 -0
  393. data/sproutcore/design/greenhouse-statechart.graffle +0 -9025
  394. data/sproutcore/design/greenhouse-statechart.pdf +0 -0
  395. data/sproutcore/design/iphone-webapp-loading.psd +0 -0
  396. data/sproutcore/frameworks/animation/Buildfile +0 -3
  397. data/sproutcore/frameworks/animation/LICENSE +0 -25
  398. data/sproutcore/frameworks/animation/README.md +0 -79
  399. data/sproutcore/frameworks/animation/core.js +0 -1206
  400. data/sproutcore/frameworks/animation/tests/core.js +0 -152
  401. data/sproutcore/frameworks/bootstrap/README +0 -9
  402. data/sproutcore/frameworks/bootstrap/core.js +0 -7
  403. data/sproutcore/frameworks/bootstrap/setup_body_class_names.js +0 -10
  404. data/sproutcore/frameworks/bootstrap/system/bench.js +0 -14
  405. data/sproutcore/frameworks/bootstrap/system/browser.js +0 -65
  406. data/sproutcore/frameworks/bootstrap/system/loader.js +0 -50
  407. data/sproutcore/frameworks/bootstrap/tests/system/browser.js +0 -187
  408. data/sproutcore/frameworks/core_foundation/.greenhouseconf +0 -33
  409. data/sproutcore/frameworks/core_foundation/controllers/array.js +0 -498
  410. data/sproutcore/frameworks/core_foundation/controllers/controller.js +0 -44
  411. data/sproutcore/frameworks/core_foundation/controllers/object.js +0 -342
  412. data/sproutcore/frameworks/core_foundation/core.js +0 -201
  413. data/sproutcore/frameworks/core_foundation/ext/object.js +0 -83
  414. data/sproutcore/frameworks/core_foundation/ext/run_loop.js +0 -163
  415. data/sproutcore/frameworks/core_foundation/mixins/delegate_support.js +0 -110
  416. data/sproutcore/frameworks/core_foundation/mixins/responder_context.js +0 -269
  417. data/sproutcore/frameworks/core_foundation/mixins/selection_support.js +0 -250
  418. data/sproutcore/frameworks/core_foundation/mixins/string.js +0 -163
  419. data/sproutcore/frameworks/core_foundation/panes/keyboard.js +0 -68
  420. data/sproutcore/frameworks/core_foundation/panes/layout.js +0 -108
  421. data/sproutcore/frameworks/core_foundation/panes/main.js +0 -52
  422. data/sproutcore/frameworks/core_foundation/panes/manipulation.js +0 -27
  423. data/sproutcore/frameworks/core_foundation/panes/pane.js +0 -672
  424. data/sproutcore/frameworks/core_foundation/panes/template.js +0 -24
  425. data/sproutcore/frameworks/core_foundation/panes/visibility.js +0 -11
  426. data/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js +0 -40
  427. data/sproutcore/frameworks/core_foundation/protocols/sparse_array_delegate.js +0 -131
  428. data/sproutcore/frameworks/core_foundation/resources/core.css +0 -371
  429. data/sproutcore/frameworks/core_foundation/resources/view.css +0 -57
  430. data/sproutcore/frameworks/core_foundation/system/application.js +0 -35
  431. data/sproutcore/frameworks/core_foundation/system/browser.js +0 -36
  432. data/sproutcore/frameworks/core_foundation/system/builder.js +0 -210
  433. data/sproutcore/frameworks/core_foundation/system/core_query.js +0 -141
  434. data/sproutcore/frameworks/core_foundation/system/cursor.js +0 -131
  435. data/sproutcore/frameworks/core_foundation/system/device.js +0 -210
  436. data/sproutcore/frameworks/core_foundation/system/event.js +0 -914
  437. data/sproutcore/frameworks/core_foundation/system/json.js +0 -515
  438. data/sproutcore/frameworks/core_foundation/system/locale.js +0 -293
  439. data/sproutcore/frameworks/core_foundation/system/page.js +0 -108
  440. data/sproutcore/frameworks/core_foundation/system/platform.js +0 -399
  441. data/sproutcore/frameworks/core_foundation/system/ready.js +0 -77
  442. data/sproutcore/frameworks/core_foundation/system/render_context.js +0 -1063
  443. data/sproutcore/frameworks/core_foundation/system/responder.js +0 -124
  444. data/sproutcore/frameworks/core_foundation/system/root_responder.js +0 -2173
  445. data/sproutcore/frameworks/core_foundation/system/selection_set.js +0 -695
  446. data/sproutcore/frameworks/core_foundation/system/sparse_array.js +0 -393
  447. data/sproutcore/frameworks/core_foundation/system/theme.js +0 -316
  448. data/sproutcore/frameworks/core_foundation/system/timer.js +0 -553
  449. data/sproutcore/frameworks/core_foundation/system/utils.js +0 -151
  450. data/sproutcore/frameworks/core_foundation/system/utils/rect.js +0 -98
  451. data/sproutcore/frameworks/core_foundation/tests/controllers/array/array_case.js +0 -218
  452. data/sproutcore/frameworks/core_foundation/tests/controllers/array/enum_case.js +0 -206
  453. data/sproutcore/frameworks/core_foundation/tests/controllers/array/null_case.js +0 -64
  454. data/sproutcore/frameworks/core_foundation/tests/controllers/array/selection_support.js +0 -344
  455. data/sproutcore/frameworks/core_foundation/tests/controllers/array/single_case.js +0 -136
  456. data/sproutcore/frameworks/core_foundation/tests/controllers/object/empty_case.js +0 -82
  457. data/sproutcore/frameworks/core_foundation/tests/controllers/object/multiple_case.js +0 -111
  458. data/sproutcore/frameworks/core_foundation/tests/controllers/object/single_case.js +0 -193
  459. data/sproutcore/frameworks/core_foundation/tests/controllers/object/single_enumerable_case.js +0 -265
  460. data/sproutcore/frameworks/core_foundation/tests/mixins/responder_context.js +0 -75
  461. data/sproutcore/frameworks/core_foundation/tests/mixins/string.js +0 -55
  462. data/sproutcore/frameworks/core_foundation/tests/panes/template.js +0 -14
  463. data/sproutcore/frameworks/core_foundation/tests/system/builder.js +0 -42
  464. data/sproutcore/frameworks/core_foundation/tests/system/core_query/within.js +0 -65
  465. data/sproutcore/frameworks/core_foundation/tests/system/json.js +0 -14
  466. data/sproutcore/frameworks/core_foundation/tests/system/locale.js +0 -134
  467. data/sproutcore/frameworks/core_foundation/tests/system/ready/done.js +0 -32
  468. data/sproutcore/frameworks/core_foundation/tests/system/render_context/begin.js +0 -47
  469. data/sproutcore/frameworks/core_foundation/tests/system/render_context/element.js +0 -44
  470. data/sproutcore/frameworks/core_foundation/tests/system/render_context/end.js +0 -124
  471. data/sproutcore/frameworks/core_foundation/tests/system/render_context/get.js +0 -51
  472. data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_attr.js +0 -50
  473. data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_basic.js +0 -28
  474. data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_className.js +0 -177
  475. data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_style.js +0 -109
  476. data/sproutcore/frameworks/core_foundation/tests/system/render_context/init.js +0 -55
  477. data/sproutcore/frameworks/core_foundation/tests/system/render_context/join.js +0 -28
  478. data/sproutcore/frameworks/core_foundation/tests/system/render_context/push_text.js +0 -74
  479. data/sproutcore/frameworks/core_foundation/tests/system/render_context/tag.js +0 -46
  480. data/sproutcore/frameworks/core_foundation/tests/system/render_context/update.js +0 -218
  481. data/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeKeyPane.js +0 -124
  482. data/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMainPane.js +0 -68
  483. data/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMenuPane.js +0 -48
  484. data/sproutcore/frameworks/core_foundation/tests/system/root_responder/root_responder.js +0 -101
  485. data/sproutcore/frameworks/core_foundation/tests/system/root_responder/targetForAction.js +0 -288
  486. data/sproutcore/frameworks/core_foundation/tests/system/selection_set/add.js +0 -92
  487. data/sproutcore/frameworks/core_foundation/tests/system/selection_set/copy.js +0 -17
  488. data/sproutcore/frameworks/core_foundation/tests/system/selection_set/indexSetForSource.js +0 -98
  489. data/sproutcore/frameworks/core_foundation/tests/system/selection_set/isEqual.js +0 -60
  490. data/sproutcore/frameworks/core_foundation/tests/system/selection_set/remove.js +0 -111
  491. data/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +0 -194
  492. data/sproutcore/frameworks/core_foundation/tests/system/theme.js +0 -77
  493. data/sproutcore/frameworks/core_foundation/tests/system/timer/invalidate.js +0 -38
  494. data/sproutcore/frameworks/core_foundation/tests/system/timer/invokeLater.js +0 -203
  495. data/sproutcore/frameworks/core_foundation/tests/system/timer/isPaused.js +0 -71
  496. data/sproutcore/frameworks/core_foundation/tests/system/timer/performAction.js +0 -69
  497. data/sproutcore/frameworks/core_foundation/tests/system/timer/schedule.js +0 -170
  498. data/sproutcore/frameworks/core_foundation/tests/system/utils/normalizeURL.js +0 -18
  499. data/sproutcore/frameworks/core_foundation/tests/system/utils/offset.js +0 -271
  500. data/sproutcore/frameworks/core_foundation/tests/system/utils/rect.js +0 -99
  501. data/sproutcore/frameworks/core_foundation/tests/views/main_pane.js +0 -43
  502. data/sproutcore/frameworks/core_foundation/tests/views/pane/append_remove.js +0 -218
  503. data/sproutcore/frameworks/core_foundation/tests/views/pane/child_view.js +0 -20
  504. data/sproutcore/frameworks/core_foundation/tests/views/pane/firstResponder.js +0 -148
  505. data/sproutcore/frameworks/core_foundation/tests/views/pane/keyPane.js +0 -133
  506. data/sproutcore/frameworks/core_foundation/tests/views/pane/layout.js +0 -31
  507. data/sproutcore/frameworks/core_foundation/tests/views/pane/sendEvent.js +0 -206
  508. data/sproutcore/frameworks/core_foundation/tests/views/template/checkbox_support.js +0 -32
  509. data/sproutcore/frameworks/core_foundation/tests/views/template/text_field_support.js +0 -73
  510. data/sproutcore/frameworks/core_foundation/tests/views/template_view/collection.js +0 -111
  511. data/sproutcore/frameworks/core_foundation/tests/views/template_view/core.js +0 -100
  512. data/sproutcore/frameworks/core_foundation/tests/views/template_view/handlebars.js +0 -580
  513. data/sproutcore/frameworks/core_foundation/tests/views/view/animation.js +0 -376
  514. data/sproutcore/frameworks/core_foundation/tests/views/view/build.js +0 -85
  515. data/sproutcore/frameworks/core_foundation/tests/views/view/build_children.js +0 -89
  516. data/sproutcore/frameworks/core_foundation/tests/views/view/clippingFrame.js +0 -117
  517. data/sproutcore/frameworks/core_foundation/tests/views/view/convertFrames.js +0 -248
  518. data/sproutcore/frameworks/core_foundation/tests/views/view/convertLayouts.js +0 -145
  519. data/sproutcore/frameworks/core_foundation/tests/views/view/createChildViews.js +0 -132
  520. data/sproutcore/frameworks/core_foundation/tests/views/view/createLayer.js +0 -97
  521. data/sproutcore/frameworks/core_foundation/tests/views/view/destroyLayer.js +0 -83
  522. data/sproutcore/frameworks/core_foundation/tests/views/view/didAppendToDocument.js +0 -51
  523. data/sproutcore/frameworks/core_foundation/tests/views/view/findLayerInParentLayer.js +0 -50
  524. data/sproutcore/frameworks/core_foundation/tests/views/view/init.js +0 -50
  525. data/sproutcore/frameworks/core_foundation/tests/views/view/insertBefore.js +0 -217
  526. data/sproutcore/frameworks/core_foundation/tests/views/view/isVisible.js +0 -79
  527. data/sproutcore/frameworks/core_foundation/tests/views/view/isVisibleInWindow.js +0 -116
  528. data/sproutcore/frameworks/core_foundation/tests/views/view/keyboard.js +0 -22
  529. data/sproutcore/frameworks/core_foundation/tests/views/view/layer.js +0 -150
  530. data/sproutcore/frameworks/core_foundation/tests/views/view/layoutChildViews.js +0 -162
  531. data/sproutcore/frameworks/core_foundation/tests/views/view/layoutDidChange.js +0 -180
  532. data/sproutcore/frameworks/core_foundation/tests/views/view/layoutStyle.js +0 -735
  533. data/sproutcore/frameworks/core_foundation/tests/views/view/parentViewDidChange.js +0 -67
  534. data/sproutcore/frameworks/core_foundation/tests/views/view/prepareContext.js +0 -203
  535. data/sproutcore/frameworks/core_foundation/tests/views/view/removeChild.js +0 -189
  536. data/sproutcore/frameworks/core_foundation/tests/views/view/render.js +0 -125
  537. data/sproutcore/frameworks/core_foundation/tests/views/view/render_delegate_support.js +0 -163
  538. data/sproutcore/frameworks/core_foundation/tests/views/view/replaceChild.js +0 -29
  539. data/sproutcore/frameworks/core_foundation/tests/views/view/static_layout.js +0 -21
  540. data/sproutcore/frameworks/core_foundation/tests/views/view/theme.js +0 -43
  541. data/sproutcore/frameworks/core_foundation/tests/views/view/updateLayer.js +0 -148
  542. data/sproutcore/frameworks/core_foundation/tests/views/view/updateLayerLocation.js +0 -213
  543. data/sproutcore/frameworks/core_foundation/tests/views/view/view.js +0 -64
  544. data/sproutcore/frameworks/core_foundation/tests/views/view/viewDidResize.js +0 -202
  545. data/sproutcore/frameworks/core_foundation/views/template.js +0 -77
  546. data/sproutcore/frameworks/core_foundation/views/template/checkbox_support.js +0 -20
  547. data/sproutcore/frameworks/core_foundation/views/template/collection.js +0 -106
  548. data/sproutcore/frameworks/core_foundation/views/template/text_field_support.js +0 -35
  549. data/sproutcore/frameworks/core_foundation/views/view.js +0 -1458
  550. data/sproutcore/frameworks/core_foundation/views/view/animation.js +0 -181
  551. data/sproutcore/frameworks/core_foundation/views/view/base.js +0 -1
  552. data/sproutcore/frameworks/core_foundation/views/view/cursor.js +0 -48
  553. data/sproutcore/frameworks/core_foundation/views/view/enabled.js +0 -57
  554. data/sproutcore/frameworks/core_foundation/views/view/keyboard.js +0 -223
  555. data/sproutcore/frameworks/core_foundation/views/view/layout.js +0 -1087
  556. data/sproutcore/frameworks/core_foundation/views/view/layout_style.js +0 -618
  557. data/sproutcore/frameworks/core_foundation/views/view/manipulation.js +0 -426
  558. data/sproutcore/frameworks/core_foundation/views/view/theming.js +0 -362
  559. data/sproutcore/frameworks/core_foundation/views/view/touch.js +0 -67
  560. data/sproutcore/frameworks/core_foundation/views/view/visibility.js +0 -118
  561. data/sproutcore/frameworks/core_tools/core.js +0 -20
  562. data/sproutcore/frameworks/core_tools/data_source.js +0 -99
  563. data/sproutcore/frameworks/core_tools/english.lproj/strings.js +0 -15
  564. data/sproutcore/frameworks/core_tools/fixtures/target.js +0 -87
  565. data/sproutcore/frameworks/core_tools/fixtures/test.js +0 -44
  566. data/sproutcore/frameworks/core_tools/models/target.js +0 -108
  567. data/sproutcore/frameworks/core_tools/models/test.js +0 -48
  568. data/sproutcore/frameworks/datastore/core.js +0 -8
  569. data/sproutcore/frameworks/datastore/data_sources/cascade.js +0 -180
  570. data/sproutcore/frameworks/datastore/data_sources/data_source.js +0 -583
  571. data/sproutcore/frameworks/datastore/data_sources/fixtures.js +0 -393
  572. data/sproutcore/frameworks/datastore/debug/json.js +0 -71
  573. data/sproutcore/frameworks/datastore/debug/standard_setup.js +0 -96
  574. data/sproutcore/frameworks/datastore/fixtures/author_fixtures.js +0 -2503
  575. data/sproutcore/frameworks/datastore/fixtures/sample.js +0 -17
  576. data/sproutcore/frameworks/datastore/models/child_attribute.js +0 -96
  577. data/sproutcore/frameworks/datastore/models/children_attribute.js +0 -75
  578. data/sproutcore/frameworks/datastore/models/fetched_attribute.js +0 -100
  579. data/sproutcore/frameworks/datastore/models/many_attribute.js +0 -154
  580. data/sproutcore/frameworks/datastore/models/record.js +0 -1318
  581. data/sproutcore/frameworks/datastore/models/record_attribute.js +0 -567
  582. data/sproutcore/frameworks/datastore/models/single_attribute.js +0 -159
  583. data/sproutcore/frameworks/datastore/system/child_array.js +0 -222
  584. data/sproutcore/frameworks/datastore/system/many_array.js +0 -418
  585. data/sproutcore/frameworks/datastore/system/nested_store.js +0 -609
  586. data/sproutcore/frameworks/datastore/system/query.js +0 -1599
  587. data/sproutcore/frameworks/datastore/system/record_array.js +0 -710
  588. data/sproutcore/frameworks/datastore/system/store.js +0 -2860
  589. data/sproutcore/frameworks/datastore/tests/data_sources/cascade.js +0 -133
  590. data/sproutcore/frameworks/datastore/tests/data_sources/fixtures.js +0 -122
  591. data/sproutcore/frameworks/datastore/tests/integration/contact_model.js +0 -131
  592. data/sproutcore/frameworks/datastore/tests/integration/cyclical_relationship.js +0 -119
  593. data/sproutcore/frameworks/datastore/tests/integration/mail_model.js +0 -91
  594. data/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js +0 -56
  595. data/sproutcore/frameworks/datastore/tests/models/datetime_recordattribute.js +0 -73
  596. data/sproutcore/frameworks/datastore/tests/models/many_attribute.js +0 -423
  597. data/sproutcore/frameworks/datastore/tests/models/nested_records/data_store.js +0 -180
  598. data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record.js +0 -309
  599. data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +0 -363
  600. data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array_complex.js +0 -421
  601. data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_complex.js +0 -304
  602. data/sproutcore/frameworks/datastore/tests/models/record/core_methods.js +0 -55
  603. data/sproutcore/frameworks/datastore/tests/models/record/destroy.js +0 -92
  604. data/sproutcore/frameworks/datastore/tests/models/record/error_methods.js +0 -56
  605. data/sproutcore/frameworks/datastore/tests/models/record/normalize.js +0 -336
  606. data/sproutcore/frameworks/datastore/tests/models/record/readAttribute.js +0 -53
  607. data/sproutcore/frameworks/datastore/tests/models/record/refresh.js +0 -48
  608. data/sproutcore/frameworks/datastore/tests/models/record/storeDidChangeProperties.js +0 -170
  609. data/sproutcore/frameworks/datastore/tests/models/record/unknownProperty.js +0 -66
  610. data/sproutcore/frameworks/datastore/tests/models/record/writeAttribute.js +0 -112
  611. data/sproutcore/frameworks/datastore/tests/models/record_attribute.js +0 -252
  612. data/sproutcore/frameworks/datastore/tests/models/single_attribute.js +0 -284
  613. data/sproutcore/frameworks/datastore/tests/system/many_array/core_methods.js +0 -204
  614. data/sproutcore/frameworks/datastore/tests/system/nested_store/chain.js +0 -180
  615. data/sproutcore/frameworks/datastore/tests/system/nested_store/commitChanges.js +0 -173
  616. data/sproutcore/frameworks/datastore/tests/system/nested_store/commitChangesFromNestedStore.js +0 -158
  617. data/sproutcore/frameworks/datastore/tests/system/nested_store/core_methods.js +0 -70
  618. data/sproutcore/frameworks/datastore/tests/system/nested_store/dataHashDidChange.js +0 -113
  619. data/sproutcore/frameworks/datastore/tests/system/nested_store/discardChanges.js +0 -102
  620. data/sproutcore/frameworks/datastore/tests/system/nested_store/readDataHash.js +0 -180
  621. data/sproutcore/frameworks/datastore/tests/system/nested_store/readEditableDataHash.js +0 -126
  622. data/sproutcore/frameworks/datastore/tests/system/nested_store/removeDataHash.js +0 -163
  623. data/sproutcore/frameworks/datastore/tests/system/nested_store/writeDataHash.js +0 -166
  624. data/sproutcore/frameworks/datastore/tests/system/query/builders.js +0 -219
  625. data/sproutcore/frameworks/datastore/tests/system/query/compare.js +0 -144
  626. data/sproutcore/frameworks/datastore/tests/system/query/contains.js +0 -131
  627. data/sproutcore/frameworks/datastore/tests/system/query/containsRecordTypes.js +0 -81
  628. data/sproutcore/frameworks/datastore/tests/system/query/copy.js +0 -30
  629. data/sproutcore/frameworks/datastore/tests/system/query/evaluation.js +0 -197
  630. data/sproutcore/frameworks/datastore/tests/system/query/evaluation_of_records.js +0 -92
  631. data/sproutcore/frameworks/datastore/tests/system/query/expandedRecordTypes.js +0 -64
  632. data/sproutcore/frameworks/datastore/tests/system/query/parse.js +0 -216
  633. data/sproutcore/frameworks/datastore/tests/system/query/queryWithScope.js +0 -57
  634. data/sproutcore/frameworks/datastore/tests/system/query/record_type_is.js +0 -47
  635. data/sproutcore/frameworks/datastore/tests/system/query/registered_comparisons.js +0 -70
  636. data/sproutcore/frameworks/datastore/tests/system/query/registered_query_extensions.js +0 -71
  637. data/sproutcore/frameworks/datastore/tests/system/record_array/core_methods.js +0 -177
  638. data/sproutcore/frameworks/datastore/tests/system/record_array/error_methods.js +0 -50
  639. data/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +0 -214
  640. data/sproutcore/frameworks/datastore/tests/system/store/cancelRecord.js +0 -54
  641. data/sproutcore/frameworks/datastore/tests/system/store/commitChangesFromNestedStore.js +0 -137
  642. data/sproutcore/frameworks/datastore/tests/system/store/commitRecord.js +0 -221
  643. data/sproutcore/frameworks/datastore/tests/system/store/core_methods.js +0 -156
  644. data/sproutcore/frameworks/datastore/tests/system/store/createRecord.js +0 -76
  645. data/sproutcore/frameworks/datastore/tests/system/store/dataHashDidChange.js +0 -157
  646. data/sproutcore/frameworks/datastore/tests/system/store/dataSourceCallbacks.js +0 -278
  647. data/sproutcore/frameworks/datastore/tests/system/store/destroyRecord.js +0 -110
  648. data/sproutcore/frameworks/datastore/tests/system/store/error_methods.js +0 -62
  649. data/sproutcore/frameworks/datastore/tests/system/store/find.js +0 -530
  650. data/sproutcore/frameworks/datastore/tests/system/store/init.js +0 -23
  651. data/sproutcore/frameworks/datastore/tests/system/store/loadRecord.js +0 -64
  652. data/sproutcore/frameworks/datastore/tests/system/store/pushChanges.js +0 -61
  653. data/sproutcore/frameworks/datastore/tests/system/store/readDataHash.js +0 -74
  654. data/sproutcore/frameworks/datastore/tests/system/store/readEditableDataHash.js +0 -74
  655. data/sproutcore/frameworks/datastore/tests/system/store/recordDidChange.js +0 -76
  656. data/sproutcore/frameworks/datastore/tests/system/store/removeDataHash.js +0 -144
  657. data/sproutcore/frameworks/datastore/tests/system/store/retrieveRecord.js +0 -200
  658. data/sproutcore/frameworks/datastore/tests/system/store/unloadRecords.js +0 -41
  659. data/sproutcore/frameworks/datastore/tests/system/store/writeDataHash.js +0 -125
  660. data/sproutcore/frameworks/datetime/resources/strings.js +0 -14
  661. data/sproutcore/frameworks/datetime/system/datetime.js +0 -1111
  662. data/sproutcore/frameworks/datetime/tests/system/datetime.js +0 -383
  663. data/sproutcore/frameworks/debug/core.js +0 -114
  664. data/sproutcore/frameworks/debug/invoke_once_last_debugging.js +0 -259
  665. data/sproutcore/frameworks/designer/coders/design.js +0 -20
  666. data/sproutcore/frameworks/designer/coders/object.js +0 -347
  667. data/sproutcore/frameworks/designer/controllers/controllers.js +0 -16
  668. data/sproutcore/frameworks/designer/controllers/design.js +0 -37
  669. data/sproutcore/frameworks/designer/controllers/designs.js +0 -133
  670. data/sproutcore/frameworks/designer/controllers/page_design.js +0 -170
  671. data/sproutcore/frameworks/designer/controllers/page_files.js +0 -22
  672. data/sproutcore/frameworks/designer/core.js +0 -26
  673. data/sproutcore/frameworks/designer/css/css_rule.js +0 -22
  674. data/sproutcore/frameworks/designer/css/css_style.js +0 -29
  675. data/sproutcore/frameworks/designer/css/css_style_sheet.js +0 -201
  676. data/sproutcore/frameworks/designer/designers/button.js +0 -21
  677. data/sproutcore/frameworks/designer/designers/label.js +0 -16
  678. data/sproutcore/frameworks/designer/designers/object_designer.js +0 -296
  679. data/sproutcore/frameworks/designer/designers/tab.js +0 -18
  680. data/sproutcore/frameworks/designer/designers/text_field.js +0 -15
  681. data/sproutcore/frameworks/designer/designers/view_designer.js +0 -1267
  682. data/sproutcore/frameworks/designer/english.lproj/css/designer.css +0 -96
  683. data/sproutcore/frameworks/designer/english.lproj/design_page.js +0 -55
  684. data/sproutcore/frameworks/designer/english.lproj/high_light.css +0 -10
  685. data/sproutcore/frameworks/designer/english.lproj/images/controller.png +0 -0
  686. data/sproutcore/frameworks/designer/english.lproj/images/dock-bg.png +0 -0
  687. data/sproutcore/frameworks/designer/english.lproj/images/dock-item-bg.png +0 -0
  688. data/sproutcore/frameworks/designer/english.lproj/images/dock-item-divider.png +0 -0
  689. data/sproutcore/frameworks/designer/english.lproj/images/dock-item-sel-bg.png +0 -0
  690. data/sproutcore/frameworks/designer/english.lproj/images/dock-item-sel-divider.png +0 -0
  691. data/sproutcore/frameworks/designer/english.lproj/images/main-bg.png +0 -0
  692. data/sproutcore/frameworks/designer/english.lproj/images/page.png +0 -0
  693. data/sproutcore/frameworks/designer/english.lproj/images/pane.png +0 -0
  694. data/sproutcore/frameworks/designer/english.lproj/images/view.png +0 -0
  695. data/sproutcore/frameworks/designer/english.lproj/selection_handles.css +0 -58
  696. data/sproutcore/frameworks/designer/ext/binding.js +0 -33
  697. data/sproutcore/frameworks/designer/ext/object.js +0 -26
  698. data/sproutcore/frameworks/designer/ext/page.js +0 -58
  699. data/sproutcore/frameworks/designer/ext/view.js +0 -27
  700. data/sproutcore/frameworks/designer/mixins/button.js +0 -11
  701. data/sproutcore/frameworks/designer/mixins/snap_lines.js +0 -221
  702. data/sproutcore/frameworks/designer/tests/coders/page.js +0 -54
  703. data/sproutcore/frameworks/designer/tests/designers/view_designer.js +0 -47
  704. data/sproutcore/frameworks/designer/views/designer_drop_target.js +0 -144
  705. data/sproutcore/frameworks/designer/views/drawing.js +0 -219
  706. data/sproutcore/frameworks/designer/views/high_light.js +0 -66
  707. data/sproutcore/frameworks/designer/views/page_item_view.js +0 -130
  708. data/sproutcore/frameworks/designer/views/selection_handles.js +0 -78
  709. data/sproutcore/frameworks/desktop/.greenhouseconf +0 -218
  710. data/sproutcore/frameworks/desktop/core.js +0 -18
  711. data/sproutcore/frameworks/desktop/debug/drag.js +0 -41
  712. data/sproutcore/frameworks/desktop/english.lproj/alert.css +0 -56
  713. data/sproutcore/frameworks/desktop/english.lproj/debug/a_sample_image.jpg +0 -0
  714. data/sproutcore/frameworks/desktop/english.lproj/debug/apple-logo1.jpeg +0 -0
  715. data/sproutcore/frameworks/desktop/english.lproj/debug/iframe.html +0 -23
  716. data/sproutcore/frameworks/desktop/english.lproj/disclosure.css +0 -74
  717. data/sproutcore/frameworks/desktop/english.lproj/drag.css +0 -7
  718. data/sproutcore/frameworks/desktop/english.lproj/icons.css +0 -943
  719. data/sproutcore/frameworks/desktop/english.lproj/images/cap.png +0 -0
  720. data/sproutcore/frameworks/desktop/english.lproj/images/downbutton.png +0 -0
  721. data/sproutcore/frameworks/desktop/english.lproj/images/icons/shared.png +0 -0
  722. data/sproutcore/frameworks/desktop/english.lproj/images/thumb-bottom.png +0 -0
  723. data/sproutcore/frameworks/desktop/english.lproj/images/thumb-center.png +0 -0
  724. data/sproutcore/frameworks/desktop/english.lproj/images/thumb-top.png +0 -0
  725. data/sproutcore/frameworks/desktop/english.lproj/images/track.png +0 -0
  726. data/sproutcore/frameworks/desktop/english.lproj/images/upbutton.png +0 -0
  727. data/sproutcore/frameworks/desktop/english.lproj/list_item.css +0 -185
  728. data/sproutcore/frameworks/desktop/english.lproj/menu.css +0 -12
  729. data/sproutcore/frameworks/desktop/english.lproj/menu_item_view.css +0 -109
  730. data/sproutcore/frameworks/desktop/english.lproj/modal.css +0 -9
  731. data/sproutcore/frameworks/desktop/english.lproj/panel.css +0 -91
  732. data/sproutcore/frameworks/desktop/english.lproj/picker.css +0 -35
  733. data/sproutcore/frameworks/desktop/english.lproj/progress.css +0 -33
  734. data/sproutcore/frameworks/desktop/english.lproj/radio.css +0 -10
  735. data/sproutcore/frameworks/desktop/english.lproj/segmented.css +0 -132
  736. data/sproutcore/frameworks/desktop/english.lproj/separator.css +0 -19
  737. data/sproutcore/frameworks/desktop/english.lproj/slider.css +0 -66
  738. data/sproutcore/frameworks/desktop/english.lproj/split.css +0 -0
  739. data/sproutcore/frameworks/desktop/english.lproj/split_divider.css +0 -6
  740. data/sproutcore/frameworks/desktop/english.lproj/strings.js +0 -14
  741. data/sproutcore/frameworks/desktop/english.lproj/tab.css +0 -7
  742. data/sproutcore/frameworks/desktop/english.lproj/toolbar.css +0 -5
  743. data/sproutcore/frameworks/desktop/english.lproj/touch-scroller.css +0 -196
  744. data/sproutcore/frameworks/desktop/english.lproj/well.css +0 -71
  745. data/sproutcore/frameworks/desktop/mixins/border.js +0 -151
  746. data/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +0 -694
  747. data/sproutcore/frameworks/desktop/mixins/collection_group.js +0 -22
  748. data/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +0 -95
  749. data/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +0 -295
  750. data/sproutcore/frameworks/desktop/mixins/navigation_builder.js +0 -130
  751. data/sproutcore/frameworks/desktop/mixins/scrollable.js +0 -253
  752. data/sproutcore/frameworks/desktop/panes/alert.js +0 -457
  753. data/sproutcore/frameworks/desktop/panes/menu.js +0 -1141
  754. data/sproutcore/frameworks/desktop/panes/modal.js +0 -71
  755. data/sproutcore/frameworks/desktop/panes/palette.js +0 -74
  756. data/sproutcore/frameworks/desktop/panes/panel.js +0 -207
  757. data/sproutcore/frameworks/desktop/panes/picker.js +0 -796
  758. data/sproutcore/frameworks/desktop/panes/select_button.js +0 -895
  759. data/sproutcore/frameworks/desktop/panes/sheet.js +0 -214
  760. data/sproutcore/frameworks/desktop/protocols/drag_data_source.js +0 -39
  761. data/sproutcore/frameworks/desktop/protocols/drag_source.js +0 -81
  762. data/sproutcore/frameworks/desktop/protocols/drop_target.js +0 -175
  763. data/sproutcore/frameworks/desktop/protocols/responder.js +0 -299
  764. data/sproutcore/frameworks/desktop/render_delegates/button.js +0 -105
  765. data/sproutcore/frameworks/desktop/render_delegates/checkbox.js +0 -100
  766. data/sproutcore/frameworks/desktop/render_delegates/collection.js +0 -24
  767. data/sproutcore/frameworks/desktop/render_delegates/disclosure.js +0 -69
  768. data/sproutcore/frameworks/desktop/render_delegates/helpers/slicing.js +0 -34
  769. data/sproutcore/frameworks/desktop/render_delegates/image_button.js +0 -30
  770. data/sproutcore/frameworks/desktop/render_delegates/master_detail.js +0 -28
  771. data/sproutcore/frameworks/desktop/render_delegates/menu.js +0 -47
  772. data/sproutcore/frameworks/desktop/render_delegates/panel.js +0 -28
  773. data/sproutcore/frameworks/desktop/render_delegates/picker.js +0 -43
  774. data/sproutcore/frameworks/desktop/render_delegates/progress.js +0 -187
  775. data/sproutcore/frameworks/desktop/render_delegates/radio.js +0 -95
  776. data/sproutcore/frameworks/desktop/render_delegates/radio_group.js +0 -109
  777. data/sproutcore/frameworks/desktop/render_delegates/segment.js +0 -55
  778. data/sproutcore/frameworks/desktop/render_delegates/segmented.js +0 -77
  779. data/sproutcore/frameworks/desktop/render_delegates/slider.js +0 -58
  780. data/sproutcore/frameworks/desktop/render_delegates/source_list.js +0 -8
  781. data/sproutcore/frameworks/desktop/render_delegates/toolbar.js +0 -18
  782. data/sproutcore/frameworks/desktop/render_delegates/well.js +0 -27
  783. data/sproutcore/frameworks/desktop/render_delegates/workspace.js +0 -18
  784. data/sproutcore/frameworks/desktop/system/drag.js +0 -974
  785. data/sproutcore/frameworks/desktop/system/key_bindings.js +0 -40
  786. data/sproutcore/frameworks/desktop/system/undo_manager.js +0 -187
  787. data/sproutcore/frameworks/desktop/tests/integration/dialog.js +0 -48
  788. data/sproutcore/frameworks/desktop/tests/mixins/border.js +0 -97
  789. data/sproutcore/frameworks/desktop/tests/panes/alert/methods.js +0 -10
  790. data/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +0 -158
  791. data/sproutcore/frameworks/desktop/tests/panes/menu/methods.js +0 -135
  792. data/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +0 -258
  793. data/sproutcore/frameworks/desktop/tests/panes/palette/methods.js +0 -10
  794. data/sproutcore/frameworks/desktop/tests/panes/palette/ui.js +0 -35
  795. data/sproutcore/frameworks/desktop/tests/panes/pane_page.js +0 -41
  796. data/sproutcore/frameworks/desktop/tests/panes/panel/methods.js +0 -10
  797. data/sproutcore/frameworks/desktop/tests/panes/panel/ui.js +0 -83
  798. data/sproutcore/frameworks/desktop/tests/panes/picker/methods.js +0 -10
  799. data/sproutcore/frameworks/desktop/tests/panes/picker/ui.js +0 -92
  800. data/sproutcore/frameworks/desktop/tests/panes/select_button/methods.js +0 -194
  801. data/sproutcore/frameworks/desktop/tests/panes/select_button/ui.js +0 -220
  802. data/sproutcore/frameworks/desktop/tests/panes/sheet/methods.js +0 -10
  803. data/sproutcore/frameworks/desktop/tests/panes/sheet/ui.js +0 -44
  804. data/sproutcore/frameworks/desktop/tests/views/button/methods.js +0 -166
  805. data/sproutcore/frameworks/desktop/tests/views/button/ui.js +0 -236
  806. data/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +0 -126
  807. data/sproutcore/frameworks/desktop/tests/views/checkbox/ui.js +0 -124
  808. data/sproutcore/frameworks/desktop/tests/views/collection/content.js +0 -249
  809. data/sproutcore/frameworks/desktop/tests/views/collection/deleteSelection.js +0 -82
  810. data/sproutcore/frameworks/desktop/tests/views/collection/deselect.js +0 -215
  811. data/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js +0 -31
  812. data/sproutcore/frameworks/desktop/tests/views/collection/itemViewForContentIndex.js +0 -300
  813. data/sproutcore/frameworks/desktop/tests/views/collection/layerIdFor.js +0 -65
  814. data/sproutcore/frameworks/desktop/tests/views/collection/length.js +0 -88
  815. data/sproutcore/frameworks/desktop/tests/views/collection/mouse.js +0 -240
  816. data/sproutcore/frameworks/desktop/tests/views/collection/nowShowing.js +0 -121
  817. data/sproutcore/frameworks/desktop/tests/views/collection/reload.js +0 -177
  818. data/sproutcore/frameworks/desktop/tests/views/collection/select.js +0 -240
  819. data/sproutcore/frameworks/desktop/tests/views/collection/selectNextItem.js +0 -205
  820. data/sproutcore/frameworks/desktop/tests/views/collection/selectPreviousItem.js +0 -211
  821. data/sproutcore/frameworks/desktop/tests/views/collection/selection.js +0 -141
  822. data/sproutcore/frameworks/desktop/tests/views/collection/ui_diagram.js +0 -188
  823. data/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +0 -76
  824. data/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +0 -456
  825. data/sproutcore/frameworks/desktop/tests/views/disclosure/methods.js +0 -10
  826. data/sproutcore/frameworks/desktop/tests/views/disclosure/ui.js +0 -104
  827. data/sproutcore/frameworks/desktop/tests/views/grid/methods.js +0 -10
  828. data/sproutcore/frameworks/desktop/tests/views/grid/ui.js +0 -10
  829. data/sproutcore/frameworks/desktop/tests/views/image_button/ui.js +0 -25
  830. data/sproutcore/frameworks/desktop/tests/views/list/render.js +0 -92
  831. data/sproutcore/frameworks/desktop/tests/views/list/rowDelegate.js +0 -183
  832. data/sproutcore/frameworks/desktop/tests/views/list/rowHeightForContentIndex.js +0 -133
  833. data/sproutcore/frameworks/desktop/tests/views/list/rowOffsetForContentIndex.js +0 -131
  834. data/sproutcore/frameworks/desktop/tests/views/list/ui_alternatingrows.js +0 -130
  835. data/sproutcore/frameworks/desktop/tests/views/list/ui_outline.js +0 -56
  836. data/sproutcore/frameworks/desktop/tests/views/list/ui_row_heights.js +0 -205
  837. data/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +0 -127
  838. data/sproutcore/frameworks/desktop/tests/views/list_item.js +0 -396
  839. data/sproutcore/frameworks/desktop/tests/views/menu_item/methods.js +0 -10
  840. data/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js +0 -46
  841. data/sproutcore/frameworks/desktop/tests/views/progress/methods.js +0 -128
  842. data/sproutcore/frameworks/desktop/tests/views/progress/ui.js +0 -421
  843. data/sproutcore/frameworks/desktop/tests/views/radio/methods.js +0 -119
  844. data/sproutcore/frameworks/desktop/tests/views/radio/ui.js +0 -349
  845. data/sproutcore/frameworks/desktop/tests/views/scroll/methods.js +0 -143
  846. data/sproutcore/frameworks/desktop/tests/views/scroll/ui.js +0 -162
  847. data/sproutcore/frameworks/desktop/tests/views/scroller.js +0 -118
  848. data/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +0 -108
  849. data/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +0 -457
  850. data/sproutcore/frameworks/desktop/tests/views/select/methods.js +0 -144
  851. data/sproutcore/frameworks/desktop/tests/views/select/ui.js +0 -224
  852. data/sproutcore/frameworks/desktop/tests/views/select_field/methods.js +0 -163
  853. data/sproutcore/frameworks/desktop/tests/views/select_field/ui.js +0 -117
  854. data/sproutcore/frameworks/desktop/tests/views/separator.js +0 -44
  855. data/sproutcore/frameworks/desktop/tests/views/source_list/methods.js +0 -10
  856. data/sproutcore/frameworks/desktop/tests/views/source_list/ui.js +0 -10
  857. data/sproutcore/frameworks/desktop/tests/views/split/methods.js +0 -60
  858. data/sproutcore/frameworks/desktop/tests/views/split/ui.js +0 -59
  859. data/sproutcore/frameworks/desktop/tests/views/stacked/ui_comments.js +0 -238
  860. data/sproutcore/frameworks/desktop/tests/views/static_content.js +0 -46
  861. data/sproutcore/frameworks/desktop/tests/views/tab/methods.js +0 -54
  862. data/sproutcore/frameworks/desktop/tests/views/tab/ui.js +0 -92
  863. data/sproutcore/frameworks/desktop/tests/views/toolbar/method.js +0 -33
  864. data/sproutcore/frameworks/desktop/tests/views/toolbar/ui.js +0 -29
  865. data/sproutcore/frameworks/desktop/tests/views/web/methods.js +0 -10
  866. data/sproutcore/frameworks/desktop/tests/views/web/ui.js +0 -110
  867. data/sproutcore/frameworks/desktop/tests/views/well/ui.js +0 -54
  868. data/sproutcore/frameworks/desktop/views/button.js +0 -564
  869. data/sproutcore/frameworks/desktop/views/checkbox.js +0 -110
  870. data/sproutcore/frameworks/desktop/views/collection.js +0 -3090
  871. data/sproutcore/frameworks/desktop/views/date_field.js +0 -319
  872. data/sproutcore/frameworks/desktop/views/disclosure.js +0 -68
  873. data/sproutcore/frameworks/desktop/views/file.js +0 -112
  874. data/sproutcore/frameworks/desktop/views/grid.js +0 -207
  875. data/sproutcore/frameworks/desktop/views/image_button.js +0 -74
  876. data/sproutcore/frameworks/desktop/views/list.js +0 -637
  877. data/sproutcore/frameworks/desktop/views/list_item.js +0 -923
  878. data/sproutcore/frameworks/desktop/views/master_detail.js +0 -257
  879. data/sproutcore/frameworks/desktop/views/menu_item.js +0 -704
  880. data/sproutcore/frameworks/desktop/views/menu_scroll.js +0 -615
  881. data/sproutcore/frameworks/desktop/views/navigation.js +0 -237
  882. data/sproutcore/frameworks/desktop/views/navigation_bar.js +0 -181
  883. data/sproutcore/frameworks/desktop/views/popup_button.js +0 -299
  884. data/sproutcore/frameworks/desktop/views/progress.js +0 -197
  885. data/sproutcore/frameworks/desktop/views/radio.js +0 -347
  886. data/sproutcore/frameworks/desktop/views/scene.js +0 -204
  887. data/sproutcore/frameworks/desktop/views/scroll.js +0 -1824
  888. data/sproutcore/frameworks/desktop/views/scroller.js +0 -917
  889. data/sproutcore/frameworks/desktop/views/segment.js +0 -104
  890. data/sproutcore/frameworks/desktop/views/segmented.js +0 -1002
  891. data/sproutcore/frameworks/desktop/views/select.js +0 -809
  892. data/sproutcore/frameworks/desktop/views/select_field.js +0 -344
  893. data/sproutcore/frameworks/desktop/views/separator.js +0 -36
  894. data/sproutcore/frameworks/desktop/views/slider.js +0 -291
  895. data/sproutcore/frameworks/desktop/views/source_list.js +0 -49
  896. data/sproutcore/frameworks/desktop/views/source_list_group.js +0 -169
  897. data/sproutcore/frameworks/desktop/views/split.js +0 -891
  898. data/sproutcore/frameworks/desktop/views/split_divider.js +0 -52
  899. data/sproutcore/frameworks/desktop/views/stacked.js +0 -110
  900. data/sproutcore/frameworks/desktop/views/static_content.js +0 -134
  901. data/sproutcore/frameworks/desktop/views/tab.js +0 -186
  902. data/sproutcore/frameworks/desktop/views/thumb.js +0 -53
  903. data/sproutcore/frameworks/desktop/views/toolbar.js +0 -88
  904. data/sproutcore/frameworks/desktop/views/web.js +0 -87
  905. data/sproutcore/frameworks/desktop/views/well.js +0 -65
  906. data/sproutcore/frameworks/desktop/views/workspace.js +0 -251
  907. data/sproutcore/frameworks/documentation/core.js +0 -0
  908. data/sproutcore/frameworks/experimental/README.md +0 -23
  909. data/sproutcore/frameworks/experimental/frameworks/device_motion/README.md +0 -11
  910. data/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +0 -215
  911. data/sproutcore/frameworks/experimental/frameworks/device_motion/platform.js +0 -67
  912. data/sproutcore/frameworks/experimental/frameworks/polymorphism/README.md +0 -34
  913. data/sproutcore/frameworks/experimental/frameworks/polymorphism/models/polymorphic_single_attribute.js +0 -183
  914. data/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +0 -23
  915. data/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphic/single.js +0 -124
  916. data/sproutcore/frameworks/forms/english.lproj/default_styles.css +0 -5
  917. data/sproutcore/frameworks/forms/english.lproj/strings.js +0 -15
  918. data/sproutcore/frameworks/forms/mixins/edit_mode.js +0 -43
  919. data/sproutcore/frameworks/forms/mixins/emptiness.js +0 -95
  920. data/sproutcore/frameworks/forms/renderer_delegates/form.js +0 -22
  921. data/sproutcore/frameworks/forms/renderer_delegates/form_row.js +0 -21
  922. data/sproutcore/frameworks/forms/tests/views/form.js +0 -15
  923. data/sproutcore/frameworks/forms/tests/views/form_checkbox_field.js +0 -15
  924. data/sproutcore/frameworks/forms/tests/views/form_field.js +0 -15
  925. data/sproutcore/frameworks/forms/tests/views/form_label.js +0 -15
  926. data/sproutcore/frameworks/forms/tests/views/form_radio_field.js +0 -15
  927. data/sproutcore/frameworks/forms/tests/views/form_row.js +0 -15
  928. data/sproutcore/frameworks/forms/tests/views/form_text_field.js +0 -15
  929. data/sproutcore/frameworks/forms/views/form.js +0 -282
  930. data/sproutcore/frameworks/forms/views/form_row.js +0 -183
  931. data/sproutcore/frameworks/foundation/.greenhouseconf +0 -35
  932. data/sproutcore/frameworks/foundation/TESTING +0 -46
  933. data/sproutcore/frameworks/foundation/controllers/tree.js +0 -127
  934. data/sproutcore/frameworks/foundation/core.js +0 -0
  935. data/sproutcore/frameworks/foundation/debug/control_test_pane.js +0 -191
  936. data/sproutcore/frameworks/foundation/english.lproj/benchmark.css +0 -146
  937. data/sproutcore/frameworks/foundation/english.lproj/blank.gif +0 -0
  938. data/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +0 -67
  939. data/sproutcore/frameworks/foundation/english.lproj/button_view.css +0 -40
  940. data/sproutcore/frameworks/foundation/english.lproj/debug/control-test-pane.css +0 -9
  941. data/sproutcore/frameworks/foundation/english.lproj/images/favicon.ico +0 -0
  942. data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-logo.png +0 -0
  943. data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.jpg +0 -0
  944. data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.png +0 -0
  945. data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.jpg +0 -0
  946. data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.png +0 -0
  947. data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup.png +0 -0
  948. data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore.png +0 -0
  949. data/sproutcore/frameworks/foundation/english.lproj/inline_editor.css +0 -12
  950. data/sproutcore/frameworks/foundation/english.lproj/label.css +0 -47
  951. data/sproutcore/frameworks/foundation/english.lproj/static_layout.css +0 -5
  952. data/sproutcore/frameworks/foundation/english.lproj/text_field.css +0 -146
  953. data/sproutcore/frameworks/foundation/fixtures/file_exists.json +0 -1
  954. data/sproutcore/frameworks/foundation/fixtures/malformed.json +0 -11
  955. data/sproutcore/frameworks/foundation/gestures/pinch.js +0 -81
  956. data/sproutcore/frameworks/foundation/gestures/swipe.js +0 -144
  957. data/sproutcore/frameworks/foundation/gestures/tap.js +0 -113
  958. data/sproutcore/frameworks/foundation/license.js +0 -28
  959. data/sproutcore/frameworks/foundation/mixins/auto_mixin.js +0 -39
  960. data/sproutcore/frameworks/foundation/mixins/auto_resize.js +0 -233
  961. data/sproutcore/frameworks/foundation/mixins/button.js +0 -360
  962. data/sproutcore/frameworks/foundation/mixins/collection_content.js +0 -178
  963. data/sproutcore/frameworks/foundation/mixins/content_display.js +0 -114
  964. data/sproutcore/frameworks/foundation/mixins/control.js +0 -422
  965. data/sproutcore/frameworks/foundation/mixins/editable.js +0 -158
  966. data/sproutcore/frameworks/foundation/mixins/flowed_layout.js +0 -628
  967. data/sproutcore/frameworks/foundation/mixins/gestureable.js +0 -214
  968. data/sproutcore/frameworks/foundation/mixins/inline_editable.js +0 -89
  969. data/sproutcore/frameworks/foundation/mixins/inline_editor_delegate.js +0 -139
  970. data/sproutcore/frameworks/foundation/mixins/inline_text_field.js +0 -589
  971. data/sproutcore/frameworks/foundation/mixins/inner_frame.js +0 -184
  972. data/sproutcore/frameworks/foundation/mixins/static_layout.js +0 -77
  973. data/sproutcore/frameworks/foundation/mixins/string.js +0 -391
  974. data/sproutcore/frameworks/foundation/mixins/tree_item_content.js +0 -160
  975. data/sproutcore/frameworks/foundation/mixins/validatable.js +0 -189
  976. data/sproutcore/frameworks/foundation/private/tree_item_observer.js +0 -914
  977. data/sproutcore/frameworks/foundation/render_delegates/canvas_image.js +0 -110
  978. data/sproutcore/frameworks/foundation/render_delegates/container.js +0 -18
  979. data/sproutcore/frameworks/foundation/render_delegates/image.js +0 -97
  980. data/sproutcore/frameworks/foundation/render_delegates/label.js +0 -139
  981. data/sproutcore/frameworks/foundation/render_delegates/render_delegate.js +0 -17
  982. data/sproutcore/frameworks/foundation/system/benchmark.js +0 -718
  983. data/sproutcore/frameworks/foundation/system/chance.js +0 -64
  984. data/sproutcore/frameworks/foundation/system/cookie.js +0 -171
  985. data/sproutcore/frameworks/foundation/system/core_query.js +0 -56
  986. data/sproutcore/frameworks/foundation/system/exception_handler.js +0 -88
  987. data/sproutcore/frameworks/foundation/system/gesture.js +0 -363
  988. data/sproutcore/frameworks/foundation/system/image_queue.js +0 -433
  989. data/sproutcore/frameworks/foundation/system/math.js +0 -57
  990. data/sproutcore/frameworks/foundation/system/module.js +0 -583
  991. data/sproutcore/frameworks/foundation/system/request.js +0 -596
  992. data/sproutcore/frameworks/foundation/system/response.js +0 -550
  993. data/sproutcore/frameworks/foundation/system/routes.js +0 -519
  994. data/sproutcore/frameworks/foundation/system/staticqueue.js +0 -53
  995. data/sproutcore/frameworks/foundation/system/task_queue.js +0 -153
  996. data/sproutcore/frameworks/foundation/system/text_selection.js +0 -103
  997. data/sproutcore/frameworks/foundation/system/time.js +0 -473
  998. data/sproutcore/frameworks/foundation/system/user_defaults.js +0 -392
  999. data/sproutcore/frameworks/foundation/system/utils/colors.js +0 -80
  1000. data/sproutcore/frameworks/foundation/system/utils/misc.js +0 -137
  1001. data/sproutcore/frameworks/foundation/system/utils/range.js +0 -64
  1002. data/sproutcore/frameworks/foundation/system/utils/string_measurement.js +0 -247
  1003. data/sproutcore/frameworks/foundation/tasks/preload_bundle.js +0 -41
  1004. data/sproutcore/frameworks/foundation/tasks/task.js +0 -17
  1005. data/sproutcore/frameworks/foundation/tests/controllers/tree/outline_case.js +0 -108
  1006. data/sproutcore/frameworks/foundation/tests/controllers/tree/selection_support.js +0 -340
  1007. data/sproutcore/frameworks/foundation/tests/debug/control_test_pane/methods.js +0 -10
  1008. data/sproutcore/frameworks/foundation/tests/debug/control_test_pane/ui.js +0 -113
  1009. data/sproutcore/frameworks/foundation/tests/integration/creating_views.js +0 -118
  1010. data/sproutcore/frameworks/foundation/tests/mixins/button/content.js +0 -195
  1011. data/sproutcore/frameworks/foundation/tests/mixins/button/displayProperties.js +0 -89
  1012. data/sproutcore/frameworks/foundation/tests/mixins/button/keyEquivalents.js +0 -57
  1013. data/sproutcore/frameworks/foundation/tests/mixins/button/ui.js +0 -69
  1014. data/sproutcore/frameworks/foundation/tests/mixins/content_display.js +0 -51
  1015. data/sproutcore/frameworks/foundation/tests/mixins/control/content.js +0 -168
  1016. data/sproutcore/frameworks/foundation/tests/mixins/control/displayProperties.js +0 -89
  1017. data/sproutcore/frameworks/foundation/tests/mixins/editable/ui.js +0 -44
  1018. data/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/api.js +0 -52
  1019. data/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +0 -238
  1020. data/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/ui.js +0 -64
  1021. data/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +0 -144
  1022. data/sproutcore/frameworks/foundation/tests/mixins/string.js +0 -28
  1023. data/sproutcore/frameworks/foundation/tests/mixins/validatable/ui.js +0 -74
  1024. data/sproutcore/frameworks/foundation/tests/private/tree_item_observer/flat_case.js +0 -325
  1025. data/sproutcore/frameworks/foundation/tests/private/tree_item_observer/group_case.js +0 -718
  1026. data/sproutcore/frameworks/foundation/tests/private/tree_item_observer/outline_case.js +0 -484
  1027. data/sproutcore/frameworks/foundation/tests/system/cookie.js +0 -179
  1028. data/sproutcore/frameworks/foundation/tests/system/core_query/setClass.js +0 -59
  1029. data/sproutcore/frameworks/foundation/tests/system/math.js +0 -39
  1030. data/sproutcore/frameworks/foundation/tests/system/request.js +0 -273
  1031. data/sproutcore/frameworks/foundation/tests/system/routes.js +0 -356
  1032. data/sproutcore/frameworks/foundation/tests/system/task_queue.js +0 -43
  1033. data/sproutcore/frameworks/foundation/tests/system/user_defaults.js +0 -24
  1034. data/sproutcore/frameworks/foundation/tests/system/utils/pointInElement.js +0 -235
  1035. data/sproutcore/frameworks/foundation/tests/system/utils/range.js +0 -62
  1036. data/sproutcore/frameworks/foundation/tests/validators/credit_card.js +0 -35
  1037. data/sproutcore/frameworks/foundation/tests/validators/date.js +0 -26
  1038. data/sproutcore/frameworks/foundation/tests/validators/not_empty.js +0 -56
  1039. data/sproutcore/frameworks/foundation/tests/validators/number.js +0 -47
  1040. data/sproutcore/frameworks/foundation/tests/validators/password.js +0 -13
  1041. data/sproutcore/frameworks/foundation/tests/validators/validator.js +0 -20
  1042. data/sproutcore/frameworks/foundation/tests/views/container/methods.js +0 -18
  1043. data/sproutcore/frameworks/foundation/tests/views/container/ui.js +0 -145
  1044. data/sproutcore/frameworks/foundation/tests/views/image/ui.js +0 -492
  1045. data/sproutcore/frameworks/foundation/tests/views/label/ui.js +0 -179
  1046. data/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +0 -87
  1047. data/sproutcore/frameworks/foundation/tests/views/text_field/nextValidKeyView.js +0 -110
  1048. data/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +0 -577
  1049. data/sproutcore/frameworks/foundation/validators/credit_card.js +0 -125
  1050. data/sproutcore/frameworks/foundation/validators/date.js +0 -52
  1051. data/sproutcore/frameworks/foundation/validators/date_time.js +0 -48
  1052. data/sproutcore/frameworks/foundation/validators/email.js +0 -45
  1053. data/sproutcore/frameworks/foundation/validators/not_empty.js +0 -37
  1054. data/sproutcore/frameworks/foundation/validators/number.js +0 -99
  1055. data/sproutcore/frameworks/foundation/validators/password.js +0 -86
  1056. data/sproutcore/frameworks/foundation/validators/positive_integer.js +0 -84
  1057. data/sproutcore/frameworks/foundation/validators/validator.js +0 -326
  1058. data/sproutcore/frameworks/foundation/views/container.js +0 -140
  1059. data/sproutcore/frameworks/foundation/views/field.js +0 -337
  1060. data/sproutcore/frameworks/foundation/views/image.js +0 -381
  1061. data/sproutcore/frameworks/foundation/views/label.js +0 -219
  1062. data/sproutcore/frameworks/foundation/views/text_field.js +0 -1073
  1063. data/sproutcore/frameworks/handlebars/extensions.js +0 -44
  1064. data/sproutcore/frameworks/handlebars/extensions/bind.js +0 -156
  1065. data/sproutcore/frameworks/handlebars/extensions/collection.js +0 -75
  1066. data/sproutcore/frameworks/handlebars/extensions/localization.js +0 -5
  1067. data/sproutcore/frameworks/handlebars/extensions/view.js +0 -115
  1068. data/sproutcore/frameworks/handlebars/handlebars.js +0 -1401
  1069. data/sproutcore/frameworks/jquery/jquery-buffer.js +0 -376
  1070. data/sproutcore/frameworks/jquery/jquery-buffered.js +0 -205
  1071. data/sproutcore/frameworks/jquery/jquery-sc.js +0 -7
  1072. data/sproutcore/frameworks/jquery/jquery.js +0 -7179
  1073. data/sproutcore/frameworks/media/.greenhouseconf +0 -29
  1074. data/sproutcore/frameworks/media/resources/controls.png +0 -0
  1075. data/sproutcore/frameworks/media/resources/playeras3.fla +0 -0
  1076. data/sproutcore/frameworks/media/resources/video.css +0 -124
  1077. data/sproutcore/frameworks/media/resources/videoCanvas.swf +0 -0
  1078. data/sproutcore/frameworks/media/views/audio.js +0 -741
  1079. data/sproutcore/frameworks/media/views/controls.js +0 -88
  1080. data/sproutcore/frameworks/media/views/media_slider.js +0 -243
  1081. data/sproutcore/frameworks/media/views/mini_controls.js +0 -63
  1082. data/sproutcore/frameworks/media/views/simple_controls.js +0 -54
  1083. data/sproutcore/frameworks/media/views/video.js +0 -832
  1084. data/sproutcore/frameworks/mini/license.js +0 -29
  1085. data/sproutcore/frameworks/runtime/README +0 -12
  1086. data/sproutcore/frameworks/runtime/core.js +0 -1102
  1087. data/sproutcore/frameworks/runtime/debug/test_suites/array.js +0 -14
  1088. data/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +0 -397
  1089. data/sproutcore/frameworks/runtime/debug/test_suites/array/indexOf.js +0 -33
  1090. data/sproutcore/frameworks/runtime/debug/test_suites/array/insertAt.js +0 -121
  1091. data/sproutcore/frameworks/runtime/debug/test_suites/array/objectAt.js +0 -34
  1092. data/sproutcore/frameworks/runtime/debug/test_suites/array/popObject.js +0 -50
  1093. data/sproutcore/frameworks/runtime/debug/test_suites/array/pushObject.js +0 -46
  1094. data/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +0 -371
  1095. data/sproutcore/frameworks/runtime/debug/test_suites/array/removeAt.js +0 -100
  1096. data/sproutcore/frameworks/runtime/debug/test_suites/array/removeObject.js +0 -49
  1097. data/sproutcore/frameworks/runtime/debug/test_suites/array/replace.js +0 -94
  1098. data/sproutcore/frameworks/runtime/debug/test_suites/array/shiftObject.js +0 -50
  1099. data/sproutcore/frameworks/runtime/debug/test_suites/array/unshiftObject.js +0 -47
  1100. data/sproutcore/frameworks/runtime/license.js +0 -29
  1101. data/sproutcore/frameworks/runtime/mixins/array.js +0 -658
  1102. data/sproutcore/frameworks/runtime/mixins/comparable.js +0 -45
  1103. data/sproutcore/frameworks/runtime/mixins/copyable.js +0 -72
  1104. data/sproutcore/frameworks/runtime/mixins/enumerable.js +0 -1426
  1105. data/sproutcore/frameworks/runtime/mixins/freezable.js +0 -110
  1106. data/sproutcore/frameworks/runtime/mixins/observable.js +0 -1408
  1107. data/sproutcore/frameworks/runtime/private/chain_observer.js +0 -178
  1108. data/sproutcore/frameworks/runtime/private/observer_queue.js +0 -178
  1109. data/sproutcore/frameworks/runtime/private/observer_set.js +0 -123
  1110. data/sproutcore/frameworks/runtime/system/binding.js +0 -1000
  1111. data/sproutcore/frameworks/runtime/system/enumerator.js +0 -107
  1112. data/sproutcore/frameworks/runtime/system/error.js +0 -157
  1113. data/sproutcore/frameworks/runtime/system/index_set.js +0 -1199
  1114. data/sproutcore/frameworks/runtime/system/logger.js +0 -1582
  1115. data/sproutcore/frameworks/runtime/system/object.js +0 -947
  1116. data/sproutcore/frameworks/runtime/system/range_observer.js +0 -270
  1117. data/sproutcore/frameworks/runtime/system/run_loop.js +0 -308
  1118. data/sproutcore/frameworks/runtime/system/set.js +0 -536
  1119. data/sproutcore/frameworks/runtime/tests/core/IsEqual.js +0 -30
  1120. data/sproutcore/frameworks/runtime/tests/core/beget.js +0 -23
  1121. data/sproutcore/frameworks/runtime/tests/core/clone.js +0 -108
  1122. data/sproutcore/frameworks/runtime/tests/core/compare.js +0 -44
  1123. data/sproutcore/frameworks/runtime/tests/core/console.js +0 -16
  1124. data/sproutcore/frameworks/runtime/tests/core/guidFor.js +0 -109
  1125. data/sproutcore/frameworks/runtime/tests/core/inspect.js +0 -27
  1126. data/sproutcore/frameworks/runtime/tests/core/itemType.js +0 -71
  1127. data/sproutcore/frameworks/runtime/tests/core/keys.js +0 -20
  1128. data/sproutcore/frameworks/runtime/tests/core/makeArray.js +0 -44
  1129. data/sproutcore/frameworks/runtime/tests/core/objectForPropertyPath.js +0 -19
  1130. data/sproutcore/frameworks/runtime/tests/core/tupleForPropertyPath.js +0 -37
  1131. data/sproutcore/frameworks/runtime/tests/mixins/array.js +0 -59
  1132. data/sproutcore/frameworks/runtime/tests/mixins/comparable.js +0 -44
  1133. data/sproutcore/frameworks/runtime/tests/mixins/enumerable.js +0 -658
  1134. data/sproutcore/frameworks/runtime/tests/mixins/observable/chained.js +0 -37
  1135. data/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +0 -733
  1136. data/sproutcore/frameworks/runtime/tests/mixins/observable/propertyChanges.js +0 -155
  1137. data/sproutcore/frameworks/runtime/tests/mixins/observable/registerDependentKeys.js +0 -79
  1138. data/sproutcore/frameworks/runtime/tests/mixins/propertyChanges.js +0 -81
  1139. data/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +0 -55
  1140. data/sproutcore/frameworks/runtime/tests/system/binding.js +0 -395
  1141. data/sproutcore/frameworks/runtime/tests/system/error.js +0 -53
  1142. data/sproutcore/frameworks/runtime/tests/system/index_set/add.js +0 -212
  1143. data/sproutcore/frameworks/runtime/tests/system/index_set/addEach.js +0 -49
  1144. data/sproutcore/frameworks/runtime/tests/system/index_set/clone.js +0 -43
  1145. data/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +0 -74
  1146. data/sproutcore/frameworks/runtime/tests/system/index_set/create.js +0 -42
  1147. data/sproutcore/frameworks/runtime/tests/system/index_set/indexAfter.js +0 -38
  1148. data/sproutcore/frameworks/runtime/tests/system/index_set/indexBefore.js +0 -38
  1149. data/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +0 -74
  1150. data/sproutcore/frameworks/runtime/tests/system/index_set/max.js +0 -40
  1151. data/sproutcore/frameworks/runtime/tests/system/index_set/min.js +0 -50
  1152. data/sproutcore/frameworks/runtime/tests/system/index_set/rangeStartForIndex.js +0 -36
  1153. data/sproutcore/frameworks/runtime/tests/system/index_set/remove.js +0 -189
  1154. data/sproutcore/frameworks/runtime/tests/system/index_set/removeEach.js +0 -49
  1155. data/sproutcore/frameworks/runtime/tests/system/index_set/without.js +0 -89
  1156. data/sproutcore/frameworks/runtime/tests/system/logger.js +0 -260
  1157. data/sproutcore/frameworks/runtime/tests/system/object/base.js +0 -195
  1158. data/sproutcore/frameworks/runtime/tests/system/object/bindings.js +0 -374
  1159. data/sproutcore/frameworks/runtime/tests/system/object/concatenated_properties.js +0 -71
  1160. data/sproutcore/frameworks/runtime/tests/system/object/enhance.js +0 -177
  1161. data/sproutcore/frameworks/runtime/tests/system/observer_set.js +0 -50
  1162. data/sproutcore/frameworks/runtime/tests/system/range_observer/create.js +0 -59
  1163. data/sproutcore/frameworks/runtime/tests/system/range_observer/destroy.js +0 -75
  1164. data/sproutcore/frameworks/runtime/tests/system/range_observer/objectPropertyDidChange.js +0 -117
  1165. data/sproutcore/frameworks/runtime/tests/system/range_observer/rangeDidChange.js +0 -110
  1166. data/sproutcore/frameworks/runtime/tests/system/range_observer/update.js +0 -65
  1167. data/sproutcore/frameworks/runtime/tests/system/run_loop.js +0 -120
  1168. data/sproutcore/frameworks/runtime/tests/system/set.js +0 -318
  1169. data/sproutcore/frameworks/statechart/core.js +0 -5
  1170. data/sproutcore/frameworks/statechart/debug/monitor.js +0 -136
  1171. data/sproutcore/frameworks/statechart/system/state.js +0 -713
  1172. data/sproutcore/frameworks/statechart/system/statechart.js +0 -951
  1173. data/sproutcore/frameworks/statechart/tests/async.js +0 -94
  1174. data/sproutcore/frameworks/statechart/tests/event_handling/advanced_event_handling.js +0 -310
  1175. data/sproutcore/frameworks/statechart/tests/namespace/access_substates.js +0 -252
  1176. data/sproutcore/frameworks/statechart/tests/state/is_current_state.js +0 -64
  1177. data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_history_state.js +0 -88
  1178. data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_advanced.js +0 -234
  1179. data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_async.js +0 -123
  1180. data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_basic.js +0 -139
  1181. data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_intermediate.js +0 -119
  1182. data/sproutcore/frameworks/statechart/tests/with_concurrent_states/send_event.js +0 -183
  1183. data/sproutcore/frameworks/statechart/tests/without_concurrent_states/default_responder.js +0 -90
  1184. data/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_history_state.js +0 -200
  1185. data/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_state.js +0 -256
  1186. data/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_state_async.js +0 -187
  1187. data/sproutcore/frameworks/statechart/tests/without_concurrent_states/send_event.js +0 -122
  1188. data/sproutcore/frameworks/statechart/tests/without_concurrent_states/state_plugin.js +0 -99
  1189. data/sproutcore/frameworks/statechart/tests/without_concurrent_states/transient.js +0 -162
  1190. data/sproutcore/frameworks/table/mixins/table_delegate.js +0 -41
  1191. data/sproutcore/frameworks/table/system/table_column.js +0 -125
  1192. data/sproutcore/frameworks/table/views/table.js +0 -440
  1193. data/sproutcore/frameworks/table/views/table_cell.js +0 -63
  1194. data/sproutcore/frameworks/table/views/table_head.js +0 -158
  1195. data/sproutcore/frameworks/table/views/table_header.js +0 -214
  1196. data/sproutcore/frameworks/table/views/table_row.js +0 -155
  1197. data/sproutcore/frameworks/testing/core.js +0 -196
  1198. data/sproutcore/frameworks/testing/english.lproj/additions.css +0 -8
  1199. data/sproutcore/frameworks/testing/english.lproj/runner.css +0 -128
  1200. data/sproutcore/frameworks/testing/english.lproj/testsuite.css +0 -136
  1201. data/sproutcore/frameworks/testing/extras.js +0 -17
  1202. data/sproutcore/frameworks/testing/jquery.js +0 -3559
  1203. data/sproutcore/frameworks/testing/qunit.js +0 -827
  1204. data/sproutcore/frameworks/testing/system/dump.js +0 -205
  1205. data/sproutcore/frameworks/testing/system/equiv.js +0 -201
  1206. data/sproutcore/frameworks/testing/system/plan.js +0 -703
  1207. data/sproutcore/frameworks/testing/system/runner.js +0 -220
  1208. data/sproutcore/frameworks/testing/system/suite.js +0 -228
  1209. data/sproutcore/frameworks/testing/utils.js +0 -62
  1210. data/sproutcore/lib/index.rhtml +0 -164
  1211. data/sproutcore/license.js +0 -31
  1212. data/sproutcore/themes/ace/designs/dark.png +0 -0
  1213. data/sproutcore/themes/ace/designs/dark.psd +0 -0
  1214. data/sproutcore/themes/ace/designs/light.png +0 -0
  1215. data/sproutcore/themes/ace/designs/light.psd +0 -0
  1216. data/sproutcore/themes/ace/designs/psds/button/ace/18px/active_button.psd +0 -0
  1217. data/sproutcore/themes/ace/designs/psds/button/ace/18px/normal_button.psd +0 -0
  1218. data/sproutcore/themes/ace/designs/psds/button/ace/18px/selected_active_button.psd +0 -0
  1219. data/sproutcore/themes/ace/designs/psds/button/ace/18px/selected_button.psd +0 -0
  1220. data/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button.psd +0 -0
  1221. data/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button_capsule.psd +0 -0
  1222. data/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button_pointer.psd +0 -0
  1223. data/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button.psd +0 -0
  1224. data/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button_capsule.psd +0 -0
  1225. data/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button_pointer.psd +0 -0
  1226. data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button.psd +0 -0
  1227. data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button_capsule.psd +0 -0
  1228. data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button_pointer.psd +0 -0
  1229. data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button.psd +0 -0
  1230. data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button_capsule.psd +0 -0
  1231. data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button_pointer.psd +0 -0
  1232. data/sproutcore/themes/ace/designs/psds/button/ace/30px/active_button.psd +0 -0
  1233. data/sproutcore/themes/ace/designs/psds/button/ace/30px/active_button_pointer.psd +0 -0
  1234. data/sproutcore/themes/ace/designs/psds/button/ace/30px/normal_button.psd +0 -0
  1235. data/sproutcore/themes/ace/designs/psds/button/ace/30px/normal_button_pointer.psd +0 -0
  1236. data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_active_button.psd +0 -0
  1237. data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_active_button_pointer.psd +0 -0
  1238. data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_button.psd +0 -0
  1239. data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_button_pointer.psd +0 -0
  1240. data/sproutcore/themes/ace/designs/psds/button/ace/44px/active_button.psd +0 -0
  1241. data/sproutcore/themes/ace/designs/psds/button/ace/44px/normal_button.psd +0 -0
  1242. data/sproutcore/themes/ace/designs/psds/button/ace/44px/selected_active_button.psd +0 -0
  1243. data/sproutcore/themes/ace/designs/psds/button/ace/44px/selected_button.psd +0 -0
  1244. data/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button.psd +0 -0
  1245. data/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button_capsule.psd +0 -0
  1246. data/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button_pointer.psd +0 -0
  1247. data/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button.psd +0 -0
  1248. data/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button_capsule.psd +0 -0
  1249. data/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button_pointer.psd +0 -0
  1250. data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button.psd +0 -0
  1251. data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button_capsule.psd +0 -0
  1252. data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button_pointer.psd +0 -0
  1253. data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button.psd +0 -0
  1254. data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button_capsule.psd +0 -0
  1255. data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button_pointer.psd +0 -0
  1256. data/sproutcore/themes/ace/designs/psds/button/dark/30px/active_button.psd +0 -0
  1257. data/sproutcore/themes/ace/designs/psds/button/dark/30px/active_button_pointer.psd +0 -0
  1258. data/sproutcore/themes/ace/designs/psds/button/dark/30px/normal_button.psd +0 -0
  1259. data/sproutcore/themes/ace/designs/psds/button/dark/30px/normal_button_pointer.psd +0 -0
  1260. data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_active_button.psd +0 -0
  1261. data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_active_button_pointer.psd +0 -0
  1262. data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_button.psd +0 -0
  1263. data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_button_pointer.psd +0 -0
  1264. data/sproutcore/themes/ace/designs/psds/button/popup/active_select.psd +0 -0
  1265. data/sproutcore/themes/ace/designs/psds/button/popup/normal_select.psd +0 -0
  1266. data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_checked.psd +0 -0
  1267. data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_checked_active.psd +0 -0
  1268. data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_mixed.psd +0 -0
  1269. data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_mixed_active.psd +0 -0
  1270. data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_unchecked.psd +0 -0
  1271. data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_unchecked_active.psd +0 -0
  1272. data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_checked.psd +0 -0
  1273. data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_checked_active.psd +0 -0
  1274. data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_mixed.psd +0 -0
  1275. data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_mixed_active.psd +0 -0
  1276. data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_unchecked.psd +0 -0
  1277. data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_unchecked_active.psd +0 -0
  1278. data/sproutcore/themes/ace/designs/psds/collection/source-list/selection.psd +0 -0
  1279. data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_closed.psd +0 -0
  1280. data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_closed_active.psd +0 -0
  1281. data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_open.psd +0 -0
  1282. data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_open_active.psd +0 -0
  1283. data/sproutcore/themes/ace/designs/psds/menu/checkmark.psd +0 -0
  1284. data/sproutcore/themes/ace/designs/psds/menu/checkmark_active.psd +0 -0
  1285. data/sproutcore/themes/ace/designs/psds/menu/down.psd +0 -0
  1286. data/sproutcore/themes/ace/designs/psds/menu/menu.psd +0 -0
  1287. data/sproutcore/themes/ace/designs/psds/menu/menu_item.psd +0 -0
  1288. data/sproutcore/themes/ace/designs/psds/menu/up.psd +0 -0
  1289. data/sproutcore/themes/ace/designs/psds/panel/panel.psd +0 -0
  1290. data/sproutcore/themes/ace/designs/psds/panel/pointers.psd +0 -0
  1291. data/sproutcore/themes/ace/designs/psds/picker/popover/popover.psd +0 -0
  1292. data/sproutcore/themes/ace/designs/psds/picker/popover/popover_empty.psd +0 -0
  1293. data/sproutcore/themes/ace/designs/psds/picker/popover/popover_notoolbar.psd +0 -0
  1294. data/sproutcore/themes/ace/designs/psds/picker/popover/popover_pointers.psd +0 -0
  1295. data/sproutcore/themes/ace/designs/psds/picker/popover/popover_pointers_notoolbar.psd +0 -0
  1296. data/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_content.psd +0 -0
  1297. data/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_indeterminate_content.psd +0 -0
  1298. data/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_track.psd +0 -0
  1299. data/sproutcore/themes/ace/designs/psds/radio/radio_active.psd +0 -0
  1300. data/sproutcore/themes/ace/designs/psds/radio/radio_mixed.psd +0 -0
  1301. data/sproutcore/themes/ace/designs/psds/radio/radio_mixed_active.psd +0 -0
  1302. data/sproutcore/themes/ace/designs/psds/radio/radio_selected.psd +0 -0
  1303. data/sproutcore/themes/ace/designs/psds/radio/radio_selected_active.psd +0 -0
  1304. data/sproutcore/themes/ace/designs/psds/radio/radio_unselected.psd +0 -0
  1305. data/sproutcore/themes/ace/designs/psds/scroller/horizontal/thumb.psd +0 -0
  1306. data/sproutcore/themes/ace/designs/psds/scroller/horizontal/track_and_arrows.psd +0 -0
  1307. data/sproutcore/themes/ace/designs/psds/scroller/horizontal/track_and_arrows_active.psd +0 -0
  1308. data/sproutcore/themes/ace/designs/psds/scroller/vertical/thumb.psd +0 -0
  1309. data/sproutcore/themes/ace/designs/psds/scroller/vertical/track_and_arrows.psd +0 -0
  1310. data/sproutcore/themes/ace/designs/psds/scroller/vertical/track_and_arrows_active.psd +0 -0
  1311. data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_active.psd +0 -0
  1312. data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_normal.psd +0 -0
  1313. data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_selected.psd +0 -0
  1314. data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_selected_active.psd +0 -0
  1315. data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_active.psd +0 -0
  1316. data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_normal.psd +0 -0
  1317. data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_selected.psd +0 -0
  1318. data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_selected_active.psd +0 -0
  1319. data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_active.psd +0 -0
  1320. data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_normal.psd +0 -0
  1321. data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_selected.psd +0 -0
  1322. data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_selected_active.psd +0 -0
  1323. data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_active.psd +0 -0
  1324. data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_normal.psd +0 -0
  1325. data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_selected.psd +0 -0
  1326. data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_selected_active.psd +0 -0
  1327. data/sproutcore/themes/ace/designs/psds/slider/ace/14px/knob.psd +0 -0
  1328. data/sproutcore/themes/ace/designs/psds/slider/ace/14px/knob_active.psd +0 -0
  1329. data/sproutcore/themes/ace/designs/psds/slider/ace/16px/knob.psd +0 -0
  1330. data/sproutcore/themes/ace/designs/psds/slider/ace/16px/knob_active.psd +0 -0
  1331. data/sproutcore/themes/ace/designs/psds/slider/ace/22px/knob.psd +0 -0
  1332. data/sproutcore/themes/ace/designs/psds/slider/ace/22px/knob_active.psd +0 -0
  1333. data/sproutcore/themes/ace/designs/psds/slider/ace/22px/track.psd +0 -0
  1334. data/sproutcore/themes/ace/designs/psds/slider/ace/track.psd +0 -0
  1335. data/sproutcore/themes/ace/designs/psds/toolbar/toolbar.psd +0 -0
  1336. data/sproutcore/themes/ace/designs/switch/switch.psd +0 -0
  1337. data/sproutcore/themes/ace/designs/switch/switch_handle.png +0 -0
  1338. data/sproutcore/themes/ace/designs/switch/switch_handle.psd +0 -0
  1339. data/sproutcore/themes/ace/designs/switch/switch_off.png +0 -0
  1340. data/sproutcore/themes/ace/designs/switch/switch_off.psd +0 -0
  1341. data/sproutcore/themes/ace/designs/switch/switch_on.png +0 -0
  1342. data/sproutcore/themes/ace/designs/switch/switch_on.psd +0 -0
  1343. data/sproutcore/themes/ace/resources/body.css +0 -13
  1344. data/sproutcore/themes/ace/resources/button/ace/18px/active_button.png +0 -0
  1345. data/sproutcore/themes/ace/resources/button/ace/18px/button.css +0 -33
  1346. data/sproutcore/themes/ace/resources/button/ace/18px/normal_button.png +0 -0
  1347. data/sproutcore/themes/ace/resources/button/ace/18px/selected_active_button.png +0 -0
  1348. data/sproutcore/themes/ace/resources/button/ace/18px/selected_button.png +0 -0
  1349. data/sproutcore/themes/ace/resources/button/ace/24px/active_button.png +0 -0
  1350. data/sproutcore/themes/ace/resources/button/ace/24px/active_button_capsule.png +0 -0
  1351. data/sproutcore/themes/ace/resources/button/ace/24px/active_button_pointer.png +0 -0
  1352. data/sproutcore/themes/ace/resources/button/ace/24px/button.css +0 -98
  1353. data/sproutcore/themes/ace/resources/button/ace/24px/normal_button.png +0 -0
  1354. data/sproutcore/themes/ace/resources/button/ace/24px/normal_button_capsule.png +0 -0
  1355. data/sproutcore/themes/ace/resources/button/ace/24px/normal_button_pointer.png +0 -0
  1356. data/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button.png +0 -0
  1357. data/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_capsule.png +0 -0
  1358. data/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_pointer.png +0 -0
  1359. data/sproutcore/themes/ace/resources/button/ace/24px/selected_button.png +0 -0
  1360. data/sproutcore/themes/ace/resources/button/ace/24px/selected_button_capsule.png +0 -0
  1361. data/sproutcore/themes/ace/resources/button/ace/24px/selected_button_pointer.png +0 -0
  1362. data/sproutcore/themes/ace/resources/button/ace/30px/active_button.png +0 -0
  1363. data/sproutcore/themes/ace/resources/button/ace/30px/active_button_pointer.png +0 -0
  1364. data/sproutcore/themes/ace/resources/button/ace/30px/button.css +0 -78
  1365. data/sproutcore/themes/ace/resources/button/ace/30px/normal_button.png +0 -0
  1366. data/sproutcore/themes/ace/resources/button/ace/30px/normal_button_pointer.png +0 -0
  1367. data/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button.png +0 -0
  1368. data/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button_pointer.png +0 -0
  1369. data/sproutcore/themes/ace/resources/button/ace/30px/selected_button.png +0 -0
  1370. data/sproutcore/themes/ace/resources/button/ace/30px/selected_button_pointer.png +0 -0
  1371. data/sproutcore/themes/ace/resources/button/ace/44px/active_button.png +0 -0
  1372. data/sproutcore/themes/ace/resources/button/ace/44px/button.css +0 -39
  1373. data/sproutcore/themes/ace/resources/button/ace/44px/normal_button.png +0 -0
  1374. data/sproutcore/themes/ace/resources/button/ace/44px/selected_active_button.png +0 -0
  1375. data/sproutcore/themes/ace/resources/button/ace/44px/selected_button.png +0 -0
  1376. data/sproutcore/themes/ace/resources/button/ace/button.css +0 -36
  1377. data/sproutcore/themes/ace/resources/button/button.js +0 -75
  1378. data/sproutcore/themes/ace/resources/button/dark/24px/active_button.png +0 -0
  1379. data/sproutcore/themes/ace/resources/button/dark/24px/active_button_capsule.png +0 -0
  1380. data/sproutcore/themes/ace/resources/button/dark/24px/active_button_pointer.png +0 -0
  1381. data/sproutcore/themes/ace/resources/button/dark/24px/button.css +0 -93
  1382. data/sproutcore/themes/ace/resources/button/dark/24px/normal_button.png +0 -0
  1383. data/sproutcore/themes/ace/resources/button/dark/24px/normal_button_capsule.png +0 -0
  1384. data/sproutcore/themes/ace/resources/button/dark/24px/normal_button_pointer.png +0 -0
  1385. data/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button.png +0 -0
  1386. data/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_capsule.png +0 -0
  1387. data/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_pointer.png +0 -0
  1388. data/sproutcore/themes/ace/resources/button/dark/24px/selected_button.png +0 -0
  1389. data/sproutcore/themes/ace/resources/button/dark/24px/selected_button_capsule.png +0 -0
  1390. data/sproutcore/themes/ace/resources/button/dark/24px/selected_button_pointer.png +0 -0
  1391. data/sproutcore/themes/ace/resources/button/dark/30px/active_button.png +0 -0
  1392. data/sproutcore/themes/ace/resources/button/dark/30px/active_button_pointer.png +0 -0
  1393. data/sproutcore/themes/ace/resources/button/dark/30px/button.css +0 -72
  1394. data/sproutcore/themes/ace/resources/button/dark/30px/normal_button.png +0 -0
  1395. data/sproutcore/themes/ace/resources/button/dark/30px/normal_button_pointer.png +0 -0
  1396. data/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button.png +0 -0
  1397. data/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button_pointer.png +0 -0
  1398. data/sproutcore/themes/ace/resources/button/dark/30px/selected_button.png +0 -0
  1399. data/sproutcore/themes/ace/resources/button/dark/30px/selected_button_pointer.png +0 -0
  1400. data/sproutcore/themes/ace/resources/button/dark/button.css +0 -17
  1401. data/sproutcore/themes/ace/resources/button/dark/button.js +0 -3
  1402. data/sproutcore/themes/ace/resources/button/popup/active_select.png +0 -0
  1403. data/sproutcore/themes/ace/resources/button/popup/normal_select.png +0 -0
  1404. data/sproutcore/themes/ace/resources/button/popup/select.css +0 -20
  1405. data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox.css +0 -40
  1406. data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked.png +0 -0
  1407. data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked_active.png +0 -0
  1408. data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed.png +0 -0
  1409. data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed_active.png +0 -0
  1410. data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked.png +0 -0
  1411. data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked_active.png +0 -0
  1412. data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox.css +0 -40
  1413. data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked.png +0 -0
  1414. data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked_active.png +0 -0
  1415. data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed.png +0 -0
  1416. data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed_active.png +0 -0
  1417. data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked.png +0 -0
  1418. data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked_active.png +0 -0
  1419. data/sproutcore/themes/ace/resources/checkbox/ace/checkbox.css +0 -7
  1420. data/sproutcore/themes/ace/resources/collection/normal/list.css +0 -4
  1421. data/sproutcore/themes/ace/resources/collection/normal/list_item.css +0 -17
  1422. data/sproutcore/themes/ace/resources/collection/source-list/selection.png +0 -0
  1423. data/sproutcore/themes/ace/resources/collection/source-list/source-list.js +0 -3
  1424. data/sproutcore/themes/ace/resources/collection/source-list/source_list_view.css +0 -36
  1425. data/sproutcore/themes/ace/resources/disclosure/ace/disclosure.css +0 -24
  1426. data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed.png +0 -0
  1427. data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed_active.png +0 -0
  1428. data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open.png +0 -0
  1429. data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open_active.png +0 -0
  1430. data/sproutcore/themes/ace/resources/imagebutton/ace/imagebutton.css +0 -11
  1431. data/sproutcore/themes/ace/resources/loading.css +0 -50
  1432. data/sproutcore/themes/ace/resources/master-detail/master-detail.css +0 -27
  1433. data/sproutcore/themes/ace/resources/menu/checkmark.png +0 -0
  1434. data/sproutcore/themes/ace/resources/menu/checkmark_active.png +0 -0
  1435. data/sproutcore/themes/ace/resources/menu/down.png +0 -0
  1436. data/sproutcore/themes/ace/resources/menu/menu.css +0 -75
  1437. data/sproutcore/themes/ace/resources/menu/menu.png +0 -0
  1438. data/sproutcore/themes/ace/resources/menu/menu_item.png +0 -0
  1439. data/sproutcore/themes/ace/resources/menu/up.png +0 -0
  1440. data/sproutcore/themes/ace/resources/pane/pane.css +0 -3
  1441. data/sproutcore/themes/ace/resources/panel/panel.css +0 -13
  1442. data/sproutcore/themes/ace/resources/panel/panel.js +0 -20
  1443. data/sproutcore/themes/ace/resources/panel/panel.png +0 -0
  1444. data/sproutcore/themes/ace/resources/picker/ace/panel.png +0 -0
  1445. data/sproutcore/themes/ace/resources/picker/ace/picker.css +0 -41
  1446. data/sproutcore/themes/ace/resources/picker/ace/picker.js +0 -0
  1447. data/sproutcore/themes/ace/resources/picker/ace/pointers.png +0 -0
  1448. data/sproutcore/themes/ace/resources/picker/popover/picker.js +0 -32
  1449. data/sproutcore/themes/ace/resources/picker/popover/popover.css +0 -111
  1450. data/sproutcore/themes/ace/resources/picker/popover/popover.js +0 -12
  1451. data/sproutcore/themes/ace/resources/picker/popover/popover.png +0 -0
  1452. data/sproutcore/themes/ace/resources/picker/popover/popover_empty.png +0 -0
  1453. data/sproutcore/themes/ace/resources/picker/popover/popover_notoolbar.png +0 -0
  1454. data/sproutcore/themes/ace/resources/picker/popover/popover_pointers.png +0 -0
  1455. data/sproutcore/themes/ace/resources/picker/popover/popover_pointers_notoolbar.png +0 -0
  1456. data/sproutcore/themes/ace/resources/picker/popover/workspace.js +0 -28
  1457. data/sproutcore/themes/ace/resources/progress/ace/progress.css +0 -27
  1458. data/sproutcore/themes/ace/resources/progress/ace/progress_view_content.png +0 -0
  1459. data/sproutcore/themes/ace/resources/progress/ace/progress_view_track.png +0 -0
  1460. data/sproutcore/themes/ace/resources/progress/progress.js +0 -78
  1461. data/sproutcore/themes/ace/resources/radio/radio.css +0 -63
  1462. data/sproutcore/themes/ace/resources/radio/radio_active.png +0 -0
  1463. data/sproutcore/themes/ace/resources/radio/radio_mixed.png +0 -0
  1464. data/sproutcore/themes/ace/resources/radio/radio_mixed_active.png +0 -0
  1465. data/sproutcore/themes/ace/resources/radio/radio_selected.png +0 -0
  1466. data/sproutcore/themes/ace/resources/radio/radio_selected_active.png +0 -0
  1467. data/sproutcore/themes/ace/resources/radio/radio_unselected.png +0 -0
  1468. data/sproutcore/themes/ace/resources/scroller/horizontal/horizontal.css +0 -78
  1469. data/sproutcore/themes/ace/resources/scroller/horizontal/horizontal_touch.css +0 -91
  1470. data/sproutcore/themes/ace/resources/scroller/horizontal/thumb.png +0 -0
  1471. data/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows.png +0 -0
  1472. data/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows_active.png +0 -0
  1473. data/sproutcore/themes/ace/resources/scroller/vertical/thumb.png +0 -0
  1474. data/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows.png +0 -0
  1475. data/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows_active.png +0 -0
  1476. data/sproutcore/themes/ace/resources/scroller/vertical/vertical.css +0 -80
  1477. data/sproutcore/themes/ace/resources/scroller/vertical/vertical_touch.css +0 -92
  1478. data/sproutcore/themes/ace/resources/segmented/18px/segmented.css +0 -91
  1479. data/sproutcore/themes/ace/resources/segmented/18px/segmented_active.png +0 -0
  1480. data/sproutcore/themes/ace/resources/segmented/18px/segmented_normal.png +0 -0
  1481. data/sproutcore/themes/ace/resources/segmented/18px/segmented_selected.png +0 -0
  1482. data/sproutcore/themes/ace/resources/segmented/18px/segmented_selected_active.png +0 -0
  1483. data/sproutcore/themes/ace/resources/segmented/24px/segmented.css +0 -91
  1484. data/sproutcore/themes/ace/resources/segmented/24px/segmented_active.png +0 -0
  1485. data/sproutcore/themes/ace/resources/segmented/24px/segmented_normal.png +0 -0
  1486. data/sproutcore/themes/ace/resources/segmented/24px/segmented_selected.png +0 -0
  1487. data/sproutcore/themes/ace/resources/segmented/24px/segmented_selected_active.png +0 -0
  1488. data/sproutcore/themes/ace/resources/segmented/30px/segmented.css +0 -91
  1489. data/sproutcore/themes/ace/resources/segmented/30px/segmented_active.png +0 -0
  1490. data/sproutcore/themes/ace/resources/segmented/30px/segmented_normal.png +0 -0
  1491. data/sproutcore/themes/ace/resources/segmented/30px/segmented_selected.png +0 -0
  1492. data/sproutcore/themes/ace/resources/segmented/30px/segmented_selected_active.png +0 -0
  1493. data/sproutcore/themes/ace/resources/segmented/44px/segmented.css +0 -95
  1494. data/sproutcore/themes/ace/resources/segmented/44px/segmented_active.png +0 -0
  1495. data/sproutcore/themes/ace/resources/segmented/44px/segmented_normal.png +0 -0
  1496. data/sproutcore/themes/ace/resources/segmented/44px/segmented_selected.png +0 -0
  1497. data/sproutcore/themes/ace/resources/segmented/44px/segmented_selected_active.png +0 -0
  1498. data/sproutcore/themes/ace/resources/segmented/segmented.css +0 -83
  1499. data/sproutcore/themes/ace/resources/slider/ace/14px/knob.png +0 -0
  1500. data/sproutcore/themes/ace/resources/slider/ace/14px/knob_active.png +0 -0
  1501. data/sproutcore/themes/ace/resources/slider/ace/14px/slider.css +0 -27
  1502. data/sproutcore/themes/ace/resources/slider/ace/16px/knob.png +0 -0
  1503. data/sproutcore/themes/ace/resources/slider/ace/16px/knob_active.png +0 -0
  1504. data/sproutcore/themes/ace/resources/slider/ace/16px/slider.css +0 -27
  1505. data/sproutcore/themes/ace/resources/slider/ace/22px/knob.png +0 -0
  1506. data/sproutcore/themes/ace/resources/slider/ace/22px/knob_active.png +0 -0
  1507. data/sproutcore/themes/ace/resources/slider/ace/22px/slider.css +0 -27
  1508. data/sproutcore/themes/ace/resources/slider/ace/22px/track.png +0 -0
  1509. data/sproutcore/themes/ace/resources/slider/ace/slider.css +0 -7
  1510. data/sproutcore/themes/ace/resources/slider/ace/slider.js +0 -56
  1511. data/sproutcore/themes/ace/resources/slider/ace/track.png +0 -0
  1512. data/sproutcore/themes/ace/resources/split/split.css +0 -5
  1513. data/sproutcore/themes/ace/resources/tab/tab.css +0 -3
  1514. data/sproutcore/themes/ace/resources/toolbar/toolbar.css +0 -8
  1515. data/sproutcore/themes/ace/resources/toolbar/toolbar.png +0 -0
  1516. data/sproutcore/themes/ace/resources/well/well.css +0 -7
  1517. data/sproutcore/themes/ace/resources/well/well.js +0 -17
  1518. data/sproutcore/themes/ace/theme.js +0 -14
  1519. data/sproutcore/themes/empty_theme/tests/mini_icons.rhtml +0 -69
  1520. data/sproutcore/themes/empty_theme/theme.js +0 -16
  1521. data/sproutcore/themes/iphone_theme/english.lproj/button.css +0 -41
  1522. data/sproutcore/themes/iphone_theme/english.lproj/core.css +0 -8
  1523. data/sproutcore/themes/iphone_theme/english.lproj/images/backButton.png +0 -0
  1524. data/sproutcore/themes/iphone_theme/english.lproj/images/blueButton.png +0 -0
  1525. data/sproutcore/themes/iphone_theme/english.lproj/images/cancel.png +0 -0
  1526. data/sproutcore/themes/iphone_theme/english.lproj/images/grayButton.png +0 -0
  1527. data/sproutcore/themes/iphone_theme/english.lproj/images/leftButton.png +0 -0
  1528. data/sproutcore/themes/iphone_theme/english.lproj/images/listArrow.png +0 -0
  1529. data/sproutcore/themes/iphone_theme/english.lproj/images/listArrowSel.png +0 -0
  1530. data/sproutcore/themes/iphone_theme/english.lproj/images/listGroup.png +0 -0
  1531. data/sproutcore/themes/iphone_theme/english.lproj/images/loading.gif +0 -0
  1532. data/sproutcore/themes/iphone_theme/english.lproj/images/pinstripes.png +0 -0
  1533. data/sproutcore/themes/iphone_theme/english.lproj/images/rightButton.png +0 -0
  1534. data/sproutcore/themes/iphone_theme/english.lproj/images/selection.png +0 -0
  1535. data/sproutcore/themes/iphone_theme/english.lproj/images/thumb.png +0 -0
  1536. data/sproutcore/themes/iphone_theme/english.lproj/images/toggle.png +0 -0
  1537. data/sproutcore/themes/iphone_theme/english.lproj/images/toggleOn.png +0 -0
  1538. data/sproutcore/themes/iphone_theme/english.lproj/images/toolButton.png +0 -0
  1539. data/sproutcore/themes/iphone_theme/english.lproj/images/toolbar.png +0 -0
  1540. data/sproutcore/themes/iphone_theme/english.lproj/images/whiteButton.png +0 -0
  1541. data/sproutcore/themes/iphone_theme/english.lproj/strings.js +0 -15
  1542. data/sproutcore/themes/standard_theme/Source/Panel.drawit/Data +0 -0
  1543. data/sproutcore/themes/standard_theme/Source/Panel.drawit/QuickLook/Preview.jpg +0 -0
  1544. data/sproutcore/themes/standard_theme/Source/Panel.drawit/QuickLook/Thumbnail.jpg +0 -0
  1545. data/sproutcore/themes/standard_theme/Source/SproutCore Theme Buttons.psd +0 -0
  1546. data/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/Data +0 -0
  1547. data/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Preview.jpg +0 -0
  1548. data/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Thumbnail.jpg +0 -0
  1549. data/sproutcore/themes/standard_theme/Source/icons/16/10.png +0 -0
  1550. data/sproutcore/themes/standard_theme/Source/icons/16/100.png +0 -0
  1551. data/sproutcore/themes/standard_theme/Source/icons/16/102.png +0 -0
  1552. data/sproutcore/themes/standard_theme/Source/icons/16/110.png +0 -0
  1553. data/sproutcore/themes/standard_theme/Source/icons/16/120.png +0 -0
  1554. data/sproutcore/themes/standard_theme/Source/icons/16/127.png +0 -0
  1555. data/sproutcore/themes/standard_theme/Source/icons/16/18.png +0 -0
  1556. data/sproutcore/themes/standard_theme/Source/icons/16/19.png +0 -0
  1557. data/sproutcore/themes/standard_theme/Source/icons/16/2.png +0 -0
  1558. data/sproutcore/themes/standard_theme/Source/icons/16/24.png +0 -0
  1559. data/sproutcore/themes/standard_theme/Source/icons/16/26.png +0 -0
  1560. data/sproutcore/themes/standard_theme/Source/icons/16/27.png +0 -0
  1561. data/sproutcore/themes/standard_theme/Source/icons/16/28.png +0 -0
  1562. data/sproutcore/themes/standard_theme/Source/icons/16/29.png +0 -0
  1563. data/sproutcore/themes/standard_theme/Source/icons/16/30.png +0 -0
  1564. data/sproutcore/themes/standard_theme/Source/icons/16/31.png +0 -0
  1565. data/sproutcore/themes/standard_theme/Source/icons/16/33.png +0 -0
  1566. data/sproutcore/themes/standard_theme/Source/icons/16/37.png +0 -0
  1567. data/sproutcore/themes/standard_theme/Source/icons/16/41.png +0 -0
  1568. data/sproutcore/themes/standard_theme/Source/icons/16/99.png +0 -0
  1569. data/sproutcore/themes/standard_theme/Source/icons/24/10.png +0 -0
  1570. data/sproutcore/themes/standard_theme/Source/icons/24/100.png +0 -0
  1571. data/sproutcore/themes/standard_theme/Source/icons/24/102.png +0 -0
  1572. data/sproutcore/themes/standard_theme/Source/icons/24/110.png +0 -0
  1573. data/sproutcore/themes/standard_theme/Source/icons/24/120.png +0 -0
  1574. data/sproutcore/themes/standard_theme/Source/icons/24/127.png +0 -0
  1575. data/sproutcore/themes/standard_theme/Source/icons/24/18.png +0 -0
  1576. data/sproutcore/themes/standard_theme/Source/icons/24/19.png +0 -0
  1577. data/sproutcore/themes/standard_theme/Source/icons/24/2.png +0 -0
  1578. data/sproutcore/themes/standard_theme/Source/icons/24/24.png +0 -0
  1579. data/sproutcore/themes/standard_theme/Source/icons/24/26.png +0 -0
  1580. data/sproutcore/themes/standard_theme/Source/icons/24/27.png +0 -0
  1581. data/sproutcore/themes/standard_theme/Source/icons/24/28.png +0 -0
  1582. data/sproutcore/themes/standard_theme/Source/icons/24/29.png +0 -0
  1583. data/sproutcore/themes/standard_theme/Source/icons/24/30.png +0 -0
  1584. data/sproutcore/themes/standard_theme/Source/icons/24/31.png +0 -0
  1585. data/sproutcore/themes/standard_theme/Source/icons/24/33.png +0 -0
  1586. data/sproutcore/themes/standard_theme/Source/icons/24/37.png +0 -0
  1587. data/sproutcore/themes/standard_theme/Source/icons/24/41.png +0 -0
  1588. data/sproutcore/themes/standard_theme/Source/icons/24/99.png +0 -0
  1589. data/sproutcore/themes/standard_theme/Source/icons/32/10.png +0 -0
  1590. data/sproutcore/themes/standard_theme/Source/icons/32/100.png +0 -0
  1591. data/sproutcore/themes/standard_theme/Source/icons/32/102.png +0 -0
  1592. data/sproutcore/themes/standard_theme/Source/icons/32/110.png +0 -0
  1593. data/sproutcore/themes/standard_theme/Source/icons/32/120.png +0 -0
  1594. data/sproutcore/themes/standard_theme/Source/icons/32/127.png +0 -0
  1595. data/sproutcore/themes/standard_theme/Source/icons/32/18.png +0 -0
  1596. data/sproutcore/themes/standard_theme/Source/icons/32/19.png +0 -0
  1597. data/sproutcore/themes/standard_theme/Source/icons/32/2.png +0 -0
  1598. data/sproutcore/themes/standard_theme/Source/icons/32/24.png +0 -0
  1599. data/sproutcore/themes/standard_theme/Source/icons/32/26.png +0 -0
  1600. data/sproutcore/themes/standard_theme/Source/icons/32/27.png +0 -0
  1601. data/sproutcore/themes/standard_theme/Source/icons/32/28.png +0 -0
  1602. data/sproutcore/themes/standard_theme/Source/icons/32/29.png +0 -0
  1603. data/sproutcore/themes/standard_theme/Source/icons/32/30.png +0 -0
  1604. data/sproutcore/themes/standard_theme/Source/icons/32/31.png +0 -0
  1605. data/sproutcore/themes/standard_theme/Source/icons/32/33.png +0 -0
  1606. data/sproutcore/themes/standard_theme/Source/icons/32/37.png +0 -0
  1607. data/sproutcore/themes/standard_theme/Source/icons/32/41.png +0 -0
  1608. data/sproutcore/themes/standard_theme/Source/icons/32/99.png +0 -0
  1609. data/sproutcore/themes/standard_theme/Source/icons/48/10.png +0 -0
  1610. data/sproutcore/themes/standard_theme/Source/icons/48/18.png +0 -0
  1611. data/sproutcore/themes/standard_theme/Source/icons/48/19.png +0 -0
  1612. data/sproutcore/themes/standard_theme/Source/icons/48/2.png +0 -0
  1613. data/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/Data +0 -0
  1614. data/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/QuickLook/Preview.jpg +0 -0
  1615. data/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/QuickLook/Thumbnail.jpg +0 -0
  1616. data/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/Data +0 -0
  1617. data/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/QuickLook/Preview.jpg +0 -0
  1618. data/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/QuickLook/Thumbnail.jpg +0 -0
  1619. data/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x-2.psd +0 -0
  1620. data/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x.psd +0 -0
  1621. data/sproutcore/themes/standard_theme/Source/sc-theme-sprite.psd +0 -0
  1622. data/sproutcore/themes/standard_theme/Source/sc-theme-ysprite.psd +0 -0
  1623. data/sproutcore/themes/standard_theme/Source/shared-icons.psd +0 -0
  1624. data/sproutcore/themes/standard_theme/Source/sproutcore-logo.psd +0 -0
  1625. data/sproutcore/themes/standard_theme/Source/sticky-note.psd +0 -0
  1626. data/sproutcore/themes/standard_theme/english.lproj/button.css +0 -399
  1627. data/sproutcore/themes/standard_theme/english.lproj/checkbox.css +0 -78
  1628. data/sproutcore/themes/standard_theme/english.lproj/collection.css +0 -135
  1629. data/sproutcore/themes/standard_theme/english.lproj/core.css +0 -76
  1630. data/sproutcore/themes/standard_theme/english.lproj/disclosure.css +0 -57
  1631. data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_222222.png +0 -0
  1632. data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_454545.png +0 -0
  1633. data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_888888.png +0 -0
  1634. data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_ffffff.png +0 -0
  1635. data/sproutcore/themes/standard_theme/english.lproj/images/panels/sprite-x.png +0 -0
  1636. data/sproutcore/themes/standard_theme/english.lproj/images/panels/sprite-y.png +0 -0
  1637. data/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-repeat-x.png +0 -0
  1638. data/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-repeat-y.png +0 -0
  1639. data/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-sprite.png +0 -0
  1640. data/sproutcore/themes/standard_theme/english.lproj/images/sc-theme-repeat-x.png +0 -0
  1641. data/sproutcore/themes/standard_theme/english.lproj/images/sc-theme-ysprite.png +0 -0
  1642. data/sproutcore/themes/standard_theme/english.lproj/images/sc-toolbar-view.png +0 -0
  1643. data/sproutcore/themes/standard_theme/english.lproj/label.css +0 -11
  1644. data/sproutcore/themes/standard_theme/english.lproj/list_item.css +0 -82
  1645. data/sproutcore/themes/standard_theme/english.lproj/menu.css +0 -20
  1646. data/sproutcore/themes/standard_theme/english.lproj/menu_item_view.css +0 -36
  1647. data/sproutcore/themes/standard_theme/english.lproj/pane.css +0 -18
  1648. data/sproutcore/themes/standard_theme/english.lproj/panel.css +0 -33
  1649. data/sproutcore/themes/standard_theme/english.lproj/picker.css +0 -17
  1650. data/sproutcore/themes/standard_theme/english.lproj/progress.css +0 -27
  1651. data/sproutcore/themes/standard_theme/english.lproj/radio.css +0 -125
  1652. data/sproutcore/themes/standard_theme/english.lproj/scroller.css +0 -159
  1653. data/sproutcore/themes/standard_theme/english.lproj/segmented.css +0 -270
  1654. data/sproutcore/themes/standard_theme/english.lproj/slider.css +0 -94
  1655. data/sproutcore/themes/standard_theme/english.lproj/split_view.css +0 -11
  1656. data/sproutcore/themes/standard_theme/english.lproj/tab.css +0 -14
  1657. data/sproutcore/themes/standard_theme/english.lproj/table.css +0 -14
  1658. data/sproutcore/themes/standard_theme/english.lproj/text_field.css +0 -5
  1659. data/sproutcore/themes/standard_theme/english.lproj/toolbar.css +0 -7
  1660. data/sproutcore/themes/standard_theme/english.lproj/well.css +0 -36
@@ -1,110 +0,0 @@
1
- // ==========================================================================
2
- // Project: SproutCore Costello - Property Observing Library
3
- // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
- // Portions ©2008-2010 Apple Inc. All rights reserved.
5
- // License: Licensed under MIT license (see license.js)
6
- // ==========================================================================
7
-
8
-
9
- /**
10
- Standard Error that should be raised when you try to modify a frozen object.
11
-
12
- @property {Error}
13
- */
14
- SC.FROZEN_ERROR = new Error("Cannot modify a frozen object");
15
-
16
- /**
17
- @namespace
18
-
19
- The SC.Freezable mixin implements some basic methods for marking an object
20
- as frozen. Once an object is frozen it should be read only. No changes
21
- may be made the internal state of the object.
22
-
23
- h2. Enforcement
24
-
25
- To fully support freezing in your subclass, you must include this mixin and
26
- override any method that might alter any property on the object to instead
27
- raise an exception. You can check the state of an object by checking the
28
- isFrozen property.
29
-
30
- Although future versions of JavaScript may support language-level freezing
31
- object objects, that is not the case today. Even if an object is freezable,
32
- it is still technically possible to modify the object, even though it could
33
- break other parts of your application that do not expect a frozen object to
34
- change. It is, therefore, very important that you always respect the
35
- isFrozen property on all freezable objects.
36
-
37
- h2. Example
38
-
39
- The example below shows a simple object that implement the SC.Freezable
40
- protocol.
41
-
42
- {{{
43
- Contact = SC.Object.extend(SC.Freezable, {
44
-
45
- firstName: null,
46
-
47
- lastName: null,
48
-
49
- // swaps the names
50
- swapNames: function() {
51
- if (this.get('isFrozen')) throw SC.FROZEN_ERROR;
52
- var tmp = this.get('firstName');
53
- this.set('firstName', this.get('lastName'));
54
- this.set('lastName', tmp);
55
- return this;
56
- }
57
-
58
- });
59
-
60
- c = Context.create({ firstName: "John", lastName: "Doe" });
61
- c.swapNames(); => returns c
62
- c.freeze();
63
- c.swapNames(); => EXCEPTION
64
-
65
- }}}
66
-
67
- h2. Copying
68
-
69
- Usually the SC.Freezable protocol is implemented in cooperation with the
70
- SC.Copyable protocol, which defines a frozenCopy() method that will return
71
- a frozen object, if the object implements this method as well.
72
-
73
- */
74
- SC.Freezable = {
75
-
76
- /**
77
- Walk like a duck.
78
-
79
- @property {Boolean}
80
- */
81
- isFreezable: YES,
82
-
83
- /**
84
- Set to YES when the object is frozen. Use this property to detect whether
85
- your object is frozen or not.
86
-
87
- @property {Boolean}
88
- */
89
- isFrozen: NO,
90
-
91
- /**
92
- Freezes the object. Once this method has been called the object should
93
- no longer allow any properties to be edited.
94
-
95
- @returns {Object} reciever
96
- */
97
- freeze: function() {
98
- // NOTE: Once someone actually implements Object.freeze() in the browser,
99
- // add a call to that here also.
100
-
101
- if (this.set) this.set('isFrozen', YES);
102
- else this.isFrozen = YES;
103
- return this;
104
- }
105
-
106
- };
107
-
108
-
109
- // Add to Array
110
- SC.mixin(Array.prototype, SC.Freezable);
@@ -1,1408 +0,0 @@
1
- // ==========================================================================
2
- // Project: SproutCore Costello - Property Observing Library
3
- // Copyright: ©2006-2011 Strobe Inc. and contributors.
4
- // Portions ©2008-2010 Apple Inc. All rights reserved.
5
- // License: Licensed under MIT license (see license.js)
6
- // ==========================================================================
7
-
8
- sc_require('private/observer_set');
9
- sc_require('private/chain_observer');
10
-
11
- /*globals logChange */
12
-
13
- /**
14
- Set to YES to have all observing activity logged to the SC.Logger. This
15
- should be used for debugging only.
16
-
17
- @property {Boolean}
18
- */
19
- SC.LOG_OBSERVERS = NO ;
20
-
21
- /**
22
- @namespace
23
-
24
- Key-Value-Observing (KVO) simply allows one object to observe changes to a
25
- property on another object. It is one of the fundamental ways that models,
26
- controllers and views communicate with each other in a SproutCore
27
- application. Any object that has this module applied to it can be used in
28
- KVO-operations.
29
-
30
- This module is applied automatically to all objects that inherit from
31
- SC.Object, which includes most objects bundled with the SproutCore
32
- framework. You will not generally apply this module to classes yourself,
33
- but you will use the features provided by this module frequently, so it is
34
- important to understand how to use it.
35
-
36
- h2. Enabling Key Value Observing
37
-
38
- With KVO, you can write functions that will be called automatically whenever
39
- a property on a particular object changes. You can use this feature to
40
- reduce the amount of "glue code" that you often write to tie the various
41
- parts of your application together.
42
-
43
- To use KVO, just use the KVO-aware methods get() and set() to access
44
- properties instead of accessing properties directly. Instead of writing:
45
-
46
- {{{
47
- var aName = contact.firstName ;
48
- contact.firstName = 'Charles' ;
49
- }}}
50
-
51
- use:
52
-
53
- {{{
54
- var aName = contact.get('firstName') ;
55
- contact.set('firstName', 'Charles') ;
56
- }}}
57
-
58
- get() and set() work just like the normal "dot operators" provided by
59
- JavaScript but they provide you with much more power, including not only
60
- observing but computed properties as well.
61
-
62
- h2. Observing Property Changes
63
-
64
- You typically observe property changes simply by adding the observes()
65
- call to the end of your method declarations in classes that you write. For
66
- example:
67
-
68
- {{{
69
- SC.Object.create({
70
- valueObserver: function() {
71
- // Executes whenever the "Value" property changes
72
- }.observes('value')
73
- }) ;
74
- }}}
75
-
76
- Although this is the most common way to add an observer, this capability is
77
- actually built into the SC.Object class on top of two methods defined in
78
- this mixin called addObserver() and removeObserver(). You can use these two
79
- methods to add and remove observers yourself if you need to do so at run
80
- time.
81
-
82
- To add an observer for a property, just call:
83
-
84
- {{{
85
- object.addObserver('propertyKey', targetObject, targetAction) ;
86
- }}}
87
-
88
- This will call the 'targetAction' method on the targetObject to be called
89
- whenever the value of the propertyKey changes.
90
-
91
- h2. Observer Parameters
92
-
93
- An observer function typically does not need to accept any parameters,
94
- however you can accept certain arguments when writing generic observers.
95
- An observer function can have the following arguments:
96
-
97
- {{{
98
- propertyObserver(target, key, value, revision) ;
99
- }}}
100
-
101
- - *target* - This is the object whose value changed. Usually this.
102
- - *key* - The key of the value that changed
103
- - *value* - this property is no longer used. It will always be null
104
- - *revision* - this is the revision of the target object
105
-
106
- h2. Implementing Manual Change Notifications
107
-
108
- Sometimes you may want to control the rate at which notifications for
109
- a property are delivered, for example by checking first to make sure
110
- that the value has changed.
111
-
112
- To do this, you need to implement a computed property for the property
113
- you want to change and override automaticallyNotifiesObserversFor().
114
-
115
- The example below will only notify if the "balance" property value actually
116
- changes:
117
-
118
- {{{
119
-
120
- automaticallyNotifiesObserversFor: function(key) {
121
- return (key === 'balance') ? NO : sc_super() ;
122
- },
123
-
124
- balance: function(key, value) {
125
- var balance = this._balance ;
126
- if ((value !== undefined) && (balance !== value)) {
127
- this.propertyWillChange(key) ;
128
- balance = this._balance = value ;
129
- this.propertyDidChange(key) ;
130
- }
131
- return balance ;
132
- }
133
-
134
- }}}
135
-
136
- h1. Implementation Details
137
-
138
- Internally, SproutCore keeps track of observable information by adding a
139
- number of properties to the object adopting the observable. All of these
140
- properties begin with "_kvo_" to separate them from the rest of your object.
141
-
142
- @static
143
- @since SproutCore 1.0
144
- */
145
- SC.Observable = {
146
-
147
- /**
148
- Walk like that ol' duck
149
-
150
- @property {Boolean}
151
- */
152
- isObservable: YES,
153
-
154
- /**
155
- Determines whether observers should be automatically notified of changes
156
- to a key.
157
-
158
- If you are manually implementing change notifications for a property, you
159
- can override this method to return NO for properties you do not want the
160
- observing system to automatically notify for.
161
-
162
- The default implementation always returns YES.
163
-
164
- @param key {String} the key that is changing
165
- @returns {Boolean} YES if automatic notification should occur.
166
- */
167
- automaticallyNotifiesObserversFor: function(key) {
168
- return YES;
169
- },
170
-
171
- // ..........................................
172
- // PROPERTIES
173
- //
174
- // Use these methods to get/set properties. This will handle observing
175
- // notifications as well as allowing you to define functions that can be
176
- // used as properties.
177
-
178
- /**
179
- Retrieves the value of key from the object.
180
-
181
- This method is generally very similar to using object[key] or object.key,
182
- however it supports both computed properties and the unknownProperty
183
- handler.
184
-
185
- *Computed Properties*
186
-
187
- Computed properties are methods defined with the property() modifier
188
- declared at the end, such as:
189
-
190
- {{{
191
- fullName: function() {
192
- return this.getEach('firstName', 'lastName').compact().join(' ');
193
- }.property('firstName', 'lastName')
194
- }}}
195
-
196
- When you call get() on a computed property, the property function will be
197
- called and the return value will be returned instead of the function
198
- itself.
199
-
200
- *Unknown Properties*
201
-
202
- Likewise, if you try to call get() on a property whose values is
203
- undefined, the unknownProperty() method will be called on the object.
204
- If this method reutrns any value other than undefined, it will be returned
205
- instead. This allows you to implement "virtual" properties that are
206
- not defined upfront.
207
-
208
- @param key {String} the property to retrieve
209
- @returns {Object} the property value or undefined.
210
-
211
- */
212
- get: function(key) {
213
- var ret = this[key], cache ;
214
- if (ret === undefined) {
215
- return this.unknownProperty(key) ;
216
- } else if (ret && ret.isProperty) {
217
- if (ret.isCacheable) {
218
- cache = this._kvo_cache ;
219
- if (!cache) cache = this._kvo_cache = {};
220
- return (cache[ret.cacheKey] !== undefined) ? cache[ret.cacheKey] : (cache[ret.cacheKey] = ret.call(this,key)) ;
221
- } else return ret.call(this,key);
222
- } else return ret ;
223
- },
224
-
225
- /**
226
- Sets the key equal to value.
227
-
228
- This method is generally very similar to calling object[key] = value or
229
- object.key = value, except that it provides support for computed
230
- properties, the unknownProperty() method and property observers.
231
-
232
- *Computed Properties*
233
-
234
- If you try to set a value on a key that has a computed property handler
235
- defined (see the get() method for an example), then set() will call
236
- that method, passing both the value and key instead of simply changing
237
- the value itself. This is useful for those times when you need to
238
- implement a property that is composed of one or more member
239
- properties.
240
-
241
- *Unknown Properties*
242
-
243
- If you try to set a value on a key that is undefined in the target
244
- object, then the unknownProperty() handler will be called instead. This
245
- gives you an opportunity to implement complex "virtual" properties that
246
- are not predefined on the obejct. If unknownProperty() returns
247
- undefined, then set() will simply set the value on the object.
248
-
249
- *Property Observers*
250
-
251
- In addition to changing the property, set() will also register a
252
- property change with the object. Unless you have placed this call
253
- inside of a beginPropertyChanges() and endPropertyChanges(), any "local"
254
- observers (i.e. observer methods declared on the same object), will be
255
- called immediately. Any "remote" observers (i.e. observer methods
256
- declared on another object) will be placed in a queue and called at a
257
- later time in a coelesced manner.
258
-
259
- *Chaining*
260
-
261
- In addition to property changes, set() returns the value of the object
262
- itself so you can do chaining like this:
263
-
264
- {{{
265
- record.set('firstName', 'Charles').set('lastName', 'Jolley');
266
- }}}
267
-
268
- @param key {String|Hash} the property to set
269
- @param value {Object} the value to set or null.
270
- @returns {SC.Observable}
271
- */
272
- set: function(key, value) {
273
- var func = this[key],
274
- notify = this.automaticallyNotifiesObserversFor(key),
275
- ret = value,
276
- cachedep, cache, idx, dfunc ;
277
-
278
- if(value === undefined && SC.typeOf(key) === SC.T_HASH) {
279
- var hash = key;
280
-
281
- for(key in hash) {
282
- if (!hash.hasOwnProperty(key)) continue;
283
- this.set(key, hash[key]);
284
- }
285
-
286
- return this;
287
- }
288
-
289
- // if there are any dependent keys and they use caching, then clear the
290
- // cache. (If we're notifying, then propertyDidChange will do this for
291
- // us.)
292
- if (!notify && this._kvo_cacheable && (cache = this._kvo_cache)) {
293
- // lookup the cached dependents for this key. if undefined, compute.
294
- // note that if cachdep is set to null is means we figure out it has no
295
- // cached dependencies already. this is different from undefined.
296
- cachedep = this._kvo_cachedep;
297
- if (!cachedep || (cachedep = cachedep[key])===undefined) {
298
- cachedep = this._kvo_computeCachedDependentsFor(key);
299
- }
300
-
301
- if (cachedep) {
302
- idx = cachedep.length;
303
- while(--idx>=0) {
304
- dfunc = cachedep[idx];
305
- cache[dfunc.cacheKey] = cache[dfunc.lastSetValueKey] = undefined;
306
- }
307
- }
308
- }
309
-
310
- // set the value.
311
- if (func && func.isProperty) {
312
- cache = this._kvo_cache;
313
- if (func.isVolatile || !cache || (cache[func.lastSetValueKey] !== value)) {
314
- if (!cache) cache = this._kvo_cache = {};
315
-
316
- cache[func.lastSetValueKey] = value ;
317
- if (notify) this.propertyWillChange(key) ;
318
- ret = func.call(this,key,value) ;
319
-
320
- // update cached value
321
- if (func.isCacheable) cache[func.cacheKey] = ret ;
322
- if (notify) this.propertyDidChange(key, ret, YES) ;
323
- }
324
-
325
- } else if (func === undefined) {
326
- if (notify) this.propertyWillChange(key) ;
327
- this.unknownProperty(key,value) ;
328
- if (notify) this.propertyDidChange(key, ret) ;
329
-
330
- } else {
331
- if (this[key] !== value) {
332
- if (notify) this.propertyWillChange(key) ;
333
- ret = this[key] = value ;
334
- if (notify) this.propertyDidChange(key, ret) ;
335
- }
336
- }
337
-
338
- return this ;
339
- },
340
-
341
- /**
342
- Called whenever you try to get or set an undefined property.
343
-
344
- This is a generic property handler. If you define it, it will be called
345
- when the named property is not yet set in the object. The default does
346
- nothing.
347
-
348
- @param key {String} the key that was requested
349
- @param value {Object} The value if called as a setter, undefined if called as a getter.
350
- @returns {Object} The new value for key.
351
- */
352
- unknownProperty: function(key,value) {
353
- if (!(value === undefined)) { this[key] = value; }
354
- return value ;
355
- },
356
-
357
- /**
358
- Begins a grouping of property changes.
359
-
360
- You can use this method to group property changes so that notifications
361
- will not be sent until the changes are finished. If you plan to make a
362
- large number of changes to an object at one time, you should call this
363
- method at the beginning of the changes to suspend change notifications.
364
- When you are done making changes, all endPropertyChanges() to allow
365
- notification to resume.
366
-
367
- @returns {SC.Observable}
368
- */
369
- beginPropertyChanges: function() {
370
- this._kvo_changeLevel = (this._kvo_changeLevel || 0) + 1;
371
- return this;
372
- },
373
-
374
- /**
375
- Ends a grouping of property changes.
376
-
377
- You can use this method to group property changes so that notifications
378
- will not be sent until the changes are finished. If you plan to make a
379
- large number of changes to an object at one time, you should call
380
- beginPropertyChanges() at the beginning of the changes to suspend change
381
- notifications. When you are done making changes, call this method to allow
382
- notification to resume.
383
-
384
- @returns {SC.Observable}
385
- */
386
- endPropertyChanges: function() {
387
- this._kvo_changeLevel = (this._kvo_changeLevel || 1) - 1 ;
388
- var level = this._kvo_changeLevel, changes = this._kvo_changes;
389
- if ((level<=0) && changes && (changes.length>0) && !SC.Observers.isObservingSuspended) {
390
- this._notifyPropertyObservers() ;
391
- }
392
- return this ;
393
- },
394
-
395
- /**
396
- Notify the observer system that a property is about to change.
397
-
398
- Sometimes you need to change a value directly or indirectly without
399
- actually calling get() or set() on it. In this case, you can use this
400
- method and propertyDidChange() instead. Calling these two methods
401
- together will notify all observers that the property has potentially
402
- changed value.
403
-
404
- Note that you must always call propertyWillChange and propertyDidChange as
405
- a pair. If you do not, it may get the property change groups out of order
406
- and cause notifications to be delivered more often than you would like.
407
-
408
- @param key {String} The property key that is about to change.
409
- @returns {SC.Observable}
410
- */
411
- propertyWillChange: function(key) {
412
- return this ;
413
- },
414
-
415
- /**
416
- Notify the observer system that a property has just changed.
417
-
418
- Sometimes you need to change a value directly or indirectly without
419
- actually calling get() or set() on it. In this case, you can use this
420
- method and propertyWillChange() instead. Calling these two methods
421
- together will notify all observers that the property has potentially
422
- changed value.
423
-
424
- Note that you must always call propertyWillChange and propertyDidChange as
425
- a pair. If you do not, it may get the property change groups out of order
426
- and cause notifications to be delivered more often than you would like.
427
-
428
- @param key {String} The property key that has just changed.
429
- @param value {Object} The new value of the key. May be null.
430
- @returns {SC.Observable}
431
- */
432
- propertyDidChange: function(key,value, _keepCache) {
433
- this._kvo_revision = (this._kvo_revision || 0) + 1;
434
- var level = this._kvo_changeLevel || 0,
435
- cachedep, idx, dfunc, cache, func,
436
- log = SC.LOG_OBSERVERS && !(this.LOG_OBSERVING===NO);
437
-
438
- if (cache = this._kvo_cache) {
439
-
440
- // clear any cached value
441
- if (!_keepCache) {
442
- func = this[key] ;
443
- if (func && func.isProperty) {
444
- cache[func.cacheKey] = cache[func.lastSetValueKey] = undefined ;
445
- }
446
- }
447
-
448
- if (this._kvo_cacheable) {
449
- // if there are any dependent keys and they use caching, then clear the
450
- // cache. This is the same code as is in set. It is inlined for perf.
451
- cachedep = this._kvo_cachedep;
452
- if (!cachedep || (cachedep = cachedep[key])===undefined) {
453
- cachedep = this._kvo_computeCachedDependentsFor(key);
454
- }
455
-
456
- if (cachedep) {
457
- idx = cachedep.length;
458
- while(--idx>=0) {
459
- dfunc = cachedep[idx];
460
- cache[dfunc.cacheKey] = cache[dfunc.lastSetValueKey] = undefined;
461
- }
462
- }
463
- }
464
- }
465
-
466
- // save in the change set if queuing changes
467
- var suspended = SC.Observers.isObservingSuspended;
468
- if ((level > 0) || suspended) {
469
- var changes = this._kvo_changes ;
470
- if (!changes) changes = this._kvo_changes = SC.CoreSet.create() ;
471
- changes.add(key) ;
472
-
473
- if (suspended) {
474
- if (log) SC.Logger.log("%@%@: will not notify observers because observing is suspended".fmt(SC.KVO_SPACES,this));
475
- SC.Observers.objectHasPendingChanges(this) ;
476
- }
477
-
478
- // otherwise notify property observers immediately
479
- } else this._notifyPropertyObservers(key) ;
480
-
481
- return this ;
482
- },
483
-
484
- // ..........................................
485
- // DEPENDENT KEYS
486
- //
487
-
488
- /**
489
- Use this to indicate that one key changes if other keys it depends on
490
- change. Pass the key that is dependent and additional keys it depends
491
- upon. You can either pass the additional keys inline as arguments or
492
- in a single array.
493
-
494
- You generally do not call this method, but instead pass dependent keys to
495
- your property() method when you declare a computed property.
496
-
497
- You can call this method during your init to register the keys that should
498
- trigger a change notification for your computed properties.
499
-
500
- @param {String} key the dependent key
501
- @param {Array|String} dependentKeys one or more dependent keys
502
- @returns {Object} this
503
- */
504
- registerDependentKey: function(key, dependentKeys) {
505
- var dependents = this._kvo_dependents,
506
- func = this[key],
507
- keys, idx, lim, dep, queue;
508
-
509
- // normalize input.
510
- if (typeof dependentKeys === "object" && (dependentKeys instanceof Array)) {
511
- keys = dependentKeys;
512
- lim = 0;
513
- } else {
514
- keys = arguments;
515
- lim = 1;
516
- }
517
- idx = keys.length;
518
-
519
- // define dependents if not defined already.
520
- if (!dependents) this._kvo_dependents = dependents = {} ;
521
-
522
- // for each key, build array of dependents, add this key...
523
- // note that we ignore the first argument since it is the key...
524
- while(--idx >= lim) {
525
- dep = keys[idx] ;
526
-
527
- if (dep.indexOf('.') >= 0) {
528
- this.addObserver(dep, this, function() {
529
- this.propertyDidChange(key);
530
- });
531
- } else {
532
- // add dependent key to dependents array of key it depends on
533
- queue = dependents[dep] ;
534
- if (!queue) { queue = dependents[dep] = [] ; }
535
- queue.push(key) ;
536
- }
537
- }
538
- },
539
-
540
- /** @private
541
-
542
- Helper method used by computeCachedDependents. Just loops over the
543
- array of dependent keys. If the passed function is cacheable, it will
544
- be added to the queue. Also, recursively call on each keys dependent
545
- keys.
546
-
547
- @param {Array} queue the queue to add functions to
548
- @param {Array} keys the array of dependent keys for this key
549
- @param {Hash} dependents the _kvo_dependents cache
550
- @param {SC.Set} seen already seen keys
551
- @returns {void}
552
- */
553
- _kvo_addCachedDependents: function(queue, keys, dependents, seen) {
554
- var idx = keys.length,
555
- func, key, deps ;
556
-
557
- while(--idx >= 0) {
558
- key = keys[idx];
559
- seen.add(key);
560
-
561
- // if the value for this key is a computed property, then add it to the
562
- // set if it is cacheable, and process any of its dependent keys also.
563
- func = this[key];
564
- if (func && (func instanceof Function) && func.isProperty) {
565
- if (func.isCacheable) queue.push(func); // handle this func
566
- if ((deps = dependents[key]) && deps.length>0) { // and any dependents
567
- this._kvo_addCachedDependents(queue, deps, dependents, seen);
568
- }
569
- }
570
- }
571
-
572
- },
573
-
574
- /** @private
575
-
576
- Called by set() whenever it needs to determine which cached dependent
577
- keys to clear. Recursively searches dependent keys to determine all
578
- cached property direcly or indirectly affected.
579
-
580
- The return value is also saved for future reference
581
-
582
- @param {String} key the key to compute
583
- @returns {Array}
584
- */
585
- _kvo_computeCachedDependentsFor: function(key) {
586
- var cached = this._kvo_cachedep,
587
- dependents = this._kvo_dependents,
588
- keys = dependents ? dependents[key] : null,
589
- queue, seen ;
590
- if (!cached) cached = this._kvo_cachedep = {};
591
-
592
- // if there are no dependent keys, then just set and return null to avoid
593
- // this mess again.
594
- if (!keys || keys.length===0) return cached[key] = null;
595
-
596
- // there are dependent keys, so we need to do the work to find out if
597
- // any of them or their dependent keys are cached.
598
- queue = cached[key] = [];
599
- seen = SC._TMP_SEEN_SET = (SC._TMP_SEEN_SET || SC.CoreSet.create());
600
- seen.add(key);
601
- this._kvo_addCachedDependents(queue, keys, dependents, seen);
602
- seen.clear(); // reset
603
-
604
- if (queue.length === 0) queue = cached[key] = null ; // turns out nothing
605
- return queue ;
606
- },
607
-
608
- // ..........................................
609
- // OBSERVERS
610
- //
611
-
612
- _kvo_for: function(kvoKey, type) {
613
- var ret = this[kvoKey] ;
614
-
615
- if (!this._kvo_cloned) this._kvo_cloned = {} ;
616
-
617
- // if the item does not exist, create it. Unless type is passed,
618
- // assume array.
619
- if (!ret) {
620
- ret = this[kvoKey] = (type === undefined) ? [] : type.create();
621
- this._kvo_cloned[kvoKey] = YES ;
622
-
623
- // if item does exist but has not been cloned, then clone it. Note
624
- // that all types must implement copy().0
625
- } else if (!this._kvo_cloned[kvoKey]) {
626
- ret = this[kvoKey] = ret.copy();
627
- this._kvo_cloned[kvoKey] = YES;
628
- }
629
-
630
- return ret ;
631
- },
632
-
633
- /**
634
- Adds an observer on a property.
635
-
636
- This is the core method used to register an observer for a property.
637
-
638
- Once you call this method, anytime the key's value is set, your observer
639
- will be notified. Note that the observers are triggered anytime the
640
- value is set, regardless of whether it has actually changed. Your
641
- observer should be prepared to handle that.
642
-
643
- You can also pass an optional context parameter to this method. The
644
- context will be passed to your observer method whenever it is triggered.
645
- Note that if you add the same target/method pair on a key multiple times
646
- with different context parameters, your observer will only be called once
647
- with the last context you passed.
648
-
649
- h2. Observer Methods
650
-
651
- Observer methods you pass should generally have the following signature if
652
- you do not pass a "context" parameter:
653
-
654
- {{{
655
- fooDidChange: function(sender, key, value, rev);
656
- }}}
657
-
658
- The sender is the object that changed. The key is the property that
659
- changes. The value property is currently reserved and unused. The rev
660
- is the last property revision of the object when it changed, which you can
661
- use to detect if the key value has really changed or not.
662
-
663
- If you pass a "context" parameter, the context will be passed before the
664
- revision like so:
665
-
666
- {{{
667
- fooDidChange: function(sender, key, value, context, rev);
668
- }}}
669
-
670
- Usually you will not need the value, context or revision parameters at
671
- the end. In this case, it is common to write observer methods that take
672
- only a sender and key value as parameters or, if you aren't interested in
673
- any of these values, to write an observer that has no parameters at all.
674
-
675
- @param key {String} the key to observer
676
- @param target {Object} the target object to invoke
677
- @param method {String|Function} the method to invoke.
678
- @param context {Object} optional context
679
- @returns {SC.Object} self
680
- */
681
- addObserver: function(key, target, method, context) {
682
- var kvoKey, chain, chains, observers;
683
-
684
- // normalize. if a function is passed to target, make it the method.
685
- if (method === undefined) {
686
- method = target; target = this ;
687
- }
688
- if (!target) target = this ;
689
-
690
- if (typeof method === "string") method = target[method] ;
691
- if (!method) throw "You must pass a method to addObserver()" ;
692
-
693
- // Normalize key...
694
- key = key.toString() ;
695
- if (key.indexOf('.') >= 0) {
696
-
697
- // create the chain and save it for later so we can tear it down if
698
- // needed.
699
- chain = SC._ChainObserver.createChain(this, key, target, method, context);
700
- chain.masterTarget = target;
701
- chain.masterMethod = method ;
702
-
703
- // Save in set for chain observers.
704
- this._kvo_for(SC.keyFor('_kvo_chains', key)).push(chain);
705
-
706
- // Create observers if needed...
707
- } else {
708
-
709
- // Special case to support reduced properties. If the property
710
- // key begins with '@' and its value is unknown, then try to get its
711
- // value. This will configure the dependent keys if needed.
712
- if ((this[key] === undefined) && (key.indexOf('@') === 0)) {
713
- this.get(key) ;
714
- }
715
-
716
- if (target === this) target = null ; // use null for observers only.
717
- kvoKey = SC.keyFor('_kvo_observers', key);
718
- this._kvo_for(kvoKey, SC.ObserverSet).add(target, method, context);
719
- this._kvo_for('_kvo_observed_keys', SC.CoreSet).add(key) ;
720
- }
721
-
722
- if (this.didAddObserver) this.didAddObserver(key, target, method);
723
- return this;
724
- },
725
-
726
- /**
727
- Remove an observer you have previously registered on this object. Pass
728
- the same key, target, and method you passed to addObserver() and your
729
- target will no longer receive notifications.
730
-
731
- @returns {SC.Observable} reciever
732
- */
733
- removeObserver: function(key, target, method) {
734
-
735
- var kvoKey, chains, chain, observers, idx ;
736
-
737
- // normalize. if a function is passed to target, make it the method.
738
- if (method === undefined) {
739
- method = target; target = this ;
740
- }
741
- if (!target) target = this ;
742
-
743
- if (typeof method === "string") method = target[method] ;
744
- if (!method) throw "You must pass a method to removeObserver()" ;
745
-
746
- // if the key contains a '.', this is a chained observer.
747
- key = key.toString() ;
748
- if (key.indexOf('.') >= 0) {
749
-
750
- // try to find matching chains
751
- kvoKey = SC.keyFor('_kvo_chains', key);
752
- if (chains = this[kvoKey]) {
753
-
754
- // if chains have not been cloned yet, do so now.
755
- chains = this._kvo_for(kvoKey) ;
756
-
757
- // remove any chains
758
- idx = chains.length;
759
- while(--idx >= 0) {
760
- chain = chains[idx];
761
- if (chain && (chain.masterTarget===target) && (chain.masterMethod===method)) {
762
- chains[idx] = chain.destroyChain() ;
763
- }
764
- }
765
- }
766
-
767
- // otherwise, just like a normal observer.
768
- } else {
769
- if (target === this) target = null ; // use null for observers only.
770
- kvoKey = SC.keyFor('_kvo_observers', key) ;
771
- if (observers = this[kvoKey]) {
772
- // if observers have not been cloned yet, do so now
773
- observers = this._kvo_for(kvoKey) ;
774
- observers.remove(target, method) ;
775
- if (observers.getMembers().length === 0) {
776
- this._kvo_for('_kvo_observed_keys', SC.CoreSet).remove(key);
777
- }
778
- }
779
- }
780
-
781
- if (this.didRemoveObserver) this.didRemoveObserver(key, target, method);
782
- return this;
783
- },
784
-
785
- /**
786
- Returns YES if the object currently has observers registered for a
787
- particular key. You can use this method to potentially defer performing
788
- an expensive action until someone begins observing a particular property
789
- on the object.
790
-
791
- @param {String} key key to check
792
- @returns {Boolean}
793
- */
794
- hasObserverFor: function(key) {
795
- SC.Observers.flush(this) ; // hookup as many observers as possible.
796
-
797
- var observers = this[SC.keyFor('_kvo_observers', key)],
798
- locals = this[SC.keyFor('_kvo_local', key)],
799
- members ;
800
-
801
- if (locals && locals.length>0) return YES ;
802
- if (observers && observers.getMembers().length > 0) return YES ;
803
- return NO ;
804
- },
805
-
806
- /**
807
- This method will register any observers and computed properties saved on
808
- the object. Normally you do not need to call this method youself. It
809
- is invoked automatically just before property notifications are sent and
810
- from the init() method of SC.Object. You may choose to call this
811
- from your own initialization method if you are using SC.Observable in
812
- a non-SC.Object-based object.
813
-
814
- This method looks for several private variables, which you can setup,
815
- to initialize:
816
-
817
- - _observers: this should contain an array of key names for observers
818
- you need to configure.
819
-
820
- - _bindings: this should contain an array of key names that configure
821
- bindings.
822
-
823
- - _properties: this should contain an array of key names for computed
824
- properties.
825
-
826
- @returns {Object} this
827
- */
828
- initObservable: function() {
829
- if (this._observableInited) return ;
830
- this._observableInited = YES ;
831
-
832
- var loc, keys, key, value, observer, propertyPaths, propertyPathsLength,
833
- len, ploc, path, dotIndex, root, propertyKey, keysLen;
834
-
835
- // Loop through observer functions and register them
836
- if (keys = this._observers) {
837
- len = keys.length ;
838
- for(loc=0;loc<len;loc++) {
839
- key = keys[loc]; observer = this[key] ;
840
- propertyPaths = observer.propertyPaths ;
841
- propertyPathsLength = (propertyPaths) ? propertyPaths.length : 0 ;
842
- for(ploc=0;ploc<propertyPathsLength;ploc++) {
843
- path = propertyPaths[ploc] ;
844
- dotIndex = path.indexOf('.') ;
845
- // handle most common case, observing a local property
846
- if (dotIndex < 0) {
847
- this.addObserver(path, this, observer) ;
848
-
849
- // next most common case, use a chained observer
850
- } else if (path.indexOf('*') === 0) {
851
- this.addObserver(path.slice(1), this, observer) ;
852
-
853
- // otherwise register the observer in the observers queue. This
854
- // will add the observer now or later when the named path becomes
855
- // available.
856
- } else {
857
- root = null ;
858
-
859
- // handle special cases for observers that look to the local root
860
- if (dotIndex === 0) {
861
- root = this; path = path.slice(1) ;
862
- } else if (dotIndex===4 && path.slice(0,5) === 'this.') {
863
- root = this; path = path.slice(5) ;
864
- } else if (dotIndex<0 && path.length===4 && path === 'this') {
865
- root = this; path = '';
866
- }
867
-
868
- SC.Observers.addObserver(path, this, observer, root);
869
- }
870
- }
871
- }
872
- }
873
-
874
- // Add Bindings
875
- this.bindings = []; // will be filled in by the bind() method.
876
- if (keys = this._bindings) {
877
- for(loc=0, keysLen = keys.length; loc < keysLen;loc++) {
878
- // get propertyKey
879
- key = keys[loc] ; value = this[key] ;
880
- propertyKey = key.slice(0,-7) ; // contentBinding => content
881
- this[key] = this.bind(propertyKey, value) ;
882
- }
883
- }
884
-
885
- // Add Properties
886
- if (keys = this._properties) {
887
- for(loc=0, keysLen = keys.length; loc<keysLen;loc++) {
888
- key = keys[loc];
889
- if (value = this[key]) {
890
-
891
- // activate cacheable only if needed for perf reasons
892
- if (value.isCacheable) this._kvo_cacheable = YES;
893
-
894
- // register dependent keys
895
- if (value.dependentKeys && (value.dependentKeys.length>0)) {
896
- this.registerDependentKey(key, value.dependentKeys) ;
897
- }
898
- }
899
- }
900
- }
901
-
902
- },
903
-
904
- // ..........................................
905
- // NOTIFICATION
906
- //
907
-
908
- /**
909
- Returns an array with all of the observers registered for the specified
910
- key. This is intended for debugging purposes only. You generally do not
911
- want to rely on this method for production code.
912
-
913
- @params key {String} the key to evaluate
914
- @returns {Array} array of Observer objects, describing the observer.
915
- */
916
- observersForKey: function(key) {
917
- var observers = this._kvo_for('_kvo_observers', key) ;
918
- return observers.getMembers() ;
919
- },
920
-
921
- // this private method actually notifies the observers for any keys in the
922
- // observer queue. If you pass a key it will be added to the queue.
923
- _notifyPropertyObservers: function(key) {
924
- if (!this._observableInited) this.initObservable() ;
925
-
926
- SC.Observers.flush(this) ; // hookup as many observers as possible.
927
-
928
- var log = SC.LOG_OBSERVERS && !(this.LOG_OBSERVING===NO),
929
- observers, changes, dependents, starObservers, idx, keys, rev,
930
- members, membersLength, member, memberLoc, target, method, loc, func,
931
- context, spaces, cache ;
932
-
933
- if (log) {
934
- spaces = SC.KVO_SPACES = (SC.KVO_SPACES || '') + ' ';
935
- SC.Logger.log('%@%@: notifying observers after change to key "%@"'.fmt(spaces, this, key));
936
- }
937
-
938
- // Get any starObservers -- they will be notified of all changes.
939
- starObservers = this['_kvo_observers_*'] ;
940
-
941
- // prevent notifications from being sent until complete
942
- this._kvo_changeLevel = (this._kvo_changeLevel || 0) + 1;
943
-
944
- // keep sending notifications as long as there are changes
945
- while(((changes = this._kvo_changes) && (changes.length > 0)) || key) {
946
-
947
- // increment revision
948
- rev = ++this.propertyRevision ;
949
-
950
- // save the current set of changes and swap out the kvo_changes so that
951
- // any set() calls by observers will be saved in a new set.
952
- if (!changes) changes = SC.CoreSet.create() ;
953
- this._kvo_changes = null ;
954
-
955
- // Add the passed key to the changes set. If a '*' was passed, then
956
- // add all keys in the observers to the set...
957
- // once finished, clear the key so the loop will end.
958
- if (key === '*') {
959
- changes.add('*') ;
960
- changes.addEach(this._kvo_for('_kvo_observed_keys', SC.CoreSet));
961
-
962
- } else if (key) changes.add(key) ;
963
-
964
- // Now go through the set and add all dependent keys...
965
- if (dependents = this._kvo_dependents) {
966
-
967
- // NOTE: each time we loop, we check the changes length, this
968
- // way any dependent keys added to the set will also be evaluated...
969
- for(idx=0;idx<changes.length;idx++) {
970
- key = changes[idx] ;
971
- keys = dependents[key] ;
972
-
973
- // for each dependent key, add to set of changes. Also, if key
974
- // value is a cacheable property, clear the cached value...
975
- if (keys && (loc = keys.length)) {
976
- if (log) {
977
- SC.Logger.log("%@...including dependent keys for %@: %@".fmt(spaces, key, keys));
978
- }
979
- cache = this._kvo_cache;
980
- if (!cache) cache = this._kvo_cache = {};
981
- while(--loc >= 0) {
982
- changes.add(key = keys[loc]);
983
- if (func = this[key]) {
984
- this[func.cacheKey] = undefined;
985
- cache[func.cacheKey] = cache[func.lastSetValueKey] = undefined;
986
- } // if (func=)
987
- } // while (--loc)
988
- } // if (keys &&
989
- } // for(idx...
990
- } // if (dependents...)
991
-
992
- // now iterate through all changed keys and notify observers.
993
- while(changes.length > 0) {
994
- key = changes.pop() ; // the changed key
995
-
996
- // find any observers and notify them...
997
- observers = this[SC.keyFor('_kvo_observers', key)];
998
-
999
- if (observers) {
1000
- // We need to clone the 'members' structure here in case any of the
1001
- // observers we're about to notify happen to remove observers for
1002
- // this key, which would mutate the structure underneath us.
1003
- // (Cloning it rather than mutating gives us a clear policy: if you
1004
- // were registered as an observer at the time notification begins,
1005
- // you will be notified, regardless of whether you're removed as an
1006
- // observer during that round of notification. Similarly, if you're
1007
- // added as an observer during the notification round by another
1008
- // observer, you will not be notified until the next time.)
1009
- members = SC.clone(observers.getMembers()) ;
1010
- membersLength = members.length ;
1011
- for(memberLoc=0;memberLoc < membersLength; memberLoc++) {
1012
- member = members[memberLoc] ;
1013
-
1014
- if (member[3] === rev) continue ; // skip notified items.
1015
-
1016
- if(!member[1]) SC.Logger.log(member);
1017
-
1018
- target = member[0] || this;
1019
- method = member[1] ;
1020
- context = member[2];
1021
- member[3] = rev;
1022
-
1023
- if (log) SC.Logger.log('%@...firing observer on %@ for key "%@"'.fmt(spaces, target, key));
1024
- if (context !== undefined) {
1025
- method.call(target, this, key, null, context, rev);
1026
- } else {
1027
- method.call(target, this, key, null, rev) ;
1028
- }
1029
- }
1030
- }
1031
-
1032
- // look for local observers. Local observers are added by SC.Object
1033
- // as an optimization to avoid having to add observers for every
1034
- // instance when you are just observing your local object.
1035
- members = this[SC.keyFor('_kvo_local', key)];
1036
- if (members) {
1037
- // Note: Since, unlike above, we don't expect local observers to be
1038
- // removed in general, we will not clone 'members'.
1039
- membersLength = members.length ;
1040
- for(memberLoc=0;memberLoc<membersLength;memberLoc++) {
1041
- member = members[memberLoc];
1042
- method = this[member] ; // try to find observer function
1043
- if (method) {
1044
- if (log) SC.Logger.log('%@...firing local observer %@.%@ for key "%@"'.fmt(spaces, this, member, key));
1045
- method.call(this, this, key, null, rev);
1046
- }
1047
- }
1048
- }
1049
-
1050
- // if there are starObservers, do the same thing for them
1051
- if (starObservers && key !== '*') {
1052
- // We clone the structure per the justification, above, for regular
1053
- // observers.
1054
- members = SC.clone(starObservers.getMembers()) ;
1055
- membersLength = members.length ;
1056
- for(memberLoc=0;memberLoc < membersLength; memberLoc++) {
1057
- member = members[memberLoc] ;
1058
- target = member[0] || this;
1059
- method = member[1] ;
1060
- context = member[2] ;
1061
-
1062
- if (log) SC.Logger.log('%@...firing * observer on %@ for key "%@"'.fmt(spaces, target, key));
1063
- if (context !== undefined) {
1064
- method.call(target, this, key, null, context, rev);
1065
- } else {
1066
- method.call(target, this, key, null, rev) ;
1067
- }
1068
- }
1069
- }
1070
-
1071
- // if there is a default property observer, call that also
1072
- if (this.propertyObserver) {
1073
- if (log) SC.Logger.log('%@...firing %@.propertyObserver for key "%@"'.fmt(spaces, this, key));
1074
- this.propertyObserver(this, key, null, rev);
1075
- }
1076
- } // while(changes.length>0)
1077
-
1078
- // changes set should be empty. release it for reuse
1079
- if (changes) changes.destroy() ;
1080
-
1081
- // key is no longer needed; clear it to avoid infinite loops
1082
- key = null ;
1083
-
1084
- } // while (changes)
1085
-
1086
- // done with loop, reduce change level so that future sets can resume
1087
- this._kvo_changeLevel = (this._kvo_changeLevel || 1) - 1;
1088
-
1089
- if (log) SC.KVO_SPACES = spaces.slice(0, -2);
1090
-
1091
- return YES ; // finished successfully
1092
- },
1093
-
1094
- // ..........................................
1095
- // BINDINGS
1096
- //
1097
-
1098
- /**
1099
- Manually add a new binding to an object. This is the same as doing
1100
- the more familiar propertyBinding: 'property.path' approach.
1101
-
1102
- @param {String} toKey the key to bind to
1103
- @param {Object} target target or property path to bind from
1104
- @param {String|Function} method method for target to bind from
1105
- @returns {SC.Binding} new binding instance
1106
- */
1107
- bind: function(toKey, target, method) {
1108
-
1109
- var binding , pathType;
1110
-
1111
- // normalize...
1112
- if (method !== undefined) target = [target, method];
1113
-
1114
- // if a string or array (i.e. tuple) is passed, convert this into a
1115
- // binding. If a binding default was provided, use that.
1116
- pathType = typeof target;
1117
-
1118
- if (pathType === "string" || (pathType === "object" && (target instanceof Array))) {
1119
- binding = this[toKey + 'BindingDefault'] || SC.Binding;
1120
- binding = binding.beget().from(target) ;
1121
- } else binding = target ;
1122
-
1123
- // finish configuring the binding and then connect it.
1124
- binding = binding.to(toKey, this).connect() ;
1125
- this.bindings.push(binding) ;
1126
-
1127
- return binding ;
1128
- },
1129
-
1130
- /**
1131
- didChangeFor allows you to determine if a property has changed since the
1132
- last time the method was called. You must pass a unique context as the
1133
- first parameter (so didChangeFor can identify which method is calling it),
1134
- followed by a list of keys that should be checked for changes.
1135
-
1136
- For example, in your render method you might pass the following context:
1137
- if (this.didChangeFor('render','height','width')) {
1138
- // Only render if changed
1139
- }
1140
-
1141
- In your view's update method, you might instead pass 'update':
1142
-
1143
- if (this.didChangeFor('update', 'height', 'width')) {
1144
- // Only update height and width properties
1145
- }
1146
-
1147
- This method works by comparing property revision counts. Every time a
1148
- property changes, an internal counter is incremented. When didChangeFor is
1149
- invoked, the current revision count of the property is compared to the
1150
- revision count from the last time this method was called.
1151
-
1152
- @param {String|Object} context a unique identifier
1153
- @param {String…} propertyNames one or more property names
1154
- */
1155
- didChangeFor: function(context) {
1156
- var valueCache, revisionCache, seenValues, seenRevisions, ret,
1157
- currentRevision, idx, key, value;
1158
- context = SC.hashFor(context) ; // get a hash key we can use in caches.
1159
-
1160
- // setup caches...
1161
- valueCache = this._kvo_didChange_valueCache ;
1162
- if (!valueCache) valueCache = this._kvo_didChange_valueCache = {};
1163
- revisionCache = this._kvo_didChange_revisionCache;
1164
- if (!revisionCache) revisionCache=this._kvo_didChange_revisionCache={};
1165
-
1166
- // get the cache of values and revisions already seen in this context
1167
- seenValues = valueCache[context] || {} ;
1168
- seenRevisions = revisionCache[context] || {} ;
1169
-
1170
- // prepare too loop!
1171
- ret = false ;
1172
- currentRevision = this._kvo_revision || 0 ;
1173
- idx = arguments.length ;
1174
- while(--idx >= 1) { // NB: loop only to 1 to ignore context arg.
1175
- key = arguments[idx];
1176
-
1177
- // has the kvo revision changed since the last time we did this?
1178
- if (seenRevisions[key] != currentRevision) {
1179
- // yes, check the value with the last seen value
1180
- value = this.get(key) ;
1181
- if (seenValues[key] !== value) {
1182
- ret = true ; // did change!
1183
- seenValues[key] = value;
1184
- }
1185
- }
1186
- seenRevisions[key] = currentRevision;
1187
- }
1188
-
1189
- valueCache[context] = seenValues ;
1190
- revisionCache[context] = seenRevisions ;
1191
- return ret ;
1192
- },
1193
-
1194
- /**
1195
- Sets the property only if the passed value is different from the
1196
- current value. Depending on how expensive a get() is on this property,
1197
- this may be more efficient.
1198
-
1199
- NOTE: By default, the set() method will not set the value unless it has
1200
- changed. However, this check can skipped by setting .property().idempotent(NO)
1201
- setIfChanged() may be useful in this case.
1202
-
1203
- @param key {String|Hash} the key to change
1204
- @param value {Object} the value to change
1205
- @returns {SC.Observable}
1206
- */
1207
- setIfChanged: function(key, value) {
1208
- if(value === undefined && SC.typeOf(key) === SC.T_HASH) {
1209
- var hash = key;
1210
-
1211
- for(key in hash) {
1212
- if (!hash.hasOwnProperty(key)) continue;
1213
- this.setIfChanged(key, hash[key]);
1214
- }
1215
-
1216
- return this;
1217
- }
1218
-
1219
- return (this.get(key) !== value) ? this.set(key, value) : this ;
1220
- },
1221
-
1222
- /**
1223
- Navigates the property path, returning the value at that point.
1224
-
1225
- If any object in the path is undefined, returns undefined.
1226
- */
1227
- getPath: function(path) {
1228
- var tuple = SC.tupleForPropertyPath(path, this) ;
1229
- if (tuple === null || tuple[0] === null) return undefined ;
1230
- return SC.get(tuple[0], tuple[1]) ;
1231
- },
1232
-
1233
- /**
1234
- Navigates the property path, finally setting the value.
1235
-
1236
- @param path {String} the property path to set
1237
- @param value {Object} the value to set
1238
- @returns {SC.Observable}
1239
- */
1240
- setPath: function(path, value) {
1241
- if (path.indexOf('.') >= 0) {
1242
- var tuple = SC.tupleForPropertyPath(path, this) ;
1243
- if (!tuple || !tuple[0]) return null ;
1244
- tuple[0].set(tuple[1], value) ;
1245
- } else this.set(path, value) ; // shortcut
1246
- return this;
1247
- },
1248
-
1249
- /**
1250
- Navigates the property path, finally setting the value but only if
1251
- the value does not match the current value. This will avoid sending
1252
- unecessary change notifications.
1253
-
1254
- @param path {String} the property path to set
1255
- @param value {Object} the value to set
1256
- @returns {Object} this
1257
- */
1258
- setPathIfChanged: function(path, value) {
1259
- if (path.indexOf('.') >= 0) {
1260
- var tuple = SC.tupleForPropertyPath(path, this) ;
1261
- if (!tuple || !tuple[0]) return null ;
1262
- if (tuple[0].get(tuple[1]) !== value) {
1263
- tuple[0].set(tuple[1], value) ;
1264
- }
1265
- } else this.setIfChanged(path, value) ; // shortcut
1266
- return this;
1267
- },
1268
-
1269
- /**
1270
- Convenience method to get an array of properties.
1271
-
1272
- Pass in multiple property keys or an array of property keys. This
1273
- method uses getPath() so you can also pass key paths.
1274
-
1275
- @returns {Array} Values of property keys.
1276
- */
1277
- getEach: function() {
1278
- var keys = SC.A(arguments),
1279
- ret = [], idx, idxLen;
1280
- for(idx=0, idxLen = keys.length; idx < idxLen;idx++) {
1281
- ret[ret.length] = this.getPath(keys[idx]);
1282
- }
1283
- return ret ;
1284
- },
1285
-
1286
-
1287
- /**
1288
- Increments the value of a property.
1289
-
1290
- @param key {String} property name
1291
- @param increment {Number} the amount to increment (optional)
1292
- @returns {Number} new value of property
1293
- */
1294
- incrementProperty: function(key,increment) {
1295
- if (!increment) increment = 1;
1296
- this.set(key,(this.get(key) || 0)+increment);
1297
- return this.get(key) ;
1298
- },
1299
-
1300
- /**
1301
- Decrements the value of a property.
1302
-
1303
- @param key {String} property name
1304
- @param increment {Number} the amount to decrement (optional)
1305
- @returns {Number} new value of property
1306
- */
1307
- decrementProperty: function(key,increment) {
1308
- if (!increment) increment = 1;
1309
- this.set(key,(this.get(key) || 0) - increment) ;
1310
- return this.get(key) ;
1311
- },
1312
-
1313
- /**
1314
- Inverts a property. Property should be a bool.
1315
-
1316
- @param key {String} property name
1317
- @param value {Object} optional parameter for "true" value
1318
- @param alt {Object} optional parameter for "false" value
1319
- @returns {Object} new value
1320
- */
1321
- toggleProperty: function(key,value,alt) {
1322
- if (value === undefined) value = true ;
1323
- if (alt === undefined) alt = false ;
1324
- value = (this.get(key) == value) ? alt : value ;
1325
- this.set(key,value);
1326
- return this.get(key) ;
1327
- },
1328
-
1329
- /**
1330
- Convenience method to call propertyWillChange/propertyDidChange.
1331
-
1332
- Sometimes you need to notify observers that a property has changed value
1333
- without actually changing this value. In those cases, you can use this
1334
- method as a convenience instead of calling propertyWillChange() and
1335
- propertyDidChange().
1336
-
1337
- @param key {String} The property key that has just changed.
1338
- @param value {Object} The new value of the key. May be null.
1339
- @returns {SC.Observable}
1340
- */
1341
- notifyPropertyChange: function(key, value) {
1342
- this.propertyWillChange(key) ;
1343
- this.propertyDidChange(key, value) ;
1344
- return this;
1345
- },
1346
-
1347
- /**
1348
- Notifies all of observers of a property changes.
1349
-
1350
- Sometimes when you make a major update to your object, it is cheaper to
1351
- simply notify all observers that their property might have changed than
1352
- to figure out specifically which properties actually did change.
1353
-
1354
- In those cases, you can simply call this method to notify all property
1355
- observers immediately. Note that this ignores property groups.
1356
-
1357
- @returns {SC.Observable}
1358
- */
1359
- allPropertiesDidChange: function() {
1360
- this._kvo_cache = null; //clear cached props
1361
- this._notifyPropertyObservers('*') ;
1362
- return this ;
1363
- },
1364
-
1365
- addProbe: function(key) { this.addObserver(key,SC.logChange); },
1366
- removeProbe: function(key) { this.removeObserver(key,SC.logChange); },
1367
-
1368
- /**
1369
- Logs the named properties to the SC.Logger.
1370
-
1371
- @param {String...} propertyNames one or more property names
1372
- */
1373
- logProperty: function() {
1374
- var props = SC.$A(arguments),
1375
- prop, propsLen, idx;
1376
- for(idx=0, propsLen = props.length; idx<propsLen; idx++) {
1377
- prop = props[idx] ;
1378
- SC.Logger.log('%@:%@: '.fmt(SC.guidFor(this), prop), this.get(prop)) ;
1379
- }
1380
- },
1381
-
1382
- propertyRevision: 1
1383
-
1384
- } ;
1385
-
1386
- /** @private used by addProbe/removeProbe */
1387
- SC.logChange = function logChange(target, key, value) {
1388
- SC.Logger.log("CHANGE: %@[%@] => %@".fmt(target, key, target.get(key)));
1389
- };
1390
-
1391
- /**
1392
- Retrieves a property from an object, using get() if the
1393
- object implements SC.Observable.
1394
-
1395
- @param {Object} object the object to query
1396
- @param {String} key the property to retrieve
1397
- */
1398
- SC.mixin(SC, {
1399
- get: function(object, key) {
1400
- if (!object) return undefined;
1401
- if (key === undefined) return this[object];
1402
- if (object.get) return object.get(key);
1403
- return object[key];
1404
- }
1405
- });
1406
-
1407
- // Make all Array's observable
1408
- SC.mixin(Array.prototype, SC.Observable) ;