sproutcore 1.5.0 → 1.6.0.beta.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. data/.mailmap +32 -0
  2. data/CHANGELOG +8 -1
  3. data/Rakefile +16 -0
  4. data/VERSION.yml +2 -2
  5. data/bin/sc-build +0 -5
  6. data/bin/sc-build-number +0 -5
  7. data/bin/sc-docs +0 -5
  8. data/bin/sc-gen +0 -5
  9. data/bin/sc-init +0 -5
  10. data/bin/sc-manifest +0 -5
  11. data/bin/sc-server +0 -5
  12. data/bin/sproutcore +0 -5
  13. data/lib/frameworks/sproutcore/Buildfile +3 -3
  14. data/lib/frameworks/sproutcore/CHANGELOG.md +13 -0
  15. data/lib/frameworks/sproutcore/README.md +77 -7
  16. data/lib/frameworks/sproutcore/frameworks/ajax/system/request.js +0 -2
  17. data/lib/frameworks/sproutcore/frameworks/animation/core.js +3 -2
  18. data/lib/frameworks/sproutcore/frameworks/bootstrap/system/browser.js +1 -1
  19. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/array.js +1 -17
  20. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/controller.js +1 -1
  21. data/lib/frameworks/sproutcore/frameworks/core_foundation/controllers/object.js +4 -4
  22. data/lib/frameworks/sproutcore/frameworks/core_foundation/ext/handlebars/collection.js +23 -21
  23. data/lib/frameworks/sproutcore/frameworks/core_foundation/mixins/delegate_support.js +1 -1
  24. data/lib/frameworks/sproutcore/frameworks/core_foundation/panes/pane.js +3 -3
  25. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/device.js +2 -2
  26. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/event.js +16 -16
  27. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/platform.js +2 -2
  28. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/render_context.js +1 -34
  29. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/root_responder.js +29 -23
  30. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/sparse_array.js +8 -4
  31. data/lib/frameworks/sproutcore/frameworks/core_foundation/system/string.js +20 -23
  32. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +55 -0
  33. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/collection.js +49 -1
  34. data/lib/frameworks/sproutcore/frameworks/core_foundation/tests/views/template/handlebars.js +19 -1
  35. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/template_collection.js +2 -0
  36. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/animation.js +4 -3
  37. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view/layout.js +1 -0
  38. data/lib/frameworks/sproutcore/frameworks/core_foundation/views/view.js +38 -41
  39. data/lib/frameworks/sproutcore/frameworks/datastore/system/query.js +7 -82
  40. data/lib/frameworks/sproutcore/frameworks/datastore/system/record_array.js +12 -5
  41. data/lib/frameworks/sproutcore/frameworks/datastore/system/store.js +1 -1
  42. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/array_observers.js +82 -0
  43. data/lib/frameworks/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +17 -0
  44. data/lib/frameworks/sproutcore/frameworks/debug/core.js +1 -1
  45. data/lib/frameworks/sproutcore/frameworks/debug/invoke_once_last_debugging.js +1 -1
  46. data/lib/frameworks/sproutcore/frameworks/desktop/core.js +2 -2
  47. data/lib/frameworks/sproutcore/frameworks/desktop/english.lproj/slider.css +33 -30
  48. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/border.js +12 -11
  49. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +7 -7
  50. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +4 -4
  51. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +20 -20
  52. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/navigation_builder.js +5 -5
  53. data/lib/frameworks/sproutcore/frameworks/desktop/mixins/scrollable.js +10 -10
  54. data/lib/frameworks/sproutcore/frameworks/desktop/panes/alert.js +24 -23
  55. data/lib/frameworks/sproutcore/frameworks/desktop/panes/menu.js +51 -54
  56. data/lib/frameworks/sproutcore/frameworks/desktop/panes/modal.js +3 -3
  57. data/lib/frameworks/sproutcore/frameworks/desktop/panes/panel.js +1 -1
  58. data/lib/frameworks/sproutcore/frameworks/desktop/panes/select_button.js +29 -29
  59. data/lib/frameworks/sproutcore/frameworks/desktop/panes/sheet.js +1 -1
  60. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drag_source.js +3 -3
  61. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/drop_target.js +6 -6
  62. data/lib/frameworks/sproutcore/frameworks/desktop/protocols/responder.js +4 -4
  63. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/checkbox.js +5 -5
  64. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/master_detail.js +1 -1
  65. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/progress.js +5 -5
  66. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio.js +7 -7
  67. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/radio_group.js +3 -3
  68. data/lib/frameworks/sproutcore/frameworks/desktop/render_delegates/slider.js +7 -5
  69. data/lib/frameworks/sproutcore/frameworks/desktop/system/drag.js +31 -31
  70. data/lib/frameworks/sproutcore/frameworks/desktop/system/undo_manager.js +1 -1
  71. data/lib/frameworks/sproutcore/frameworks/desktop/views/button.js +35 -29
  72. data/lib/frameworks/sproutcore/frameworks/desktop/views/checkbox.js +2 -2
  73. data/lib/frameworks/sproutcore/frameworks/desktop/views/collection.js +61 -50
  74. data/lib/frameworks/sproutcore/frameworks/desktop/views/segmented.js +9 -2
  75. data/lib/frameworks/sproutcore/frameworks/desktop/views/select.js +2 -2
  76. data/lib/frameworks/sproutcore/frameworks/desktop/views/select_field.js +6 -1
  77. data/lib/frameworks/sproutcore/frameworks/desktop/views/static_content.js +1 -1
  78. data/lib/frameworks/sproutcore/frameworks/experimental/Buildfile +2 -0
  79. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/coders/object.js +12 -12
  80. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/designs.js +6 -6
  81. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/controllers/page_files.js +1 -1
  82. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/css/css_style_sheet.js +7 -9
  83. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/object_designer.js +13 -13
  84. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/designers/view_designer.js +37 -37
  85. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/object.js +3 -2
  86. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/page.js +2 -2
  87. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/ext/view.js +4 -3
  88. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/mixins/snap_lines.js +7 -6
  89. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/designer_drop_target.js +3 -3
  90. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/drawing.js +49 -42
  91. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/high_light.js +1 -1
  92. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/designer/views/page_item_view.js +6 -6
  93. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +1 -1
  94. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/english.lproj/default_styles.css +0 -0
  95. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/english.lproj/strings.js +0 -0
  96. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/mixins/edit_mode.js +0 -0
  97. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/mixins/emptiness.js +0 -0
  98. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/render_delegates/form.js +0 -0
  99. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/render_delegates/form_row.js +0 -0
  100. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form.js +0 -0
  101. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_checkbox_field.js +0 -0
  102. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_field.js +0 -0
  103. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_label.js +0 -0
  104. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_radio_field.js +0 -0
  105. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_row.js +0 -0
  106. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/tests/views/form_text_field.js +0 -0
  107. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/views/form.js +13 -14
  108. data/lib/frameworks/sproutcore/frameworks/{forms → experimental/frameworks/forms}/views/form_row.js +0 -0
  109. data/lib/frameworks/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +4 -6
  110. data/lib/frameworks/sproutcore/frameworks/foundation/mixins/static_layout.js +0 -1
  111. data/lib/frameworks/sproutcore/frameworks/foundation/private/tree_item_observer.js +2 -4
  112. data/lib/frameworks/sproutcore/frameworks/foundation/system/image_queue.js +8 -12
  113. data/lib/frameworks/sproutcore/frameworks/foundation/views/inline_text_field.js +28 -34
  114. data/lib/frameworks/sproutcore/frameworks/{foundation → routing}/system/routes.js +31 -47
  115. data/lib/frameworks/sproutcore/frameworks/{foundation → routing}/tests/system/routes.js +0 -0
  116. data/lib/frameworks/sproutcore/frameworks/runtime/core.js +2 -2
  117. data/lib/frameworks/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +15 -21
  118. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/array.js +8 -0
  119. data/lib/frameworks/sproutcore/frameworks/runtime/mixins/enumerable.js +3 -3
  120. data/lib/frameworks/sproutcore/frameworks/runtime/tests/mixins/array_observers.js +23 -0
  121. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/binding.js +1 -1
  122. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +3 -3
  123. data/lib/frameworks/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +3 -3
  124. data/lib/frameworks/sproutcore/frameworks/statechart/system/state.js +66 -133
  125. data/lib/frameworks/sproutcore/frameworks/statechart/system/statechart.js +68 -139
  126. data/lib/frameworks/sproutcore/frameworks/testing/system/plan.js +11 -11
  127. data/lib/frameworks/sproutcore/frameworks/testing/system/suite.js +23 -29
  128. data/lib/frameworks/sproutcore/lib/index.rhtml +5 -2
  129. data/lib/sproutcore/builders/minify.rb +5 -5
  130. data/lib/sproutcore/helpers/minifier.rb +6 -10
  131. data/lib/sproutcore/models/target.rb +2 -2
  132. data/lib/sproutcore/rack/proxy.rb +8 -7
  133. data/lib/sproutcore/tools.rb +16 -5
  134. data/lib/sproutcore.rb +2 -9
  135. data/spec/lib/builders/html_spec.rb +5 -5
  136. data/sproutcore.gemspec +11 -5
  137. data/vendor/chance/lib/chance.rb +4 -2
  138. data/{lib/sproutcore/vendor → vendor}/jsdoc/README.txt +0 -0
  139. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Chain.js +0 -0
  140. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Dumper.js +0 -0
  141. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Hash.js +0 -0
  142. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Link.js +0 -0
  143. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Namespace.js +0 -0
  144. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Opt.js +0 -0
  145. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Reflection.js +0 -0
  146. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/String.js +0 -0
  147. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame/Testrun.js +0 -0
  148. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/frame.js +0 -0
  149. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/FOODOC.js +0 -0
  150. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/DomReader.js +0 -0
  151. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/XMLDoc.js +0 -0
  152. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC/XMLParse.js +0 -0
  153. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/handlers/XMLDOC.js +0 -0
  154. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/DocComment.js +0 -0
  155. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/DocTag.js +0 -0
  156. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/JsDoc.js +0 -0
  157. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/JsPlate.js +0 -0
  158. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Lang.js +0 -0
  159. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Parser.js +0 -0
  160. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/PluginManager.js +0 -0
  161. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Symbol.js +0 -0
  162. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/SymbolSet.js +0 -0
  163. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TextStream.js +0 -0
  164. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Token.js +0 -0
  165. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TokenReader.js +0 -0
  166. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/TokenStream.js +0 -0
  167. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Util.js +0 -0
  168. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC/Walker.js +0 -0
  169. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/lib/JSDOC.js +0 -0
  170. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/main.js +0 -0
  171. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/commentSrcJson.js +0 -0
  172. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/frameworkPrototype.js +0 -0
  173. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/functionCall.js +0 -0
  174. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/publishSrcHilite.js +0 -0
  175. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/sproutcoreTags.js +0 -0
  176. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/symbolLink.js +0 -0
  177. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/tagParamConfig.js +0 -0
  178. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/plugins/tagSynonyms.js +0 -0
  179. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/run.js +0 -0
  180. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/t/TestDoc.js +0 -0
  181. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/t/runner.js +0 -0
  182. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/addon.js +0 -0
  183. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/anon_inner.js +0 -0
  184. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/augments.js +0 -0
  185. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/augments2.js +0 -0
  186. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/borrows.js +0 -0
  187. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/borrows2.js +0 -0
  188. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/config.js +0 -0
  189. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/constructs.js +0 -0
  190. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/encoding.js +0 -0
  191. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/encoding_other.js +0 -0
  192. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/functions_anon.js +0 -0
  193. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/functions_nested.js +0 -0
  194. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/global.js +0 -0
  195. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/globals.js +0 -0
  196. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/ignore.js +0 -0
  197. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/inner.js +0 -0
  198. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/jsdoc_test.js +0 -0
  199. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/lend.js +0 -0
  200. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/memberof.js +0 -0
  201. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/memberof_constructor.js +0 -0
  202. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/name.js +0 -0
  203. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/namespace_nested.js +0 -0
  204. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/nocode.js +0 -0
  205. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/oblit_anon.js +0 -0
  206. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/overview.js +0 -0
  207. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/param_inline.js +0 -0
  208. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/params_optional.js +0 -0
  209. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype.js +0 -0
  210. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_nested.js +0 -0
  211. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_oblit.js +0 -0
  212. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/prototype_oblit_constructor.js +0 -0
  213. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/public.js +0 -0
  214. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shared.js +0 -0
  215. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shared2.js +0 -0
  216. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/shortcuts.js +0 -0
  217. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/static_this.js +0 -0
  218. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/synonyms.js +0 -0
  219. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/tosource.js +0 -0
  220. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test/variable_redefine.js +0 -0
  221. data/{lib/sproutcore/vendor → vendor}/jsdoc/app/test.js +0 -0
  222. data/{lib/sproutcore/vendor → vendor}/jsdoc/changes.txt +0 -0
  223. data/{lib/sproutcore/vendor → vendor}/jsdoc/conf/sample.conf +0 -0
  224. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/build.xml +0 -0
  225. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/build_1.4.xml +0 -0
  226. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/classes/js.jar +0 -0
  227. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/src/JsDebugRun.java +0 -0
  228. data/{lib/sproutcore/vendor → vendor}/jsdoc/java/src/JsRun.java +0 -0
  229. data/{lib/sproutcore/vendor → vendor}/jsdoc/jsdebug.jar +0 -0
  230. data/{lib/sproutcore/vendor → vendor}/jsdoc/jsrun.jar +0 -0
  231. data/{lib/sproutcore/vendor → vendor}/jsdoc/t/TestDoc.js +0 -0
  232. data/{lib/sproutcore/vendor → vendor}/jsdoc/t/runner.js +0 -0
  233. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/addon.js +0 -0
  234. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/anon_inner.js +0 -0
  235. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/augments.js +0 -0
  236. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/augments2.js +0 -0
  237. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/borrows.js +0 -0
  238. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/borrows2.js +0 -0
  239. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/config.js +0 -0
  240. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/constructs.js +0 -0
  241. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/encoding.js +0 -0
  242. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/encoding_other.js +0 -0
  243. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/functions_anon.js +0 -0
  244. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/functions_nested.js +0 -0
  245. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/global.js +0 -0
  246. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/globals.js +0 -0
  247. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/ignore.js +0 -0
  248. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/inner.js +0 -0
  249. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/jsdoc_test.js +0 -0
  250. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/lend.js +0 -0
  251. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/memberof.js +0 -0
  252. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/memberof_constructor.js +0 -0
  253. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/name.js +0 -0
  254. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/namespace_nested.js +0 -0
  255. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/nocode.js +0 -0
  256. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/oblit_anon.js +0 -0
  257. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/overview.js +0 -0
  258. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/param_inline.js +0 -0
  259. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/params_optional.js +0 -0
  260. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype.js +0 -0
  261. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_nested.js +0 -0
  262. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_oblit.js +0 -0
  263. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/prototype_oblit_constructor.js +0 -0
  264. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/public.js +0 -0
  265. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shared.js +0 -0
  266. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shared2.js +0 -0
  267. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/shortcuts.js +0 -0
  268. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/static_this.js +0 -0
  269. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/synonyms.js +0 -0
  270. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/tosource.js +0 -0
  271. data/{lib/sproutcore/vendor → vendor}/jsdoc/test/variable_redefine.js +0 -0
  272. data/{lib/sproutcore/vendor → vendor}/jsdoc/test.js +0 -0
  273. data/vendor/sproutcore/{src/SCCompiler/lib/yuicompressor-2.4.4.jar → lib/yuicompressor-2.4.6.jar} +0 -0
  274. metadata +176 -202
  275. data/lib/frameworks/sproutcore/frameworks/desktop/views/file.js +0 -148
  276. data/lib/sproutcore/vendor/github_gem_lint.rb +0 -22
  277. data/vendor/sproutcore/SCCompiler.jar +0 -0
  278. data/vendor/sproutcore/lib/args4j-2.0.12.jar +0 -0
  279. data/vendor/sproutcore/lib/yuicompressor-2.4.2.jar +0 -0
  280. data/vendor/sproutcore/src/SCCompiler/build.xml +0 -74
  281. data/vendor/sproutcore/src/SCCompiler/lib/args4j-2.0.12.jar +0 -0
  282. data/vendor/sproutcore/src/SCCompiler/lib/htmlcompressor-0.9.3.jar +0 -0
  283. data/vendor/sproutcore/src/SCCompiler/lib/yuicompressor-2.4.2.jar +0 -0
  284. data/vendor/sproutcore/src/SCCompiler/manifest.mf +0 -3
  285. data/vendor/sproutcore/src/SCCompiler/nbproject/build-impl.xml +0 -894
  286. data/vendor/sproutcore/src/SCCompiler/nbproject/genfiles.properties +0 -8
  287. data/vendor/sproutcore/src/SCCompiler/nbproject/private/config.properties +0 -0
  288. data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.properties +0 -10
  289. data/vendor/sproutcore/src/SCCompiler/nbproject/private/private.xml +0 -4
  290. data/vendor/sproutcore/src/SCCompiler/nbproject/project.properties +0 -90
  291. data/vendor/sproutcore/src/SCCompiler/nbproject/project.xml +0 -15
  292. data/vendor/sproutcore/src/SCCompiler/src/com/sproutcore/Main.java +0 -348
@@ -68,10 +68,10 @@ SC.designsController = SC.ArrayController.create(SC.CollectionViewDelegate,
68
68
  general which operations you might support and specifically the operations
69
69
  you would support if the user dropped an item over a specific location.
70
70
 
71
- If the proposedDropOperation parameter is SC.DROP_ON or SC.DROP_BEFORE,
72
- then the proposedInsertionPoint will be a non-negative value and you
73
- should determine the specific operations you will support if the user
74
- dropped the drag item at that point.
71
+ If the `proposedDropOperation` parameter is `SC.DROP_ON` or
72
+ `SC.DROP_BEFORE`, then the `proposedInsertionPoint` will be a
73
+ non-negative value and you should determine the specific operations you
74
+ will support if the user dropped the drag item at that point.
75
75
 
76
76
  If you do not like the proposed drop operation or insertion point, you
77
77
  can override these properties as well by setting the proposedDropOperation
@@ -99,12 +99,12 @@ SC.designsController = SC.ArrayController.create(SC.CollectionViewDelegate,
99
99
 
100
100
  /**
101
101
  Called by the collection view to actually accept a drop. This method will
102
- only be invoked AFTER your validateDrop method has been called to
102
+ only be invoked *AFTER* your `validateDrop` method has been called to
103
103
  determine if you want to even allow the drag operation to go through.
104
104
 
105
105
  You should actually make changes to the data model if needed here and
106
106
  then return the actual drag operation that was performed. If you return
107
- SC.DRAG_NONE and the dragOperation was SC.DRAG_REORDER, then the default
107
+ SC.DRAG_NONE and the dragOperation was `SC.DRAG_REORDER`, then the default
108
108
  reorder behavior will be provided by the collection view.
109
109
 
110
110
  @param view {SC.CollectionView}
@@ -11,7 +11,7 @@
11
11
 
12
12
  /** @class
13
13
 
14
- in suppressMain mode all page files register with this array controller
14
+ in `suppressMain` mode all page files register with this array controller
15
15
 
16
16
  @extends SC.Object
17
17
  */
@@ -10,8 +10,8 @@ sc_require('css/css_rule') ;
10
10
  /**
11
11
  @class SC.CSSStyleSheet
12
12
 
13
- A style sheet object wraps a document style sheet object. SC.CSSStyleSheet will
14
- re-use stylesheet objects as needed.
13
+ A style sheet object wraps a document style sheet object. `C.CSSStyleSheet`
14
+ will re-use stylesheet objects as needed.
15
15
 
16
16
  @extends SC.Object
17
17
  */
@@ -57,7 +57,7 @@ SC.CSSStyleSheet = SC.Object.extend(
57
57
  isEnabledBindingDefault: SC.Binding.bool(),
58
58
 
59
59
  /**
60
- DO NOT MODIFY THIS OBJECT DIRECTLY!!!! Use the methods defined on this
60
+ **DO NOT MODIFY THIS OBJECT DIRECTLY!!!!** Use the methods defined on this
61
61
  object to update properties of the style sheet; otherwise, your changes
62
62
  will not be reflected.
63
63
 
@@ -137,14 +137,12 @@ SC.mixin(SC.CSSStyleSheet,
137
137
  /** SC.CSSStyleSheet */{
138
138
 
139
139
  /**
140
- Find a stylesheet object by name or href. If by name, .css will be
140
+ Find a stylesheet object by name or href. If by name, `.css` will be
141
141
  appended automatically.
142
142
 
143
- {{{
144
- var ss = SC.CSSStyleSheet.find('style.css') ;
145
- var ss2 = SC.CSSStyleSheet.find('style') ; // same thing
146
- sc_assert(ss === ss2) ; // SC.CSSStyleSheet objects are stable
147
- }}}
143
+ var ss = SC.CSSStyleSheet.find('style.css') ;
144
+ var ss2 = SC.CSSStyleSheet.find('style') ; // same thing
145
+ sc_assert(ss === ss2) ; // SC.CSSStyleSheet objects are stable
148
146
 
149
147
  @param {String} nameOrUrl a stylsheet name or href to find
150
148
  @returns {SC.CSSStyleSheet} null if not found
@@ -8,10 +8,10 @@
8
8
  /*global SC */
9
9
 
10
10
  /** @class
11
- This is a basic designer used for all SC.Objects that are created in design
12
- mode.
11
+ This is a basic designer used for all `SC.Object`s that are created in
12
+ design mode.
13
13
 
14
- FIXME: have SC.ViewDesigner subclass this designer.....
14
+ FIXME: have `SC.ViewDesigner` subclass this designer.....
15
15
 
16
16
  @extends SC.Object
17
17
  @since SproutCore 1.0
@@ -25,10 +25,10 @@ SC.ObjectDesigner = SC.Object.extend(
25
25
  /** The class for the design. Set when the object is created. */
26
26
  objectClass: null,
27
27
 
28
- /** Set to YES if the object is currently selected for editing. */
28
+ /** Set to `YES` if the object is currently selected for editing. */
29
29
  designIsSelected: NO,
30
30
 
31
- /** Set to YES if this particular designer should not be enabled. */
31
+ /** Set to `YES` if this particular designer should not be enabled. */
32
32
  designIsEnabled: YES,
33
33
 
34
34
  /**
@@ -84,7 +84,7 @@ SC.ObjectDesigner = SC.Object.extend(
84
84
  Array of properties that can be encoded directly. This is an easy way to
85
85
  add support for simple properties that need to be written to the design
86
86
  without added code. These properties will be encoded by
87
- encodeDesignProperties().
87
+ `encodeDesignProperties()`.
88
88
 
89
89
  You can add to this array in your subclasses.
90
90
  */
@@ -126,8 +126,8 @@ SC.ObjectDesigner = SC.Object.extend(
126
126
 
127
127
  /**
128
128
  Invoked by a design coder to encode design properties. The default
129
- implementation invoked encodeDesignProperties() and
130
- encodeChildViewsDesign(). You can override this method with your own
129
+ implementation invoked `encodeDesignProperties()` and
130
+ `encodeChildViewsDesign()`. You can override this method with your own
131
131
  additional encoding if you like.
132
132
  */
133
133
  encodeDesign: function(coder) {
@@ -150,7 +150,7 @@ SC.ObjectDesigner = SC.Object.extend(
150
150
  Array of localized that can be encoded directly. This is an easy way to
151
151
  add support for simple properties that need to be written to the
152
152
  localization without added code. These properties will be encoded by
153
- encodeLocalizedProperties().
153
+ `encodeLocalizedProperties()`.
154
154
 
155
155
  You can add to this array in your subclasses.
156
156
  */
@@ -158,8 +158,8 @@ SC.ObjectDesigner = SC.Object.extend(
158
158
 
159
159
  /**
160
160
  Invoked by a localization coder to encode design properties. The default
161
- implementation invoked encodeLocalizedProperties() and
162
- encodeChildViewsLoc(). You can override this method with your own
161
+ implementation invoked `encodeLocalizedProperties()` and
162
+ `encodeChildViewsLoc()`. You can override this method with your own
163
163
  additional encoding if you like.
164
164
  */
165
165
  encodeLoc: function(coder) {
@@ -187,7 +187,7 @@ SC.ObjectDesigner = SC.Object.extend(
187
187
  awakeDesign: function() {},
188
188
 
189
189
  /**
190
- The unknownProperty handler will pass through to the object by default.
190
+ The `unknownProperty` handler will pass through to the object by default.
191
191
  This will often provide you the support you need without needing to
192
192
  customize the Designer. Just make sure you don't define a conflicting
193
193
  property name on the designer itself!
@@ -295,4 +295,4 @@ SC.ObjectDesigner.mixin({
295
295
  }
296
296
  }
297
297
 
298
- });
298
+ });
@@ -11,9 +11,9 @@ sc_require('views/high_light');
11
11
  /** @class
12
12
 
13
13
  A Designer class provides the core editing functionality you need to edit
14
- a view in the UI. When your app loads in design.mode, a peer Designer
14
+ a view in the UI. When your app loads in `design.mode`, a peer Designer
15
15
  instance is created for every view using the class method Designer or
16
- SC.ViewDesigner if the view class does not define a Designer class.
16
+ `SC.ViewDesigner` if the view class does not define a Designer class.
17
17
 
18
18
  Whenever you put your app into design mode, all events will be routed first
19
19
  to the peer designer for an object, which will have an opportunity to
@@ -22,12 +22,12 @@ sc_require('views/high_light');
22
22
  Likewise, the designer palettes provided by the view builder will focus on
23
23
  the designer instead of the view itself.
24
24
 
25
- h2. Designer UI
25
+ ## Designer UI
26
26
 
27
27
  The basic ViewDesigner class automatically handles the UI interaction for
28
28
  layout. You can also double click on the view to perform a default action.
29
29
 
30
- For views with isContainerView set to YES, double clicking on the view will
30
+ For views with `isContainerView` set to `YES`, double clicking on the view will
31
31
  automatically "focus" the view. This allows you to select the view's
32
32
  children instead of the view itself.
33
33
 
@@ -73,8 +73,8 @@ SC.ViewDesigner = SC.Object.extend(
73
73
  If set to NO, the default childView encoding will not run. You can use
74
74
  this option, for example, if your view creates its own childViews.
75
75
 
76
- Alternatively, you can override the encodeChildViewsDesign() and
77
- encodeChildViewsLoc() methods.
76
+ Alternatively, you can override the `encodeChildViewsDesign()` and
77
+ `encodeChildViewsLoc()` methods.
78
78
 
79
79
  @property {Boolean}
80
80
  */
@@ -88,12 +88,12 @@ SC.ViewDesigner = SC.Object.extend(
88
88
  //
89
89
 
90
90
  /**
91
- Set to NO to hide horizontal resize handles
91
+ Set to `NO` to hide horizontal resize handles
92
92
  */
93
93
  canResizeHorizontal: YES,
94
94
 
95
95
  /**
96
- Set to NO to resize vertical handles
96
+ Set to `NO` to resize vertical handles
97
97
  */
98
98
  canResizeVertical: YES,
99
99
 
@@ -113,12 +113,12 @@ SC.ViewDesigner = SC.Object.extend(
113
113
  minHeight: 10,
114
114
 
115
115
  /**
116
- Determines maximum allowed width. null means no limit
116
+ Determines maximum allowed width. `null` means no limit
117
117
  */
118
118
  maxWidth: 100000000,
119
119
 
120
120
  /**
121
- Determines maximum allowed height. null means no limit
121
+ Determines maximum allowed height. `null` means no limit
122
122
  */
123
123
  maxHeight: 100000000,
124
124
 
@@ -142,11 +142,11 @@ SC.ViewDesigner = SC.Object.extend(
142
142
  The current anchor location. This determines which of the other dimension
143
143
  metrics are actually used to compute the layout. The value may be one of:
144
144
 
145
- TOP_LEFT, TOP_CENTER, TOP_RIGHT, TOP_HEIGHT,
146
- CENTER_LEFT, CENTER_CENTER, CENTER_RIGHT, CENTER_HEIGHT
147
- BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, BOTTOM_HEIGHT,
148
- WIDTH_LEFT, WIDTH_CENTER, WIDTH_RIGHT, WIDTH_HEIGHT,
149
- null
145
+ TOP_LEFT, TOP_CENTER, TOP_RIGHT, TOP_HEIGHT,
146
+ CENTER_LEFT, CENTER_CENTER, CENTER_RIGHT, CENTER_HEIGHT
147
+ BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, BOTTOM_HEIGHT,
148
+ WIDTH_LEFT, WIDTH_CENTER, WIDTH_RIGHT, WIDTH_HEIGHT,
149
+ null
150
150
 
151
151
  @property
152
152
  @type {Number}
@@ -237,21 +237,21 @@ SC.ViewDesigner = SC.Object.extend(
237
237
  },
238
238
 
239
239
  /**
240
- Returns the top offset of the current layout or null if not defined
240
+ Returns the top offset of the current layout or `null` if not defined
241
241
  */
242
242
  layoutTop: function(key, value) {
243
243
  return this._layoutProperty('top', value);
244
244
  }.property('layout').cacheable(),
245
245
 
246
246
  /**
247
- Returns the bottom offset of the current layout or null if not defined
247
+ Returns the bottom offset of the current layout or `null` if not defined
248
248
  */
249
249
  layoutBottom: function(key, value) {
250
250
  return this._layoutProperty('bottom', value);
251
251
  }.property('layout').cacheable(),
252
252
 
253
253
  /**
254
- Returns the centerY offset of the current layout or null if not defined
254
+ Returns the centerY offset of the current layout or `null` if not defined
255
255
  */
256
256
  layoutCenterY: function(key, value) {
257
257
  return this._layoutProperty('centerY', value);
@@ -265,35 +265,35 @@ SC.ViewDesigner = SC.Object.extend(
265
265
  }.property('layout').cacheable(),
266
266
 
267
267
  /**
268
- Returns the top offset of the current layout or null if not defined
268
+ Returns the top offset of the current layout or `null` if not defined
269
269
  */
270
270
  layoutTop: function(key, value) {
271
271
  return this._layoutProperty('top', value);
272
272
  }.property('layout').cacheable(),
273
273
 
274
274
  /**
275
- Returns the left offset of the current layout or null if not defined
275
+ Returns the left offset of the current layout or `null` if not defined
276
276
  */
277
277
  layoutLeft: function(key, value) {
278
278
  return this._layoutProperty('left', value);
279
279
  }.property('layout').cacheable(),
280
280
 
281
281
  /**
282
- Returns the right offset of the current layout or null if not defined
282
+ Returns the right offset of the current layout or `null` if not defined
283
283
  */
284
284
  layoutRight: function(key, value) {
285
285
  return this._layoutProperty('right', value);
286
286
  }.property('layout').cacheable(),
287
287
 
288
288
  /**
289
- Returns the centerX offset of the current layout or null if not defined
289
+ Returns the centerX offset of the current layout or `null` if not defined
290
290
  */
291
291
  layoutCenterX: function(key, value) {
292
292
  return this._layoutProperty('centerX', value);
293
293
  }.property('layout').cacheable(),
294
294
 
295
295
  /**
296
- Returns the width offset of the current layout or null if not defined
296
+ Returns the width offset of the current layout or `null` if not defined
297
297
  */
298
298
  layoutWidth: function(key, value) {
299
299
  return this._layoutProperty('width', value);
@@ -311,8 +311,8 @@ SC.ViewDesigner = SC.Object.extend(
311
311
 
312
312
  /**
313
313
  Encodes any simple properties that can just be copied from the view onto
314
- the coder. This is used by encodeDesignProperties() and
315
- encodeLocalizedProperties().
314
+ the coder. This is used by `encodeDesignProperties()` and
315
+ `encodeLocalizedProperties()`.
316
316
  */
317
317
  encodeSimpleProperties: function(props, coder) {
318
318
  var view = this.get('view'), proto = this.get('viewClass').prototype ;
@@ -336,7 +336,7 @@ SC.ViewDesigner = SC.Object.extend(
336
336
  Array of properties that can be encoded directly. This is an easy way to
337
337
  add support for simple properties that need to be written to the design
338
338
  without added code. These properties will be encoded by
339
- encodeDesignProperties().
339
+ `encodeDesignProperties()`.
340
340
 
341
341
  You can add to this array in your subclasses.
342
342
  */
@@ -380,8 +380,8 @@ SC.ViewDesigner = SC.Object.extend(
380
380
 
381
381
  /**
382
382
  Invoked by a design coder to encode design properties. The default
383
- implementation invoked encodeDesignProperties() and
384
- encodeChildViewsDesign(). You can override this method with your own
383
+ implementation invoked `encodeDesignProperties()` and
384
+ `encodeChildViewsDesign()`. You can override this method with your own
385
385
  additional encoding if you like.
386
386
  */
387
387
  encodeDesign: function(coder) {
@@ -434,7 +434,7 @@ SC.ViewDesigner = SC.Object.extend(
434
434
  Array of localized that can be encoded directly. This is an easy way to
435
435
  add support for simple properties that need to be written to the
436
436
  localization without added code. These properties will be encoded by
437
- encodeLocalizedProperties().
437
+ `encodeLocalizedProperties()`.
438
438
 
439
439
  You can add to this array in your subclasses.
440
440
  */
@@ -442,8 +442,8 @@ SC.ViewDesigner = SC.Object.extend(
442
442
 
443
443
  /**
444
444
  Invoked by a localization coder to encode design properties. The default
445
- implementation invoked encodeLocalizedProperties() and
446
- encodeChildViewsLoc(). You can override this method with your own
445
+ implementation invoked `encodeLocalizedProperties()` and
446
+ `encodeChildViewsLoc()`. You can override this method with your own
447
447
  additional encoding if you like.
448
448
  */
449
449
  encodeLoc: function(coder) {
@@ -535,7 +535,7 @@ SC.ViewDesigner = SC.Object.extend(
535
535
  },
536
536
 
537
537
  /**
538
- The unknownProperty handler will pass through to the view by default.
538
+ The `unknownProperty` handler will pass through to the view by default.
539
539
  This will often provide you the support you need without needing to
540
540
  customize the Designer. Just make sure you don't define a conflicting
541
541
  property name on the designer itself!
@@ -638,7 +638,7 @@ SC.ViewDesigner = SC.Object.extend(
638
638
  }.property(),
639
639
 
640
640
  /**
641
- set this property to YES if you want your designer to become Root
641
+ set this property to `YES` if you want your designer to become Root
642
642
  */
643
643
  acceptRootDesigner: NO,
644
644
 
@@ -691,7 +691,7 @@ SC.ViewDesigner = SC.Object.extend(
691
691
  HANDLE_MARGIN: 10,
692
692
 
693
693
  /**
694
- Select on mouseDown. If metaKey or shiftKey is pressed, add to
694
+ Select on `mouseDown`. If `metaKey` or `shiftKey` is pressed, add to
695
695
  selection. Otherwise just save starting info for dragging
696
696
  */
697
697
  mouseDown: function(evt) {
@@ -859,7 +859,7 @@ SC.ViewDesigner = SC.Object.extend(
859
859
  },
860
860
 
861
861
  /**
862
- On mouseUp potentially change selection and cleanup.
862
+ On `mouseUp` potentially change selection and cleanup.
863
863
  */
864
864
  mouseUp: function(evt) {
865
865
  if (!this.get('designIsEnabled') || !this.get('parentDesignerIsRoot')) return NO ;
@@ -900,7 +900,7 @@ SC.ViewDesigner = SC.Object.extend(
900
900
  },
901
901
 
902
902
  /**
903
- Called by designerController to reposition the view
903
+ Called by `designerController` to reposition the view
904
904
  */
905
905
  mouseReposition: function(evt, info) {
906
906
  var layout = SC.copy(this.get('layout'));
@@ -1074,7 +1074,7 @@ SC.ViewDesigner = SC.Object.extend(
1074
1074
 
1075
1075
  /**
1076
1076
  This method is called whenever the drag image is moved. This is
1077
- similar to the dragUpdated() method called on drop targets.
1077
+ similar to the `dragUpdated()` method called on drop targets.
1078
1078
 
1079
1079
  @param {SC.Drag} drag The Drag instance managing this drag.
1080
1080
 
@@ -20,8 +20,9 @@ SC.Object.prototype.emitDesign = function() {
20
20
 
21
21
 
22
22
  /**
23
- Patch SC.Object to respond to encodeDesign(). This will proxy to the paired
24
- designer, if there is one. If there is no paired designer, returns NO.
23
+ Patch `SC.Object` to respond to `encodeDesign()`. This will proxy to the
24
+ paired designer, if there is one. If there is no paired designer, returns
25
+ `NO`.
25
26
  */
26
27
  SC.Object.prototype.encodeDesign = function(coder) {
27
28
  return this.designer ? this.designer.encodeDesign(coder) : NO ;
@@ -7,7 +7,7 @@
7
7
 
8
8
 
9
9
  /**
10
- Extend SC.Page to emit a design document for the entire page.
10
+ Extend `SC.Page` to emit a design document for the entire page.
11
11
  */
12
12
  SC.Page.prototype.emitDesign = function() {
13
13
 
@@ -30,7 +30,7 @@ SC.Page.prototype.emitDesign = function() {
30
30
  };
31
31
 
32
32
  /**
33
- Extend SC.Page to create a PageDesignController on demand.
33
+ Extend `SC.Page` to create a `PageDesignController` on demand.
34
34
 
35
35
  @property {SC.PageDesignController}
36
36
  */
@@ -9,7 +9,7 @@
9
9
  /*jslint evil:true */
10
10
 
11
11
  /**
12
- Extend SC.View with emitDesign() which will encode the view and all of its
12
+ Extend `SC.View` with `emitDesign()` which will encode the view and all of its
13
13
  subviews then computes an empty element to attach to the design.
14
14
  */
15
15
  SC.View.prototype.emitDesign = function() {
@@ -21,8 +21,9 @@ SC.View.prototype.emitDesign = function() {
21
21
  };
22
22
 
23
23
  /**
24
- Patch SC.View to respond to encodeDesign(). This will proxy to the paired
25
- designer, if there is one. If there is no paired designer, returns NO.
24
+ Patch `SC.View` to respond to `encodeDesign()`. This will proxy to the
25
+ paired designer, if there is one. If there is no paired designer, returns
26
+ `NO`.
26
27
  */
27
28
  SC.View.prototype.encodeDesign = function(coder) {
28
29
  return this.designer ? this.designer.encodeDesign(coder) : NO ;
@@ -39,8 +39,8 @@ SC.SnapLines = {
39
39
 
40
40
  /*
41
41
  This method will setup the datastructure required to draw snap lines
42
- it should be called in dragStarted if using with an SC.Drag or on mouseDown
43
- if using it with a move
42
+ it should be called in dragStarted if using with an `SC.Drag` or on
43
+ `mouseDown` if using it with a move
44
44
 
45
45
  @param {Array} ignoreViews array of views to not include
46
46
  sets up the data structure used for the line drawing
@@ -121,9 +121,9 @@ SC.SnapLines = {
121
121
 
122
122
  /**
123
123
  This method will check the passed views position with the other child views
124
- and draw any lines. It should be called in dragUpdated if using SC.Drag
125
- or in mouseMoved if using a move. it will also return a hash of the snapped coords
126
- in local and global coodinates
124
+ and draw any lines. It should be called in `dragUpdated` if using `SC.Drag`
125
+ or in `mouseMoved` if using a move. it will also return a hash of the
126
+ snapped coords in local and global coodinates
127
127
 
128
128
  */
129
129
  drawLines: function(view, eventX, eventY, mouseDownX, mouseDownY){
@@ -200,7 +200,8 @@ SC.SnapLines = {
200
200
 
201
201
  /*
202
202
  called to cleanup the lines...
203
- This method should be called in mouseUp if doing a move and in dragEnded if using a SC.Drag
203
+ This method should be called in `mouseUp` if doing a move and in
204
+ `dragEnded` if using a `SC.Drag`.
204
205
  */
205
206
  removeLines: function() {
206
207
  this._xPositions = null;
@@ -92,12 +92,12 @@ SC.DesignerDropTarget = SC.ContainerView.extend(
92
92
  Called to actually perform the drag operation.
93
93
 
94
94
  Overide this method to actually perform the drag operation. This method
95
- is only called if you returned YES in acceptDragOperation().
95
+ is only called if you returned `YES` in `acceptDragOperation()`.
96
96
 
97
- Return the operation that was actually performed or SC.DRAG_NONE if the
97
+ Return the operation that was actually performed or `SC.DRAG_NONE` if the
98
98
  operation was aborted.
99
99
 
100
- The default implementation returns SC.DRAG_NONE
100
+ The default implementation returns `SC.DRAG_NONE`
101
101
 
102
102
  @param {SC.Drag} drag The drag instance managing this drag
103
103
  @param {DragOp} op The proposed drag operation. A drag constant.
@@ -3,55 +3,62 @@
3
3
  This is a Drawing View:
4
4
  If you want to draw a new shape you can pass in the information:
5
5
  For a Line:
6
- {
7
- +shape: SC.LINE,
8
- +start: {x: 0, y: 0},
9
- +end: {x: 100, y: 100},
10
- ?style: {
11
- ?width: 5,
12
- ?color: 'orange' | '#FFA500' | 'rgb(255,165,0)' | 'rgba(255,165,0,1)'
13
- ?transparency: 0.2
6
+
7
+ {
8
+ +shape: SC.LINE,
9
+ +start: {x: 0, y: 0},
10
+ +end: {x: 100, y: 100},
11
+ ?style: {
12
+ ?width: 5,
13
+ ?color: 'orange' | '#FFA500' | 'rgb(255,165,0)' | 'rgba(255,165,0,1)'
14
+ ?transparency: 0.2
15
+ }
14
16
  }
15
- }
17
+
16
18
  For a Rectangle:
17
- {
18
- +shape: SC.RECT,
19
- +start: {x: 0, y: 0},
20
- +size: {width: 100, height: 100},
21
- ?type: SC.FILL | SC.STROKE
22
- ?style: {
23
- ?width: 5,
24
- ?color: 'orange' | '#FFA500' | 'rgb(255,165,0)' | 'rgba(255,165,0,1)'
25
- ?transparency: 0.2
19
+
20
+ {
21
+ +shape: SC.RECT,
22
+ +start: {x: 0, y: 0},
23
+ +size: {width: 100, height: 100},
24
+ ?type: SC.FILL | SC.STROKE
25
+ ?style: {
26
+ ?width: 5,
27
+ ?color: 'orange' | '#FFA500' | 'rgb(255,165,0)' | 'rgba(255,165,0,1)'
28
+ ?transparency: 0.2
29
+ }
26
30
  }
27
- }
31
+
28
32
  For a Circle:
29
- {
30
- +shape: SC.CIRCLE,
31
- +center: {x: 0, y: 0},
32
- +radius: 20,
33
- ?type: SC.FILL | SC.STROKE
34
- ?style: {
35
- ?width: 5,
36
- ?color: 'orange' | '#FFA500' | 'rgb(255,165,0)' | 'rgba(255,165,0,1)'
37
- ?transparency: 0.2
33
+
34
+ {
35
+ +shape: SC.CIRCLE,
36
+ +center: {x: 0, y: 0},
37
+ +radius: 20,
38
+ ?type: SC.FILL | SC.STROKE
39
+ ?style: {
40
+ ?width: 5,
41
+ ?color: 'orange' | '#FFA500' | 'rgb(255,165,0)' | 'rgba(255,165,0,1)'
42
+ ?transparency: 0.2
43
+ }
38
44
  }
39
- }
45
+
40
46
  For a Polygon:
41
- {
42
- +shape: SC.POLY
43
- +path: [
44
- +{x: 0, y: 0},
45
- +{x: 10, y: 10},
46
- ?{x: 0, y: 50}
47
- ],
48
- ?type: SC.FILL | SC.STROKE
49
- ?style: {
50
- ?width: 5,
51
- ?color: 'orange' | '#FFA500' | 'rgb(255,165,0)' | 'rgba(255,165,0,1)'
52
- ?transparency: 0.2
47
+
48
+ {
49
+ +shape: SC.POLY
50
+ +path: [
51
+ +{x: 0, y: 0},
52
+ +{x: 10, y: 10},
53
+ ?{x: 0, y: 50}
54
+ ],
55
+ ?type: SC.FILL | SC.STROKE
56
+ ?style: {
57
+ ?width: 5,
58
+ ?color: 'orange' | '#FFA500' | 'rgb(255,165,0)' | 'rgba(255,165,0,1)'
59
+ ?transparency: 0.2
60
+ }
53
61
  }
54
- }
55
62
 
56
63
  @author Evin Grano
57
64
  @extends SC.View
@@ -4,7 +4,7 @@
4
4
 
5
5
  /**
6
6
  This View is used by Greenhouse when application is in design mode
7
- It darkens the area around the rootDesigner
7
+ It darkens the area around the `rootDesigner`
8
8
  */
9
9
  SC.RootDesignerHighLightView = SC.View.extend(
10
10
  /** @scope SC.RootDesignerHighLight.prototype */ {