spade 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1990) hide show
  1. data/.gitignore +14 -0
  2. data/.gitmodules +15 -0
  3. data/.rspec +1 -0
  4. data/Buildfile +18 -0
  5. data/Gemfile +19 -0
  6. data/Gemfile.lock +34 -0
  7. data/README.md +148 -0
  8. data/Rakefile +9 -0
  9. data/bin/spade +7 -0
  10. data/examples/format-app/lib/hello.coffee +1 -0
  11. data/examples/format-app/lib/main.js +6 -0
  12. data/examples/format-app/package.json +10 -0
  13. data/examples/format-app/resources/README.txt +1 -0
  14. data/examples/format-app/resources/config.json +3 -0
  15. data/examples/path-test/lib/hello.js +1 -0
  16. data/examples/path-test/lib/main.js +1 -0
  17. data/examples/path-test/package.json +5 -0
  18. data/examples/sc-app/index.html +13 -0
  19. data/examples/sc-app/lib/main.js +24 -0
  20. data/examples/sc-app/package.json +8 -0
  21. data/examples/single-file.js +22 -0
  22. data/examples/todos/index.html +11 -0
  23. data/examples/todos/lib/main.js +10 -0
  24. data/examples/todos/lib/todos.js +93 -0
  25. data/examples/todos/package.json +10 -0
  26. data/examples/todos/resources/stylesheets/todos.css +162 -0
  27. data/examples/todos/resources/templates/todos.handlebars +31 -0
  28. data/examples/web-app/README.md +83 -0
  29. data/examples/web-app/index.html +12 -0
  30. data/examples/web-app/lib/main.js +3 -0
  31. data/examples/web-app/package.json +6 -0
  32. data/examples/web-app/tests.html +12 -0
  33. data/examples/web-app/tests/ct-example-test.js +39 -0
  34. data/examples/web-app/tests/qunit-test.js +23 -0
  35. data/lib/index.js +14 -0
  36. data/lib/node/loader.js +145 -0
  37. data/lib/node/sandbox.js +34 -0
  38. data/lib/spade.js +1099 -0
  39. data/lib/spade.rb +52 -0
  40. data/lib/spade/bundle.rb +156 -0
  41. data/lib/spade/cli.rb +14 -0
  42. data/lib/spade/cli/base.rb +325 -0
  43. data/lib/spade/cli/owner.rb +45 -0
  44. data/lib/spade/compiler.rb +34 -0
  45. data/lib/spade/console.rb +39 -0
  46. data/lib/spade/context.rb +116 -0
  47. data/lib/spade/credentials.rb +36 -0
  48. data/lib/spade/environment.rb +35 -0
  49. data/lib/spade/exports.rb +71 -0
  50. data/lib/spade/loader.rb +243 -0
  51. data/lib/spade/local.rb +53 -0
  52. data/lib/spade/package.rb +143 -0
  53. data/lib/spade/reactor.rb +159 -0
  54. data/lib/spade/remote.rb +75 -0
  55. data/lib/spade/repository.rb +18 -0
  56. data/lib/spade/server.rb +54 -0
  57. data/lib/spade/shell.rb +36 -0
  58. data/lib/spade/version.rb +3 -0
  59. data/package.json +27 -0
  60. data/packages/coffee-script/.gitignore +8 -0
  61. data/packages/coffee-script/.npmignore +11 -0
  62. data/packages/coffee-script/Cakefile +229 -0
  63. data/packages/coffee-script/LICENSE +22 -0
  64. data/packages/coffee-script/README +47 -0
  65. data/packages/coffee-script/Rakefile +78 -0
  66. data/packages/coffee-script/bin/cake +7 -0
  67. data/packages/coffee-script/bin/coffee +7 -0
  68. data/packages/coffee-script/documentation/coffee/aliases.coffee +11 -0
  69. data/packages/coffee-script/documentation/coffee/array_comprehensions.coffee +2 -0
  70. data/packages/coffee-script/documentation/coffee/block_comment.coffee +6 -0
  71. data/packages/coffee-script/documentation/coffee/cake_tasks.coffee +9 -0
  72. data/packages/coffee-script/documentation/coffee/classes.coffee +25 -0
  73. data/packages/coffee-script/documentation/coffee/comparisons.coffee +5 -0
  74. data/packages/coffee-script/documentation/coffee/conditionals.coffee +13 -0
  75. data/packages/coffee-script/documentation/coffee/default_args.coffee +8 -0
  76. data/packages/coffee-script/documentation/coffee/do.coffee +4 -0
  77. data/packages/coffee-script/documentation/coffee/embedded.coffee +5 -0
  78. data/packages/coffee-script/documentation/coffee/existence.coffee +10 -0
  79. data/packages/coffee-script/documentation/coffee/expressions.coffee +9 -0
  80. data/packages/coffee-script/documentation/coffee/expressions_assignment.coffee +3 -0
  81. data/packages/coffee-script/documentation/coffee/expressions_comprehension.coffee +3 -0
  82. data/packages/coffee-script/documentation/coffee/expressions_try.coffee +7 -0
  83. data/packages/coffee-script/documentation/coffee/fat_arrow.coffee +6 -0
  84. data/packages/coffee-script/documentation/coffee/functions.coffee +2 -0
  85. data/packages/coffee-script/documentation/coffee/heredocs.coffee +7 -0
  86. data/packages/coffee-script/documentation/coffee/heregexes.coffee +11 -0
  87. data/packages/coffee-script/documentation/coffee/interpolation.coffee +6 -0
  88. data/packages/coffee-script/documentation/coffee/multiple_return_values.coffee +7 -0
  89. data/packages/coffee-script/documentation/coffee/object_comprehensions.coffee +4 -0
  90. data/packages/coffee-script/documentation/coffee/object_extraction.coffee +13 -0
  91. data/packages/coffee-script/documentation/coffee/objects_and_arrays.coffee +19 -0
  92. data/packages/coffee-script/documentation/coffee/objects_reserved.coffee +5 -0
  93. data/packages/coffee-script/documentation/coffee/overview.coffee +28 -0
  94. data/packages/coffee-script/documentation/coffee/parallel_assignment.coffee +6 -0
  95. data/packages/coffee-script/documentation/coffee/patterns_and_splats.coffee +7 -0
  96. data/packages/coffee-script/documentation/coffee/prototypes.coffee +3 -0
  97. data/packages/coffee-script/documentation/coffee/range_comprehensions.coffee +2 -0
  98. data/packages/coffee-script/documentation/coffee/scope.coffee +5 -0
  99. data/packages/coffee-script/documentation/coffee/slices.coffee +7 -0
  100. data/packages/coffee-script/documentation/coffee/soaks.coffee +1 -0
  101. data/packages/coffee-script/documentation/coffee/splats.coffee +27 -0
  102. data/packages/coffee-script/documentation/coffee/splices.coffee +5 -0
  103. data/packages/coffee-script/documentation/coffee/strings.coffee +8 -0
  104. data/packages/coffee-script/documentation/coffee/switch.coffee +10 -0
  105. data/packages/coffee-script/documentation/coffee/try.coffee +8 -0
  106. data/packages/coffee-script/documentation/coffee/while.coffee +10 -0
  107. data/packages/coffee-script/documentation/css/docs.css +374 -0
  108. data/packages/coffee-script/documentation/css/idle.css +64 -0
  109. data/packages/coffee-script/documentation/docs/browser.html +25 -0
  110. data/packages/coffee-script/documentation/docs/cake.html +43 -0
  111. data/packages/coffee-script/documentation/docs/coffee-script.html +51 -0
  112. data/packages/coffee-script/documentation/docs/command.html +161 -0
  113. data/packages/coffee-script/documentation/docs/docco.css +186 -0
  114. data/packages/coffee-script/documentation/docs/grammar.html +399 -0
  115. data/packages/coffee-script/documentation/docs/helpers.html +31 -0
  116. data/packages/coffee-script/documentation/docs/index.html +3 -0
  117. data/packages/coffee-script/documentation/docs/lexer.html +490 -0
  118. data/packages/coffee-script/documentation/docs/nodes.html +1338 -0
  119. data/packages/coffee-script/documentation/docs/optparse.html +78 -0
  120. data/packages/coffee-script/documentation/docs/repl.html +24 -0
  121. data/packages/coffee-script/documentation/docs/rewriter.html +251 -0
  122. data/packages/coffee-script/documentation/docs/scope.html +54 -0
  123. data/packages/coffee-script/documentation/docs/underscore.html +295 -0
  124. data/packages/coffee-script/documentation/images/background.png +0 -0
  125. data/packages/coffee-script/documentation/images/banding.png +0 -0
  126. data/packages/coffee-script/documentation/images/button_bg.png +0 -0
  127. data/packages/coffee-script/documentation/images/button_bg_dark.gif +0 -0
  128. data/packages/coffee-script/documentation/images/button_bg_green.gif +0 -0
  129. data/packages/coffee-script/documentation/images/favicon.ico +0 -0
  130. data/packages/coffee-script/documentation/images/logo.png +0 -0
  131. data/packages/coffee-script/documentation/images/screenshadow.png +0 -0
  132. data/packages/coffee-script/documentation/index.html.erb +1607 -0
  133. data/packages/coffee-script/documentation/js/aliases.js +17 -0
  134. data/packages/coffee-script/documentation/js/array_comprehensions.js +6 -0
  135. data/packages/coffee-script/documentation/js/block_comment.js +4 -0
  136. data/packages/coffee-script/documentation/js/cake_tasks.js +10 -0
  137. data/packages/coffee-script/documentation/js/classes.js +44 -0
  138. data/packages/coffee-script/documentation/js/comparisons.js +3 -0
  139. data/packages/coffee-script/documentation/js/conditionals.js +12 -0
  140. data/packages/coffee-script/documentation/js/default_args.js +7 -0
  141. data/packages/coffee-script/documentation/js/do.js +10 -0
  142. data/packages/coffee-script/documentation/js/embedded.js +4 -0
  143. data/packages/coffee-script/documentation/js/existence.js +6 -0
  144. data/packages/coffee-script/documentation/js/expressions.js +15 -0
  145. data/packages/coffee-script/documentation/js/expressions_assignment.js +2 -0
  146. data/packages/coffee-script/documentation/js/expressions_comprehension.js +9 -0
  147. data/packages/coffee-script/documentation/js/expressions_try.js +7 -0
  148. data/packages/coffee-script/documentation/js/fat_arrow.js +9 -0
  149. data/packages/coffee-script/documentation/js/functions.js +7 -0
  150. data/packages/coffee-script/documentation/js/heredocs.js +2 -0
  151. data/packages/coffee-script/documentation/js/heregexes.js +2 -0
  152. data/packages/coffee-script/documentation/js/interpolation.js +4 -0
  153. data/packages/coffee-script/documentation/js/multiple_return_values.js +5 -0
  154. data/packages/coffee-script/documentation/js/object_comprehensions.js +15 -0
  155. data/packages/coffee-script/documentation/js/object_extraction.js +10 -0
  156. data/packages/coffee-script/documentation/js/objects_and_arrays.js +17 -0
  157. data/packages/coffee-script/documentation/js/objects_reserved.js +4 -0
  158. data/packages/coffee-script/documentation/js/overview.js +35 -0
  159. data/packages/coffee-script/documentation/js/parallel_assignment.js +4 -0
  160. data/packages/coffee-script/documentation/js/patterns_and_splats.js +4 -0
  161. data/packages/coffee-script/documentation/js/prototypes.js +3 -0
  162. data/packages/coffee-script/documentation/js/range_comprehensions.js +9 -0
  163. data/packages/coffee-script/documentation/js/scope.js +8 -0
  164. data/packages/coffee-script/documentation/js/slices.js +4 -0
  165. data/packages/coffee-script/documentation/js/soaks.js +2 -0
  166. data/packages/coffee-script/documentation/js/splats.js +15 -0
  167. data/packages/coffee-script/documentation/js/splices.js +3 -0
  168. data/packages/coffee-script/documentation/js/strings.js +2 -0
  169. data/packages/coffee-script/documentation/js/switch.js +23 -0
  170. data/packages/coffee-script/documentation/js/try.js +8 -0
  171. data/packages/coffee-script/documentation/js/while.js +18 -0
  172. data/packages/coffee-script/documentation/vendor/jquery-1.4.2.js +6240 -0
  173. data/packages/coffee-script/examples/beautiful_code/binary_search.coffee +16 -0
  174. data/packages/coffee-script/examples/beautiful_code/quicksort_runtime.coffee +13 -0
  175. data/packages/coffee-script/examples/beautiful_code/regular_expression_matcher.coffee +34 -0
  176. data/packages/coffee-script/examples/blocks.coffee +54 -0
  177. data/packages/coffee-script/examples/code.coffee +167 -0
  178. data/packages/coffee-script/examples/computer_science/README +4 -0
  179. data/packages/coffee-script/examples/computer_science/binary_search.coffee +25 -0
  180. data/packages/coffee-script/examples/computer_science/bubble_sort.coffee +11 -0
  181. data/packages/coffee-script/examples/computer_science/linked_list.coffee +108 -0
  182. data/packages/coffee-script/examples/computer_science/luhn_algorithm.coffee +36 -0
  183. data/packages/coffee-script/examples/computer_science/merge_sort.coffee +19 -0
  184. data/packages/coffee-script/examples/computer_science/selection_sort.coffee +23 -0
  185. data/packages/coffee-script/examples/poignant.coffee +181 -0
  186. data/packages/coffee-script/examples/potion.coffee +206 -0
  187. data/packages/coffee-script/examples/underscore.coffee +682 -0
  188. data/packages/coffee-script/examples/web_server.coffee +12 -0
  189. data/packages/coffee-script/extras/EXTRAS +7 -0
  190. data/packages/coffee-script/extras/coffee-script.js +8 -0
  191. data/packages/coffee-script/extras/jsl.conf +44 -0
  192. data/packages/coffee-script/index.html +2515 -0
  193. data/packages/coffee-script/lib/browser.js +52 -0
  194. data/packages/coffee-script/lib/cake.js +76 -0
  195. data/packages/coffee-script/lib/coffee-script.js +82 -0
  196. data/packages/coffee-script/lib/command.js +263 -0
  197. data/packages/coffee-script/lib/grammar.js +581 -0
  198. data/packages/coffee-script/lib/helpers.js +66 -0
  199. data/packages/coffee-script/lib/index.js +8 -0
  200. data/packages/coffee-script/lib/lexer.js +633 -0
  201. data/packages/coffee-script/lib/nodes.js +2165 -0
  202. data/packages/coffee-script/lib/optparse.js +111 -0
  203. data/packages/coffee-script/lib/parser.js +649 -0
  204. data/packages/coffee-script/lib/repl.js +42 -0
  205. data/packages/coffee-script/lib/rewriter.js +353 -0
  206. data/packages/coffee-script/lib/scope.js +120 -0
  207. data/packages/coffee-script/lib/spade-format.js +45 -0
  208. data/packages/coffee-script/package.json +26 -0
  209. data/packages/coffee-script/src/browser.coffee +43 -0
  210. data/packages/coffee-script/src/cake.coffee +69 -0
  211. data/packages/coffee-script/src/coffee-script.coffee +92 -0
  212. data/packages/coffee-script/src/command.coffee +214 -0
  213. data/packages/coffee-script/src/grammar.coffee +590 -0
  214. data/packages/coffee-script/src/helpers.coffee +56 -0
  215. data/packages/coffee-script/src/index.coffee +2 -0
  216. data/packages/coffee-script/src/lexer.coffee +653 -0
  217. data/packages/coffee-script/src/nodes.coffee +1754 -0
  218. data/packages/coffee-script/src/optparse.coffee +99 -0
  219. data/packages/coffee-script/src/repl.coffee +42 -0
  220. data/packages/coffee-script/src/rewriter.coffee +326 -0
  221. data/packages/coffee-script/src/scope.coffee +94 -0
  222. data/packages/coffee-script/test/arguments.coffee +127 -0
  223. data/packages/coffee-script/test/assignment.coffee +98 -0
  224. data/packages/coffee-script/test/break.coffee +18 -0
  225. data/packages/coffee-script/test/comments.coffee +201 -0
  226. data/packages/coffee-script/test/conditionals.coffee +181 -0
  227. data/packages/coffee-script/test/exception_handling.coffee +90 -0
  228. data/packages/coffee-script/test/helpers.coffee +96 -0
  229. data/packages/coffee-script/test/importing.coffee +18 -0
  230. data/packages/coffee-script/test/operators.coffee +225 -0
  231. data/packages/coffee-script/test/ranges_slices_and_splices.coffee +186 -0
  232. data/packages/coffee-script/test/regular_expressions.coffee +56 -0
  233. data/packages/coffee-script/test/test.html +123 -0
  234. data/packages/coffee-script/test/test_chaining.coffee +77 -0
  235. data/packages/coffee-script/test/test_classes.coffee +372 -0
  236. data/packages/coffee-script/test/test_compilation.coffee +26 -0
  237. data/packages/coffee-script/test/test_comprehensions.coffee +318 -0
  238. data/packages/coffee-script/test/test_existence.coffee +165 -0
  239. data/packages/coffee-script/test/test_functions.coffee +379 -0
  240. data/packages/coffee-script/test/test_heredocs.coffee +111 -0
  241. data/packages/coffee-script/test/test_literals.coffee +270 -0
  242. data/packages/coffee-script/test/test_option_parser.coffee +27 -0
  243. data/packages/coffee-script/test/test_pattern_matching.coffee +162 -0
  244. data/packages/coffee-script/test/test_returns.coffee +63 -0
  245. data/packages/coffee-script/test/test_splats.coffee +102 -0
  246. data/packages/coffee-script/test/test_strings.coffee +118 -0
  247. data/packages/coffee-script/test/test_switch.coffee +103 -0
  248. data/packages/coffee-script/test/test_while.coffee +71 -0
  249. data/packages/core-test/.gitignore +2 -0
  250. data/packages/core-test/Buildfile +15 -0
  251. data/packages/core-test/CHANGELOG.md +24 -0
  252. data/packages/core-test/__preamble__.js +34 -0
  253. data/packages/core-test/bin/cot +3 -0
  254. data/packages/core-test/lib/assert.js +306 -0
  255. data/packages/core-test/lib/cli.js +258 -0
  256. data/packages/core-test/lib/core.js +311 -0
  257. data/packages/core-test/lib/loggers/browser.js +390 -0
  258. data/packages/core-test/lib/loggers/console.js +235 -0
  259. data/packages/core-test/lib/loggers/default.js +272 -0
  260. data/packages/core-test/lib/loggers/dummy.js +168 -0
  261. data/packages/core-test/lib/main.js +22 -0
  262. data/packages/core-test/lib/private/jquery.js +6079 -0
  263. data/packages/core-test/lib/qunit.js +159 -0
  264. data/packages/core-test/lib/runner.js +65 -0
  265. data/packages/core-test/lib/spec.js +302 -0
  266. data/packages/core-test/lib/sync.js +64 -0
  267. data/packages/core-test/lib/system/dump.js +208 -0
  268. data/packages/core-test/lib/system/equiv.js +199 -0
  269. data/packages/core-test/lib/system/ext.js +62 -0
  270. data/packages/core-test/lib/system/module.js +162 -0
  271. data/packages/core-test/lib/system/plan.js +223 -0
  272. data/packages/core-test/lib/system/stub.js +98 -0
  273. data/packages/core-test/lib/system/test.js +373 -0
  274. data/packages/core-test/lib/test.js +69 -0
  275. data/packages/core-test/lib/utils.js +256 -0
  276. data/packages/core-test/package.json +10 -0
  277. data/packages/core-test/resources/additions.css +8 -0
  278. data/packages/core-test/resources/runner.css +177 -0
  279. data/packages/core-test/tests/apis/commonjs-test.js +102 -0
  280. data/packages/core-test/tests/apis/core-test.js +154 -0
  281. data/packages/core-test/tests/apis/qunit-test.js +244 -0
  282. data/packages/core-test/tests/apis/spec-test.js +344 -0
  283. data/packages/core-test/tests/system/equiv/qunit-test.js +1400 -0
  284. data/packages/core-test/tests/system/test/assert-test.js +86 -0
  285. data/packages/core-test/tests/system/test/error-test.js +62 -0
  286. data/packages/core-test/tests/system/test/schedule-test.js +210 -0
  287. data/packages/core-test/tests/utils/fmt-test.js +24 -0
  288. data/packages/handlebars/Gemfile +4 -0
  289. data/packages/handlebars/README.markdown +205 -0
  290. data/packages/handlebars/Rakefile +65 -0
  291. data/packages/handlebars/lib/handlebars.js +19 -0
  292. data/packages/handlebars/lib/handlebars/ast.js +88 -0
  293. data/packages/handlebars/lib/handlebars/compiler.js +116 -0
  294. data/packages/handlebars/lib/handlebars/debug.js +25 -0
  295. data/packages/handlebars/lib/handlebars/printer.js +114 -0
  296. data/packages/handlebars/lib/handlebars/runtime.js +280 -0
  297. data/packages/handlebars/lib/handlebars/utils.js +61 -0
  298. data/packages/handlebars/lib/handlebars/visitor.js +14 -0
  299. data/packages/handlebars/lib/handlebars/vm.js +634 -0
  300. data/packages/handlebars/spec/acceptance_spec.rb +100 -0
  301. data/packages/handlebars/spec/parser_spec.rb +181 -0
  302. data/packages/handlebars/spec/qunit_spec.js +497 -0
  303. data/packages/handlebars/spec/spec_helper.rb +107 -0
  304. data/packages/handlebars/spec/tokenizer_spec.rb +145 -0
  305. data/packages/handlebars/src/handlebars.l +27 -0
  306. data/packages/handlebars/src/handlebars.yy +79 -0
  307. data/packages/handlebars/test.js +56 -0
  308. data/packages/ivory/LICENSE.txt +1 -0
  309. data/packages/ivory/README.md +19 -0
  310. data/packages/ivory/lib/buffer.js +111 -0
  311. data/packages/ivory/lib/events.js +137 -0
  312. data/packages/ivory/lib/fs.js +266 -0
  313. data/packages/ivory/lib/main.js +13 -0
  314. data/packages/ivory/lib/path.js +158 -0
  315. data/packages/ivory/lib/ruby/buffer.rb +145 -0
  316. data/packages/ivory/lib/ruby/constants.rb +585 -0
  317. data/packages/ivory/lib/ruby/events.rb +32 -0
  318. data/packages/ivory/lib/ruby/fs.rb +245 -0
  319. data/packages/ivory/lib/ruby/process.rb +28 -0
  320. data/packages/ivory/lib/stream.js +115 -0
  321. data/packages/ivory/lib/util.js +414 -0
  322. data/packages/ivory/package.json +11 -0
  323. data/packages/jquery-core/lib/main.js +897 -0
  324. data/packages/jquery-core/package.json +9 -0
  325. data/packages/jquery/main.js +7179 -0
  326. data/packages/jquery/package.json +10 -0
  327. data/packages/json/lib/main.js +14 -0
  328. data/packages/json/package.json +8 -0
  329. data/packages/lproj/README.md +77 -0
  330. data/packages/lproj/examples/demo-app/en.lproj/localized.strings +2 -0
  331. data/packages/lproj/examples/demo-app/fr.lproj/localized.strings +3 -0
  332. data/packages/lproj/examples/demo-app/index.html +8 -0
  333. data/packages/lproj/examples/demo-app/lib/main.js +7 -0
  334. data/packages/lproj/examples/demo-app/package.json +9 -0
  335. data/packages/lproj/lib/main.js +78 -0
  336. data/packages/lproj/lib/strings-format.js +6 -0
  337. data/packages/lproj/package.json +9 -0
  338. data/packages/optparse/README.md +161 -0
  339. data/packages/optparse/TODO +1 -0
  340. data/packages/optparse/examples/browser-test.html +75 -0
  341. data/packages/optparse/examples/nodejs-test.js +90 -0
  342. data/packages/optparse/lib/optparse.js +309 -0
  343. data/packages/optparse/package.json +13 -0
  344. data/packages/optparse/seed.yml +5 -0
  345. data/packages/sproutcore-bootstrap/lib/main.js +11 -0
  346. data/packages/sproutcore-bootstrap/package.json +15 -0
  347. data/packages/sproutcore-corefoundation/lib/main.js +66 -0
  348. data/packages/sproutcore-corefoundation/lib/tests.js +74 -0
  349. data/packages/sproutcore-corefoundation/package.json +27 -0
  350. data/packages/sproutcore-corefoundation/tests.html +12 -0
  351. data/packages/sproutcore-datastore/lib/main.js +23 -0
  352. data/packages/sproutcore-datastore/package.json +16 -0
  353. data/packages/sproutcore-datetime/lib/main.js +6 -0
  354. data/packages/sproutcore-datetime/package.json +16 -0
  355. data/packages/sproutcore-handlebars/lib/handlebars.js +5 -0
  356. data/packages/sproutcore-handlebars/lib/main.js +15 -0
  357. data/packages/sproutcore-handlebars/package.json +17 -0
  358. data/packages/sproutcore-jquery/lib/main.js +10 -0
  359. data/packages/sproutcore-jquery/package.json +12 -0
  360. data/packages/sproutcore-preprocessor/bin/chance +64 -0
  361. data/packages/sproutcore-preprocessor/lib/css.js +21 -0
  362. data/packages/sproutcore-preprocessor/lib/main.js +1 -0
  363. data/packages/sproutcore-preprocessor/lib/preprocessor.js +12 -0
  364. data/packages/sproutcore-preprocessor/lib/sc_static.js +9 -0
  365. data/packages/sproutcore-preprocessor/package.json +18 -0
  366. data/packages/sproutcore-runtime/lib/main.js +37 -0
  367. data/packages/sproutcore-runtime/package.json +21 -0
  368. data/packages/text/lib/main.js +8 -0
  369. data/packages/text/package.json +9 -0
  370. data/packages/web-file/README.md +7 -0
  371. data/packages/web-file/lib/errors.js +32 -0
  372. data/packages/web-file/lib/file-reader.js +10 -0
  373. data/packages/web-file/lib/file-system.js +234 -0
  374. data/packages/web-file/lib/file-writer.js +10 -0
  375. data/packages/web-file/lib/file.js +9 -0
  376. data/packages/web-file/lib/main.js +34 -0
  377. data/packages/web-file/lib/platform.js +25 -0
  378. data/packages/web-file/lib/ruby/file.rb +252 -0
  379. data/packages/web-file/lib/ruby/file_reader.rb +69 -0
  380. data/packages/web-file/lib/ruby/file_system.rb +134 -0
  381. data/packages/web-file/lib/ruby/file_writer.rb +78 -0
  382. data/packages/web-file/package.json +12 -0
  383. data/packages/web-typed-array/README.md +7 -0
  384. data/packages/web-typed-array/lib/array-buffer-view.js +9 -0
  385. data/packages/web-typed-array/lib/array-buffer.js +7 -0
  386. data/packages/web-typed-array/lib/main.js +33 -0
  387. data/packages/web-typed-array/lib/platform.js +20 -0
  388. data/packages/web-typed-array/lib/ruby/array_buffer.rb +31 -0
  389. data/packages/web-typed-array/lib/ruby/array_buffer_view.rb +130 -0
  390. data/packages/web-typed-array/lib/ruby/typed_array.rb +133 -0
  391. data/packages/web-typed-array/lib/typed-array.js +26 -0
  392. data/packages/web-typed-array/package.json +9 -0
  393. data/spade.gemspec +30 -0
  394. data/spec/cli/build_spec.rb +59 -0
  395. data/spec/cli/install_spec.rb +106 -0
  396. data/spec/cli/installed_spec.rb +55 -0
  397. data/spec/cli/list_spec.rb +75 -0
  398. data/spec/cli/login_spec.rb +76 -0
  399. data/spec/cli/owner_spec.rb +115 -0
  400. data/spec/cli/push_spec.rb +74 -0
  401. data/spec/cli/uninstall_spec.rb +58 -0
  402. data/spec/cli/unpack_spec.rb +73 -0
  403. data/spec/credentials_spec.rb +24 -0
  404. data/spec/fixtures/coffee/bin/cake +0 -0
  405. data/spec/fixtures/coffee/bin/coffee +0 -0
  406. data/spec/fixtures/coffee/lib/coffee.js +0 -0
  407. data/spec/fixtures/coffee/lib/coffee.png +0 -0
  408. data/spec/fixtures/coffee/lib/coffee/base.js +0 -0
  409. data/spec/fixtures/coffee/lib/coffee/mocha/chai.js +0 -0
  410. data/spec/fixtures/coffee/qunit/coffee/test.js +0 -0
  411. data/spec/fixtures/coffee/qunit/test.js +0 -0
  412. data/spec/fixtures/coffee/qunit/test.log +0 -0
  413. data/spec/fixtures/package.json +25 -0
  414. data/spec/gauntlet_spec.rb +30 -0
  415. data/spec/javascript/async-test.js +123 -0
  416. data/spec/javascript/compiler/javascript.js +13 -0
  417. data/spec/javascript/compiler/ruby.js +14 -0
  418. data/spec/javascript/loader-test.js +64 -0
  419. data/spec/javascript/normalize-test.js +59 -0
  420. data/spec/javascript/packages-test.js +44 -0
  421. data/spec/javascript/relative-require-test.js +72 -0
  422. data/spec/javascript/require-test.js +56 -0
  423. data/spec/javascript/sandbox/compile.js +37 -0
  424. data/spec/javascript/sandbox/creation.js +44 -0
  425. data/spec/javascript/sandbox/format.js +79 -0
  426. data/spec/javascript/sandbox/misc.js +57 -0
  427. data/spec/javascript/sandbox/preprocessor.js +81 -0
  428. data/spec/javascript/sandbox/require.js +48 -0
  429. data/spec/javascript/sandbox/run-command.js +21 -0
  430. data/spec/javascript/spade/externs.js +14 -0
  431. data/spec/javascript/spade/load-factory.js +15 -0
  432. data/spec/javascript/spade/misc.js +23 -0
  433. data/spec/javascript/spade/ready.js +12 -0
  434. data/spec/javascript/spade/register.js +13 -0
  435. data/spec/javascript_spec.rb +7 -0
  436. data/spec/package_spec.rb +257 -0
  437. data/spec/spec_helper.rb +30 -0
  438. data/spec/support/cli.rb +94 -0
  439. data/spec/support/core_test.rb +52 -0
  440. data/spec/support/fake.rb +42 -0
  441. data/spec/support/fake_gem_server.rb +50 -0
  442. data/spec/support/fake_gemcutter.rb +29 -0
  443. data/spec/support/matchers.rb +31 -0
  444. data/spec/support/path.rb +54 -0
  445. data/sproutcore/.gitignore +13 -0
  446. data/sproutcore/Buildfile +112 -0
  447. data/sproutcore/CHANGELOG.md +232 -0
  448. data/sproutcore/README.md +68 -0
  449. data/sproutcore/apps/docs/core.js +27 -0
  450. data/sproutcore/apps/docs/design/Doc Viewer.graffle/QuickLook/Preview.pdf +0 -0
  451. data/sproutcore/apps/docs/design/Doc Viewer.graffle/QuickLook/Thumbnail.tiff +0 -0
  452. data/sproutcore/apps/docs/design/Doc Viewer.graffle/data.plist +14378 -0
  453. data/sproutcore/apps/docs/design/Doc Viewer.graffle/image10.png +0 -0
  454. data/sproutcore/apps/docs/design/Doc Viewer.graffle/image11.png +0 -0
  455. data/sproutcore/apps/docs/design/Doc Viewer.graffle/image13.png +0 -0
  456. data/sproutcore/apps/docs/design/Doc Viewer.graffle/image14.png +0 -0
  457. data/sproutcore/apps/docs/design/Doc Viewer.graffle/image8.png +0 -0
  458. data/sproutcore/apps/docs/design/Doc Viewer.graffle/image9.tiff +0 -0
  459. data/sproutcore/apps/docs/english.lproj/loading.rhtml +9 -0
  460. data/sproutcore/apps/docs/english.lproj/main_page.js +22 -0
  461. data/sproutcore/apps/docs/english.lproj/strings.js +15 -0
  462. data/sproutcore/apps/docs/main.js +30 -0
  463. data/sproutcore/apps/greenhouse/README +18 -0
  464. data/sproutcore/apps/greenhouse/TODO +56 -0
  465. data/sproutcore/apps/greenhouse/beautify.js +1058 -0
  466. data/sproutcore/apps/greenhouse/controllers/design.js +20 -0
  467. data/sproutcore/apps/greenhouse/controllers/file.js +35 -0
  468. data/sproutcore/apps/greenhouse/controllers/files.js +40 -0
  469. data/sproutcore/apps/greenhouse/controllers/layout.js +53 -0
  470. data/sproutcore/apps/greenhouse/controllers/library.js +194 -0
  471. data/sproutcore/apps/greenhouse/controllers/page.js +18 -0
  472. data/sproutcore/apps/greenhouse/controllers/property.js +19 -0
  473. data/sproutcore/apps/greenhouse/controllers/property_editor.js +17 -0
  474. data/sproutcore/apps/greenhouse/controllers/target.js +20 -0
  475. data/sproutcore/apps/greenhouse/controllers/targets.js +43 -0
  476. data/sproutcore/apps/greenhouse/controllers/view_configs.js +100 -0
  477. data/sproutcore/apps/greenhouse/core.js +65 -0
  478. data/sproutcore/apps/greenhouse/core_file.js +124 -0
  479. data/sproutcore/apps/greenhouse/data_source.js +250 -0
  480. data/sproutcore/apps/greenhouse/english.lproj/app_page.js +399 -0
  481. data/sproutcore/apps/greenhouse/english.lproj/css/app-selector.css +107 -0
  482. data/sproutcore/apps/greenhouse/english.lproj/css/button.css +314 -0
  483. data/sproutcore/apps/greenhouse/english.lproj/css/dock.css +90 -0
  484. data/sproutcore/apps/greenhouse/english.lproj/css/general.css +51 -0
  485. data/sproutcore/apps/greenhouse/english.lproj/css/main-page.css +93 -0
  486. data/sproutcore/apps/greenhouse/english.lproj/css/menu.css +49 -0
  487. data/sproutcore/apps/greenhouse/english.lproj/css/modal.css +41 -0
  488. data/sproutcore/apps/greenhouse/english.lproj/css/picker.css +195 -0
  489. data/sproutcore/apps/greenhouse/english.lproj/css/search.css +60 -0
  490. data/sproutcore/apps/greenhouse/english.lproj/css/text-field.css +67 -0
  491. data/sproutcore/apps/greenhouse/english.lproj/dialogs.js +303 -0
  492. data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.eot +0 -0
  493. data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.otf +0 -0
  494. data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500.woff +0 -0
  495. data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.eot +0 -0
  496. data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.otf +0 -0
  497. data/sproutcore/apps/greenhouse/english.lproj/fonts/museosans_500_italic.woff +0 -0
  498. data/sproutcore/apps/greenhouse/english.lproj/images/app-selector/choose-app.png +0 -0
  499. data/sproutcore/apps/greenhouse/english.lproj/images/app-selector/list-item-sel.png +0 -0
  500. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-l.png +0 -0
  501. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-m.png +0 -0
  502. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/active-r.png +0 -0
  503. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-l.png +0 -0
  504. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-m.png +0 -0
  505. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule-xl/regular-r.png +0 -0
  506. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/active-l.png +0 -0
  507. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/active-r.png +0 -0
  508. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-l.png +0 -0
  509. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/disabled-r.png +0 -0
  510. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/regular-l.png +0 -0
  511. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/regular-r.png +0 -0
  512. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-l.png +0 -0
  513. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-active-r.png +0 -0
  514. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-l.png +0 -0
  515. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-disabled-r.png +0 -0
  516. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-l.png +0 -0
  517. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/capsule/sel-r.png +0 -0
  518. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-l.png +0 -0
  519. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-m.png +0 -0
  520. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/active-r.png +0 -0
  521. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-l.png +0 -0
  522. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-active-r.png +0 -0
  523. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-l.png +0 -0
  524. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-r.png +0 -0
  525. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-l.png +0 -0
  526. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-active-r.png +0 -0
  527. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-l.png +0 -0
  528. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/cap-sel-r.png +0 -0
  529. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-l.png +0 -0
  530. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-m.png +0 -0
  531. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/disabled-r.png +0 -0
  532. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-l.png +0 -0
  533. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-m.png +0 -0
  534. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/regular-r.png +0 -0
  535. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-l.png +0 -0
  536. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-m.png +0 -0
  537. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-active-r.png +0 -0
  538. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-l.png +0 -0
  539. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-m.png +0 -0
  540. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-disabled-r.png +0 -0
  541. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-l.png +0 -0
  542. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-m.png +0 -0
  543. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/dark/sel-r.png +0 -0
  544. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/active-m.png +0 -0
  545. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/disabled-m.png +0 -0
  546. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/regular-m.png +0 -0
  547. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-active-m.png +0 -0
  548. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-disabled-m.png +0 -0
  549. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/shared/sel-m.png +0 -0
  550. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/active-l.png +0 -0
  551. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/active-r.png +0 -0
  552. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/disabled-l.png +0 -0
  553. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/disabled-r.png +0 -0
  554. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/regular-l.png +0 -0
  555. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/regular-r.png +0 -0
  556. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-active-l.png +0 -0
  557. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-active-r.png +0 -0
  558. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-l.png +0 -0
  559. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-disabled-r.png +0 -0
  560. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-l.png +0 -0
  561. data/sproutcore/apps/greenhouse/english.lproj/images/buttons/square/sel-r.png +0 -0
  562. data/sproutcore/apps/greenhouse/english.lproj/images/icons/actions-active.png +0 -0
  563. data/sproutcore/apps/greenhouse/english.lproj/images/icons/actions.png +0 -0
  564. data/sproutcore/apps/greenhouse/english.lproj/images/icons/inspector-active.png +0 -0
  565. data/sproutcore/apps/greenhouse/english.lproj/images/icons/inspector.png +0 -0
  566. data/sproutcore/apps/greenhouse/english.lproj/images/icons/library-active.png +0 -0
  567. data/sproutcore/apps/greenhouse/english.lproj/images/icons/library.png +0 -0
  568. data/sproutcore/apps/greenhouse/english.lproj/images/icons/projects-active.png +0 -0
  569. data/sproutcore/apps/greenhouse/english.lproj/images/icons/projects.png +0 -0
  570. data/sproutcore/apps/greenhouse/english.lproj/images/icons/run-active.png +0 -0
  571. data/sproutcore/apps/greenhouse/english.lproj/images/icons/run.png +0 -0
  572. data/sproutcore/apps/greenhouse/english.lproj/images/icons/save-active.png +0 -0
  573. data/sproutcore/apps/greenhouse/english.lproj/images/icons/save.png +0 -0
  574. data/sproutcore/apps/greenhouse/english.lproj/images/logos/greenhouse-l.png +0 -0
  575. data/sproutcore/apps/greenhouse/english.lproj/images/logos/greenhouse-s.png +0 -0
  576. data/sproutcore/apps/greenhouse/english.lproj/images/logos/sproutcore.png +0 -0
  577. data/sproutcore/apps/greenhouse/english.lproj/images/main-bg.png +0 -0
  578. data/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom-left.png +0 -0
  579. data/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom-right.png +0 -0
  580. data/sproutcore/apps/greenhouse/english.lproj/images/picker/bottom.png +0 -0
  581. data/sproutcore/apps/greenhouse/english.lproj/images/picker/close-active.png +0 -0
  582. data/sproutcore/apps/greenhouse/english.lproj/images/picker/close.png +0 -0
  583. data/sproutcore/apps/greenhouse/english.lproj/images/picker/left.png +0 -0
  584. data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-bottom.png +0 -0
  585. data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-left.png +0 -0
  586. data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-right.png +0 -0
  587. data/sproutcore/apps/greenhouse/english.lproj/images/picker/pointer-top.png +0 -0
  588. data/sproutcore/apps/greenhouse/english.lproj/images/picker/right.png +0 -0
  589. data/sproutcore/apps/greenhouse/english.lproj/images/picker/search-active.png +0 -0
  590. data/sproutcore/apps/greenhouse/english.lproj/images/picker/search.png +0 -0
  591. data/sproutcore/apps/greenhouse/english.lproj/images/picker/top-left.png +0 -0
  592. data/sproutcore/apps/greenhouse/english.lproj/images/picker/top-right.png +0 -0
  593. data/sproutcore/apps/greenhouse/english.lproj/images/picker/top.png +0 -0
  594. data/sproutcore/apps/greenhouse/english.lproj/images/toolbar-bg.png +0 -0
  595. data/sproutcore/apps/greenhouse/english.lproj/inspectors.js +365 -0
  596. data/sproutcore/apps/greenhouse/english.lproj/loading.rhtml +9 -0
  597. data/sproutcore/apps/greenhouse/english.lproj/main_page.js +95 -0
  598. data/sproutcore/apps/greenhouse/english.lproj/strings.js +93 -0
  599. data/sproutcore/apps/greenhouse/fixtures/file.js +35 -0
  600. data/sproutcore/apps/greenhouse/main.js +28 -0
  601. data/sproutcore/apps/greenhouse/mixins/drop_down.js +97 -0
  602. data/sproutcore/apps/greenhouse/models/design.js +26 -0
  603. data/sproutcore/apps/greenhouse/models/dir.js +93 -0
  604. data/sproutcore/apps/greenhouse/models/file.js +51 -0
  605. data/sproutcore/apps/greenhouse/models/target.js +82 -0
  606. data/sproutcore/apps/greenhouse/models/view_config.js +49 -0
  607. data/sproutcore/apps/greenhouse/resources/test_page.js +37 -0
  608. data/sproutcore/apps/greenhouse/states/inspector.js +152 -0
  609. data/sproutcore/apps/greenhouse/states/library.js +142 -0
  610. data/sproutcore/apps/greenhouse/states/main.js +283 -0
  611. data/sproutcore/apps/greenhouse/states/modals.js +299 -0
  612. data/sproutcore/apps/greenhouse/states/ready.js +235 -0
  613. data/sproutcore/apps/greenhouse/tests/controllers/design.js +15 -0
  614. data/sproutcore/apps/greenhouse/tests/controllers/designs.js +15 -0
  615. data/sproutcore/apps/greenhouse/tests/controllers/file.js +15 -0
  616. data/sproutcore/apps/greenhouse/tests/controllers/files.js +15 -0
  617. data/sproutcore/apps/greenhouse/tests/models/file.js +15 -0
  618. data/sproutcore/apps/greenhouse/tests/models/view_config.js +15 -0
  619. data/sproutcore/apps/greenhouse/tests/views/list_item.js +16 -0
  620. data/sproutcore/apps/greenhouse/tests/views/plist_item.js +20 -0
  621. data/sproutcore/apps/greenhouse/theme.js +25 -0
  622. data/sproutcore/apps/greenhouse/views/anchor.js +277 -0
  623. data/sproutcore/apps/greenhouse/views/application_list_item.js +19 -0
  624. data/sproutcore/apps/greenhouse/views/event_blocker.js +32 -0
  625. data/sproutcore/apps/greenhouse/views/label_designer.js +16 -0
  626. data/sproutcore/apps/greenhouse/views/list_item.js +42 -0
  627. data/sproutcore/apps/greenhouse/views/plist_item.js +178 -0
  628. data/sproutcore/apps/greenhouse/views/simple_button.js +157 -0
  629. data/sproutcore/apps/greenhouse/views/tear_off_picker.js +56 -0
  630. data/sproutcore/apps/greenhouse/views/web.js +44 -0
  631. data/sproutcore/apps/test_controls/Buildfile +0 -0
  632. data/sproutcore/apps/test_controls/controllers/buttons.js +21 -0
  633. data/sproutcore/apps/test_controls/controllers/categories.js +108 -0
  634. data/sproutcore/apps/test_controls/controllers/category.js +36 -0
  635. data/sproutcore/apps/test_controls/core.js +29 -0
  636. data/sproutcore/apps/test_controls/main.js +14 -0
  637. data/sproutcore/apps/test_controls/resources/buttons_page.js +142 -0
  638. data/sproutcore/apps/test_controls/resources/checkboxes_page.js +45 -0
  639. data/sproutcore/apps/test_controls/resources/flow_layout_page.js +84 -0
  640. data/sproutcore/apps/test_controls/resources/list_page.js +40 -0
  641. data/sproutcore/apps/test_controls/resources/loading.rhtml +9 -0
  642. data/sproutcore/apps/test_controls/resources/main_page.css +60 -0
  643. data/sproutcore/apps/test_controls/resources/main_page.js +145 -0
  644. data/sproutcore/apps/test_controls/resources/progress_page.js +32 -0
  645. data/sproutcore/apps/test_controls/resources/radio_page.js +48 -0
  646. data/sproutcore/apps/test_controls/resources/scroll_page.js +76 -0
  647. data/sproutcore/apps/test_controls/resources/segmented_page.js +98 -0
  648. data/sproutcore/apps/test_controls/resources/select_page.js +60 -0
  649. data/sproutcore/apps/test_controls/resources/sliders_page.js +53 -0
  650. data/sproutcore/apps/test_controls/resources/strings.js +50 -0
  651. data/sproutcore/apps/test_controls/resources/tab_page.js +44 -0
  652. data/sproutcore/apps/test_controls/resources/text_field_page.js +41 -0
  653. data/sproutcore/apps/test_controls/theme.js +34 -0
  654. data/sproutcore/apps/tests/controllers/detail.js +25 -0
  655. data/sproutcore/apps/tests/controllers/source.js +29 -0
  656. data/sproutcore/apps/tests/controllers/target.js +26 -0
  657. data/sproutcore/apps/tests/controllers/targets.js +86 -0
  658. data/sproutcore/apps/tests/controllers/tests.js +33 -0
  659. data/sproutcore/apps/tests/core.js +133 -0
  660. data/sproutcore/apps/tests/english.lproj/loading.rhtml +9 -0
  661. data/sproutcore/apps/tests/english.lproj/main_page.css +48 -0
  662. data/sproutcore/apps/tests/english.lproj/main_page.js +233 -0
  663. data/sproutcore/apps/tests/english.lproj/strings.js +26 -0
  664. data/sproutcore/apps/tests/main.js +27 -0
  665. data/sproutcore/apps/tests/states/no_targets.js +26 -0
  666. data/sproutcore/apps/tests/states/ready.js +56 -0
  667. data/sproutcore/apps/tests/states/ready_detail.js +41 -0
  668. data/sproutcore/apps/tests/states/ready_empty.js +48 -0
  669. data/sproutcore/apps/tests/states/ready_list.js +41 -0
  670. data/sproutcore/apps/tests/states/ready_loading.js +44 -0
  671. data/sproutcore/apps/tests/states/ready_no_tests.js +31 -0
  672. data/sproutcore/apps/tests/states/start.js +39 -0
  673. data/sproutcore/apps/tests/tests/controllers/detail.js +15 -0
  674. data/sproutcore/apps/tests/tests/controllers/source.js +15 -0
  675. data/sproutcore/apps/tests/tests/controllers/target.js +15 -0
  676. data/sproutcore/apps/tests/tests/controllers/targets.js +15 -0
  677. data/sproutcore/apps/tests/tests/controllers/tests.js +15 -0
  678. data/sproutcore/apps/tests/tests/models/target.js +15 -0
  679. data/sproutcore/apps/tests/tests/models/test.js +15 -0
  680. data/sproutcore/apps/tests/tests/views/offset_checkbox.js +15 -0
  681. data/sproutcore/apps/tests/views/offset_checkbox.js +26 -0
  682. data/sproutcore/apps/welcome/controllers/targets.js +56 -0
  683. data/sproutcore/apps/welcome/core.js +30 -0
  684. data/sproutcore/apps/welcome/english.lproj/images/main-bg.png +0 -0
  685. data/sproutcore/apps/welcome/english.lproj/loading.rhtml +10 -0
  686. data/sproutcore/apps/welcome/english.lproj/main_page.css +25 -0
  687. data/sproutcore/apps/welcome/english.lproj/main_page.js +67 -0
  688. data/sproutcore/apps/welcome/english.lproj/strings.js +15 -0
  689. data/sproutcore/apps/welcome/main.js +19 -0
  690. data/sproutcore/apps/welcome/tests/controllers/targets.js +15 -0
  691. data/sproutcore/design/CollectionView State Charts.graffle +4848 -0
  692. data/sproutcore/design/Design Charts.graffle +16845 -0
  693. data/sproutcore/design/Record State Table.numbers +0 -0
  694. data/sproutcore/design/SproutCore Datastore Design.graffle/QuickLook/Preview.pdf +0 -0
  695. data/sproutcore/design/SproutCore Datastore Design.graffle/QuickLook/Thumbnail.tiff +0 -0
  696. data/sproutcore/design/SproutCore Datastore Design.graffle/data.plist +19588 -0
  697. data/sproutcore/design/SproutCore Datastore Design.graffle/image8.png +0 -0
  698. data/sproutcore/design/SproutCore Design Template.graffle/QuickLook/Preview.pdf +0 -0
  699. data/sproutcore/design/SproutCore Design Template.graffle/QuickLook/Thumbnail.tiff +0 -0
  700. data/sproutcore/design/SproutCore Design Template.graffle/data.plist +1452 -0
  701. data/sproutcore/design/SproutCore Design Template.graffle/image8.png +0 -0
  702. data/sproutcore/design/TestRunner Design.graffle/QuickLook/Preview.pdf +0 -0
  703. data/sproutcore/design/TestRunner Design.graffle/QuickLook/Thumbnail.tiff +0 -0
  704. data/sproutcore/design/TestRunner Design.graffle/data.plist +24187 -0
  705. data/sproutcore/design/TestRunner Design.graffle/image10.png +0 -0
  706. data/sproutcore/design/TestRunner Design.graffle/image11.png +0 -0
  707. data/sproutcore/design/TestRunner Design.graffle/image13.png +0 -0
  708. data/sproutcore/design/TestRunner Design.graffle/image15.png +0 -0
  709. data/sproutcore/design/TestRunner Design.graffle/image16.png +0 -0
  710. data/sproutcore/design/TestRunner Design.graffle/image17.png +0 -0
  711. data/sproutcore/design/TestRunner Design.graffle/image18.png +0 -0
  712. data/sproutcore/design/TestRunner Design.graffle/image19.png +0 -0
  713. data/sproutcore/design/TestRunner Design.graffle/image22.tiff +0 -0
  714. data/sproutcore/design/TestRunner Design.graffle/image23.png +0 -0
  715. data/sproutcore/design/TestRunner Design.graffle/image24.png +0 -0
  716. data/sproutcore/design/TestRunner Design.graffle/image25.png +0 -0
  717. data/sproutcore/design/TestRunner Design.graffle/image30.png +0 -0
  718. data/sproutcore/design/TestRunner Design.graffle/image31.png +0 -0
  719. data/sproutcore/design/TestRunner Design.graffle/image8.png +0 -0
  720. data/sproutcore/design/TestRunner Design.graffle/image9.png +0 -0
  721. data/sproutcore/design/greenhouse-statechart.graffle +9025 -0
  722. data/sproutcore/design/greenhouse-statechart.pdf +0 -0
  723. data/sproutcore/design/iphone-webapp-loading.psd +0 -0
  724. data/sproutcore/frameworks/animation/Buildfile +3 -0
  725. data/sproutcore/frameworks/animation/LICENSE +25 -0
  726. data/sproutcore/frameworks/animation/README.md +79 -0
  727. data/sproutcore/frameworks/animation/core.js +1206 -0
  728. data/sproutcore/frameworks/animation/tests/core.js +152 -0
  729. data/sproutcore/frameworks/bootstrap/README +9 -0
  730. data/sproutcore/frameworks/bootstrap/core.js +7 -0
  731. data/sproutcore/frameworks/bootstrap/setup_body_class_names.js +10 -0
  732. data/sproutcore/frameworks/bootstrap/system/bench.js +14 -0
  733. data/sproutcore/frameworks/bootstrap/system/browser.js +65 -0
  734. data/sproutcore/frameworks/bootstrap/system/loader.js +50 -0
  735. data/sproutcore/frameworks/bootstrap/tests/system/browser.js +187 -0
  736. data/sproutcore/frameworks/core_foundation/.greenhouseconf +33 -0
  737. data/sproutcore/frameworks/core_foundation/controllers/array.js +498 -0
  738. data/sproutcore/frameworks/core_foundation/controllers/controller.js +44 -0
  739. data/sproutcore/frameworks/core_foundation/controllers/object.js +342 -0
  740. data/sproutcore/frameworks/core_foundation/core.js +201 -0
  741. data/sproutcore/frameworks/core_foundation/ext/object.js +83 -0
  742. data/sproutcore/frameworks/core_foundation/ext/run_loop.js +163 -0
  743. data/sproutcore/frameworks/core_foundation/mixins/delegate_support.js +110 -0
  744. data/sproutcore/frameworks/core_foundation/mixins/responder_context.js +269 -0
  745. data/sproutcore/frameworks/core_foundation/mixins/selection_support.js +250 -0
  746. data/sproutcore/frameworks/core_foundation/mixins/string.js +163 -0
  747. data/sproutcore/frameworks/core_foundation/panes/keyboard.js +68 -0
  748. data/sproutcore/frameworks/core_foundation/panes/layout.js +108 -0
  749. data/sproutcore/frameworks/core_foundation/panes/main.js +52 -0
  750. data/sproutcore/frameworks/core_foundation/panes/manipulation.js +27 -0
  751. data/sproutcore/frameworks/core_foundation/panes/pane.js +672 -0
  752. data/sproutcore/frameworks/core_foundation/panes/template.js +24 -0
  753. data/sproutcore/frameworks/core_foundation/panes/visibility.js +11 -0
  754. data/sproutcore/frameworks/core_foundation/protocols/observable_protocol.js +40 -0
  755. data/sproutcore/frameworks/core_foundation/protocols/sparse_array_delegate.js +131 -0
  756. data/sproutcore/frameworks/core_foundation/resources/core.css +371 -0
  757. data/sproutcore/frameworks/core_foundation/resources/view.css +57 -0
  758. data/sproutcore/frameworks/core_foundation/system/application.js +35 -0
  759. data/sproutcore/frameworks/core_foundation/system/browser.js +36 -0
  760. data/sproutcore/frameworks/core_foundation/system/builder.js +210 -0
  761. data/sproutcore/frameworks/core_foundation/system/core_query.js +141 -0
  762. data/sproutcore/frameworks/core_foundation/system/cursor.js +131 -0
  763. data/sproutcore/frameworks/core_foundation/system/device.js +210 -0
  764. data/sproutcore/frameworks/core_foundation/system/event.js +914 -0
  765. data/sproutcore/frameworks/core_foundation/system/json.js +515 -0
  766. data/sproutcore/frameworks/core_foundation/system/locale.js +293 -0
  767. data/sproutcore/frameworks/core_foundation/system/page.js +108 -0
  768. data/sproutcore/frameworks/core_foundation/system/platform.js +399 -0
  769. data/sproutcore/frameworks/core_foundation/system/ready.js +77 -0
  770. data/sproutcore/frameworks/core_foundation/system/render_context.js +1063 -0
  771. data/sproutcore/frameworks/core_foundation/system/responder.js +124 -0
  772. data/sproutcore/frameworks/core_foundation/system/root_responder.js +2173 -0
  773. data/sproutcore/frameworks/core_foundation/system/selection_set.js +695 -0
  774. data/sproutcore/frameworks/core_foundation/system/sparse_array.js +393 -0
  775. data/sproutcore/frameworks/core_foundation/system/theme.js +316 -0
  776. data/sproutcore/frameworks/core_foundation/system/timer.js +553 -0
  777. data/sproutcore/frameworks/core_foundation/system/utils.js +151 -0
  778. data/sproutcore/frameworks/core_foundation/system/utils/rect.js +98 -0
  779. data/sproutcore/frameworks/core_foundation/tests/controllers/array/array_case.js +218 -0
  780. data/sproutcore/frameworks/core_foundation/tests/controllers/array/enum_case.js +206 -0
  781. data/sproutcore/frameworks/core_foundation/tests/controllers/array/null_case.js +64 -0
  782. data/sproutcore/frameworks/core_foundation/tests/controllers/array/selection_support.js +344 -0
  783. data/sproutcore/frameworks/core_foundation/tests/controllers/array/single_case.js +136 -0
  784. data/sproutcore/frameworks/core_foundation/tests/controllers/object/empty_case.js +82 -0
  785. data/sproutcore/frameworks/core_foundation/tests/controllers/object/multiple_case.js +111 -0
  786. data/sproutcore/frameworks/core_foundation/tests/controllers/object/single_case.js +193 -0
  787. data/sproutcore/frameworks/core_foundation/tests/controllers/object/single_enumerable_case.js +265 -0
  788. data/sproutcore/frameworks/core_foundation/tests/mixins/responder_context.js +75 -0
  789. data/sproutcore/frameworks/core_foundation/tests/mixins/string.js +55 -0
  790. data/sproutcore/frameworks/core_foundation/tests/panes/template.js +14 -0
  791. data/sproutcore/frameworks/core_foundation/tests/system/builder.js +42 -0
  792. data/sproutcore/frameworks/core_foundation/tests/system/core_query/within.js +65 -0
  793. data/sproutcore/frameworks/core_foundation/tests/system/json.js +14 -0
  794. data/sproutcore/frameworks/core_foundation/tests/system/locale.js +134 -0
  795. data/sproutcore/frameworks/core_foundation/tests/system/ready/done.js +32 -0
  796. data/sproutcore/frameworks/core_foundation/tests/system/render_context/begin.js +47 -0
  797. data/sproutcore/frameworks/core_foundation/tests/system/render_context/element.js +44 -0
  798. data/sproutcore/frameworks/core_foundation/tests/system/render_context/end.js +124 -0
  799. data/sproutcore/frameworks/core_foundation/tests/system/render_context/get.js +51 -0
  800. data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_attr.js +50 -0
  801. data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_basic.js +28 -0
  802. data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_className.js +177 -0
  803. data/sproutcore/frameworks/core_foundation/tests/system/render_context/helpers_style.js +109 -0
  804. data/sproutcore/frameworks/core_foundation/tests/system/render_context/init.js +55 -0
  805. data/sproutcore/frameworks/core_foundation/tests/system/render_context/join.js +28 -0
  806. data/sproutcore/frameworks/core_foundation/tests/system/render_context/push_text.js +74 -0
  807. data/sproutcore/frameworks/core_foundation/tests/system/render_context/tag.js +46 -0
  808. data/sproutcore/frameworks/core_foundation/tests/system/render_context/update.js +218 -0
  809. data/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeKeyPane.js +124 -0
  810. data/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMainPane.js +68 -0
  811. data/sproutcore/frameworks/core_foundation/tests/system/root_responder/makeMenuPane.js +48 -0
  812. data/sproutcore/frameworks/core_foundation/tests/system/root_responder/root_responder.js +101 -0
  813. data/sproutcore/frameworks/core_foundation/tests/system/root_responder/targetForAction.js +288 -0
  814. data/sproutcore/frameworks/core_foundation/tests/system/selection_set/add.js +92 -0
  815. data/sproutcore/frameworks/core_foundation/tests/system/selection_set/copy.js +17 -0
  816. data/sproutcore/frameworks/core_foundation/tests/system/selection_set/indexSetForSource.js +98 -0
  817. data/sproutcore/frameworks/core_foundation/tests/system/selection_set/isEqual.js +60 -0
  818. data/sproutcore/frameworks/core_foundation/tests/system/selection_set/remove.js +111 -0
  819. data/sproutcore/frameworks/core_foundation/tests/system/sparse_array.js +194 -0
  820. data/sproutcore/frameworks/core_foundation/tests/system/theme.js +77 -0
  821. data/sproutcore/frameworks/core_foundation/tests/system/timer/invalidate.js +38 -0
  822. data/sproutcore/frameworks/core_foundation/tests/system/timer/invokeLater.js +203 -0
  823. data/sproutcore/frameworks/core_foundation/tests/system/timer/isPaused.js +71 -0
  824. data/sproutcore/frameworks/core_foundation/tests/system/timer/performAction.js +69 -0
  825. data/sproutcore/frameworks/core_foundation/tests/system/timer/schedule.js +170 -0
  826. data/sproutcore/frameworks/core_foundation/tests/system/utils/normalizeURL.js +18 -0
  827. data/sproutcore/frameworks/core_foundation/tests/system/utils/offset.js +271 -0
  828. data/sproutcore/frameworks/core_foundation/tests/system/utils/rect.js +99 -0
  829. data/sproutcore/frameworks/core_foundation/tests/views/main_pane.js +43 -0
  830. data/sproutcore/frameworks/core_foundation/tests/views/pane/append_remove.js +218 -0
  831. data/sproutcore/frameworks/core_foundation/tests/views/pane/child_view.js +20 -0
  832. data/sproutcore/frameworks/core_foundation/tests/views/pane/firstResponder.js +148 -0
  833. data/sproutcore/frameworks/core_foundation/tests/views/pane/keyPane.js +133 -0
  834. data/sproutcore/frameworks/core_foundation/tests/views/pane/layout.js +31 -0
  835. data/sproutcore/frameworks/core_foundation/tests/views/pane/sendEvent.js +206 -0
  836. data/sproutcore/frameworks/core_foundation/tests/views/template/checkbox_support.js +32 -0
  837. data/sproutcore/frameworks/core_foundation/tests/views/template/text_field_support.js +73 -0
  838. data/sproutcore/frameworks/core_foundation/tests/views/template_view/collection.js +111 -0
  839. data/sproutcore/frameworks/core_foundation/tests/views/template_view/core.js +100 -0
  840. data/sproutcore/frameworks/core_foundation/tests/views/template_view/handlebars.js +580 -0
  841. data/sproutcore/frameworks/core_foundation/tests/views/view/animation.js +376 -0
  842. data/sproutcore/frameworks/core_foundation/tests/views/view/build.js +85 -0
  843. data/sproutcore/frameworks/core_foundation/tests/views/view/build_children.js +89 -0
  844. data/sproutcore/frameworks/core_foundation/tests/views/view/clippingFrame.js +117 -0
  845. data/sproutcore/frameworks/core_foundation/tests/views/view/convertFrames.js +248 -0
  846. data/sproutcore/frameworks/core_foundation/tests/views/view/convertLayouts.js +145 -0
  847. data/sproutcore/frameworks/core_foundation/tests/views/view/createChildViews.js +132 -0
  848. data/sproutcore/frameworks/core_foundation/tests/views/view/createLayer.js +97 -0
  849. data/sproutcore/frameworks/core_foundation/tests/views/view/destroyLayer.js +83 -0
  850. data/sproutcore/frameworks/core_foundation/tests/views/view/didAppendToDocument.js +51 -0
  851. data/sproutcore/frameworks/core_foundation/tests/views/view/findLayerInParentLayer.js +50 -0
  852. data/sproutcore/frameworks/core_foundation/tests/views/view/init.js +50 -0
  853. data/sproutcore/frameworks/core_foundation/tests/views/view/insertBefore.js +217 -0
  854. data/sproutcore/frameworks/core_foundation/tests/views/view/isVisible.js +79 -0
  855. data/sproutcore/frameworks/core_foundation/tests/views/view/isVisibleInWindow.js +116 -0
  856. data/sproutcore/frameworks/core_foundation/tests/views/view/keyboard.js +22 -0
  857. data/sproutcore/frameworks/core_foundation/tests/views/view/layer.js +150 -0
  858. data/sproutcore/frameworks/core_foundation/tests/views/view/layoutChildViews.js +162 -0
  859. data/sproutcore/frameworks/core_foundation/tests/views/view/layoutDidChange.js +180 -0
  860. data/sproutcore/frameworks/core_foundation/tests/views/view/layoutStyle.js +735 -0
  861. data/sproutcore/frameworks/core_foundation/tests/views/view/parentViewDidChange.js +67 -0
  862. data/sproutcore/frameworks/core_foundation/tests/views/view/prepareContext.js +203 -0
  863. data/sproutcore/frameworks/core_foundation/tests/views/view/removeChild.js +189 -0
  864. data/sproutcore/frameworks/core_foundation/tests/views/view/render.js +125 -0
  865. data/sproutcore/frameworks/core_foundation/tests/views/view/render_delegate_support.js +163 -0
  866. data/sproutcore/frameworks/core_foundation/tests/views/view/replaceChild.js +29 -0
  867. data/sproutcore/frameworks/core_foundation/tests/views/view/static_layout.js +21 -0
  868. data/sproutcore/frameworks/core_foundation/tests/views/view/theme.js +43 -0
  869. data/sproutcore/frameworks/core_foundation/tests/views/view/updateLayer.js +148 -0
  870. data/sproutcore/frameworks/core_foundation/tests/views/view/updateLayerLocation.js +213 -0
  871. data/sproutcore/frameworks/core_foundation/tests/views/view/view.js +64 -0
  872. data/sproutcore/frameworks/core_foundation/tests/views/view/viewDidResize.js +202 -0
  873. data/sproutcore/frameworks/core_foundation/views/template.js +77 -0
  874. data/sproutcore/frameworks/core_foundation/views/template/checkbox_support.js +20 -0
  875. data/sproutcore/frameworks/core_foundation/views/template/collection.js +106 -0
  876. data/sproutcore/frameworks/core_foundation/views/template/text_field_support.js +35 -0
  877. data/sproutcore/frameworks/core_foundation/views/view.js +1458 -0
  878. data/sproutcore/frameworks/core_foundation/views/view/animation.js +181 -0
  879. data/sproutcore/frameworks/core_foundation/views/view/base.js +1 -0
  880. data/sproutcore/frameworks/core_foundation/views/view/cursor.js +48 -0
  881. data/sproutcore/frameworks/core_foundation/views/view/enabled.js +57 -0
  882. data/sproutcore/frameworks/core_foundation/views/view/keyboard.js +223 -0
  883. data/sproutcore/frameworks/core_foundation/views/view/layout.js +1087 -0
  884. data/sproutcore/frameworks/core_foundation/views/view/layout_style.js +618 -0
  885. data/sproutcore/frameworks/core_foundation/views/view/manipulation.js +426 -0
  886. data/sproutcore/frameworks/core_foundation/views/view/theming.js +362 -0
  887. data/sproutcore/frameworks/core_foundation/views/view/touch.js +67 -0
  888. data/sproutcore/frameworks/core_foundation/views/view/visibility.js +118 -0
  889. data/sproutcore/frameworks/core_tools/core.js +20 -0
  890. data/sproutcore/frameworks/core_tools/data_source.js +99 -0
  891. data/sproutcore/frameworks/core_tools/english.lproj/strings.js +15 -0
  892. data/sproutcore/frameworks/core_tools/fixtures/target.js +87 -0
  893. data/sproutcore/frameworks/core_tools/fixtures/test.js +44 -0
  894. data/sproutcore/frameworks/core_tools/models/target.js +108 -0
  895. data/sproutcore/frameworks/core_tools/models/test.js +48 -0
  896. data/sproutcore/frameworks/datastore/core.js +8 -0
  897. data/sproutcore/frameworks/datastore/data_sources/cascade.js +180 -0
  898. data/sproutcore/frameworks/datastore/data_sources/data_source.js +583 -0
  899. data/sproutcore/frameworks/datastore/data_sources/fixtures.js +393 -0
  900. data/sproutcore/frameworks/datastore/debug/json.js +71 -0
  901. data/sproutcore/frameworks/datastore/debug/standard_setup.js +96 -0
  902. data/sproutcore/frameworks/datastore/fixtures/author_fixtures.js +2503 -0
  903. data/sproutcore/frameworks/datastore/fixtures/sample.js +17 -0
  904. data/sproutcore/frameworks/datastore/models/child_attribute.js +96 -0
  905. data/sproutcore/frameworks/datastore/models/children_attribute.js +75 -0
  906. data/sproutcore/frameworks/datastore/models/fetched_attribute.js +100 -0
  907. data/sproutcore/frameworks/datastore/models/many_attribute.js +154 -0
  908. data/sproutcore/frameworks/datastore/models/record.js +1318 -0
  909. data/sproutcore/frameworks/datastore/models/record_attribute.js +567 -0
  910. data/sproutcore/frameworks/datastore/models/single_attribute.js +159 -0
  911. data/sproutcore/frameworks/datastore/system/child_array.js +222 -0
  912. data/sproutcore/frameworks/datastore/system/many_array.js +418 -0
  913. data/sproutcore/frameworks/datastore/system/nested_store.js +609 -0
  914. data/sproutcore/frameworks/datastore/system/query.js +1599 -0
  915. data/sproutcore/frameworks/datastore/system/record_array.js +710 -0
  916. data/sproutcore/frameworks/datastore/system/store.js +2860 -0
  917. data/sproutcore/frameworks/datastore/tests/data_sources/cascade.js +133 -0
  918. data/sproutcore/frameworks/datastore/tests/data_sources/fixtures.js +122 -0
  919. data/sproutcore/frameworks/datastore/tests/integration/contact_model.js +131 -0
  920. data/sproutcore/frameworks/datastore/tests/integration/cyclical_relationship.js +119 -0
  921. data/sproutcore/frameworks/datastore/tests/integration/mail_model.js +91 -0
  922. data/sproutcore/frameworks/datastore/tests/integration/test_runner_model.js +56 -0
  923. data/sproutcore/frameworks/datastore/tests/models/datetime_recordattribute.js +73 -0
  924. data/sproutcore/frameworks/datastore/tests/models/many_attribute.js +423 -0
  925. data/sproutcore/frameworks/datastore/tests/models/nested_records/data_store.js +180 -0
  926. data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record.js +309 -0
  927. data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array.js +363 -0
  928. data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_array_complex.js +421 -0
  929. data/sproutcore/frameworks/datastore/tests/models/nested_records/nested_record_complex.js +304 -0
  930. data/sproutcore/frameworks/datastore/tests/models/record/core_methods.js +55 -0
  931. data/sproutcore/frameworks/datastore/tests/models/record/destroy.js +92 -0
  932. data/sproutcore/frameworks/datastore/tests/models/record/error_methods.js +56 -0
  933. data/sproutcore/frameworks/datastore/tests/models/record/normalize.js +336 -0
  934. data/sproutcore/frameworks/datastore/tests/models/record/readAttribute.js +53 -0
  935. data/sproutcore/frameworks/datastore/tests/models/record/refresh.js +48 -0
  936. data/sproutcore/frameworks/datastore/tests/models/record/storeDidChangeProperties.js +170 -0
  937. data/sproutcore/frameworks/datastore/tests/models/record/unknownProperty.js +66 -0
  938. data/sproutcore/frameworks/datastore/tests/models/record/writeAttribute.js +112 -0
  939. data/sproutcore/frameworks/datastore/tests/models/record_attribute.js +252 -0
  940. data/sproutcore/frameworks/datastore/tests/models/single_attribute.js +284 -0
  941. data/sproutcore/frameworks/datastore/tests/system/many_array/core_methods.js +204 -0
  942. data/sproutcore/frameworks/datastore/tests/system/nested_store/chain.js +180 -0
  943. data/sproutcore/frameworks/datastore/tests/system/nested_store/commitChanges.js +173 -0
  944. data/sproutcore/frameworks/datastore/tests/system/nested_store/commitChangesFromNestedStore.js +158 -0
  945. data/sproutcore/frameworks/datastore/tests/system/nested_store/core_methods.js +70 -0
  946. data/sproutcore/frameworks/datastore/tests/system/nested_store/dataHashDidChange.js +113 -0
  947. data/sproutcore/frameworks/datastore/tests/system/nested_store/discardChanges.js +102 -0
  948. data/sproutcore/frameworks/datastore/tests/system/nested_store/readDataHash.js +180 -0
  949. data/sproutcore/frameworks/datastore/tests/system/nested_store/readEditableDataHash.js +126 -0
  950. data/sproutcore/frameworks/datastore/tests/system/nested_store/removeDataHash.js +163 -0
  951. data/sproutcore/frameworks/datastore/tests/system/nested_store/writeDataHash.js +166 -0
  952. data/sproutcore/frameworks/datastore/tests/system/query/builders.js +219 -0
  953. data/sproutcore/frameworks/datastore/tests/system/query/compare.js +144 -0
  954. data/sproutcore/frameworks/datastore/tests/system/query/contains.js +131 -0
  955. data/sproutcore/frameworks/datastore/tests/system/query/containsRecordTypes.js +81 -0
  956. data/sproutcore/frameworks/datastore/tests/system/query/copy.js +30 -0
  957. data/sproutcore/frameworks/datastore/tests/system/query/evaluation.js +197 -0
  958. data/sproutcore/frameworks/datastore/tests/system/query/evaluation_of_records.js +92 -0
  959. data/sproutcore/frameworks/datastore/tests/system/query/expandedRecordTypes.js +64 -0
  960. data/sproutcore/frameworks/datastore/tests/system/query/parse.js +216 -0
  961. data/sproutcore/frameworks/datastore/tests/system/query/queryWithScope.js +57 -0
  962. data/sproutcore/frameworks/datastore/tests/system/query/record_type_is.js +47 -0
  963. data/sproutcore/frameworks/datastore/tests/system/query/registered_comparisons.js +70 -0
  964. data/sproutcore/frameworks/datastore/tests/system/query/registered_query_extensions.js +71 -0
  965. data/sproutcore/frameworks/datastore/tests/system/record_array/core_methods.js +177 -0
  966. data/sproutcore/frameworks/datastore/tests/system/record_array/error_methods.js +50 -0
  967. data/sproutcore/frameworks/datastore/tests/system/record_array/flush.js +214 -0
  968. data/sproutcore/frameworks/datastore/tests/system/store/cancelRecord.js +54 -0
  969. data/sproutcore/frameworks/datastore/tests/system/store/commitChangesFromNestedStore.js +137 -0
  970. data/sproutcore/frameworks/datastore/tests/system/store/commitRecord.js +221 -0
  971. data/sproutcore/frameworks/datastore/tests/system/store/core_methods.js +156 -0
  972. data/sproutcore/frameworks/datastore/tests/system/store/createRecord.js +76 -0
  973. data/sproutcore/frameworks/datastore/tests/system/store/dataHashDidChange.js +157 -0
  974. data/sproutcore/frameworks/datastore/tests/system/store/dataSourceCallbacks.js +278 -0
  975. data/sproutcore/frameworks/datastore/tests/system/store/destroyRecord.js +110 -0
  976. data/sproutcore/frameworks/datastore/tests/system/store/error_methods.js +62 -0
  977. data/sproutcore/frameworks/datastore/tests/system/store/find.js +530 -0
  978. data/sproutcore/frameworks/datastore/tests/system/store/init.js +23 -0
  979. data/sproutcore/frameworks/datastore/tests/system/store/loadRecord.js +64 -0
  980. data/sproutcore/frameworks/datastore/tests/system/store/pushChanges.js +61 -0
  981. data/sproutcore/frameworks/datastore/tests/system/store/readDataHash.js +74 -0
  982. data/sproutcore/frameworks/datastore/tests/system/store/readEditableDataHash.js +74 -0
  983. data/sproutcore/frameworks/datastore/tests/system/store/recordDidChange.js +76 -0
  984. data/sproutcore/frameworks/datastore/tests/system/store/removeDataHash.js +144 -0
  985. data/sproutcore/frameworks/datastore/tests/system/store/retrieveRecord.js +200 -0
  986. data/sproutcore/frameworks/datastore/tests/system/store/unloadRecords.js +41 -0
  987. data/sproutcore/frameworks/datastore/tests/system/store/writeDataHash.js +125 -0
  988. data/sproutcore/frameworks/datetime/resources/strings.js +14 -0
  989. data/sproutcore/frameworks/datetime/system/datetime.js +1111 -0
  990. data/sproutcore/frameworks/datetime/tests/system/datetime.js +383 -0
  991. data/sproutcore/frameworks/debug/core.js +114 -0
  992. data/sproutcore/frameworks/debug/invoke_once_last_debugging.js +259 -0
  993. data/sproutcore/frameworks/designer/coders/design.js +20 -0
  994. data/sproutcore/frameworks/designer/coders/object.js +347 -0
  995. data/sproutcore/frameworks/designer/controllers/controllers.js +16 -0
  996. data/sproutcore/frameworks/designer/controllers/design.js +37 -0
  997. data/sproutcore/frameworks/designer/controllers/designs.js +133 -0
  998. data/sproutcore/frameworks/designer/controllers/page_design.js +170 -0
  999. data/sproutcore/frameworks/designer/controllers/page_files.js +22 -0
  1000. data/sproutcore/frameworks/designer/core.js +26 -0
  1001. data/sproutcore/frameworks/designer/css/css_rule.js +22 -0
  1002. data/sproutcore/frameworks/designer/css/css_style.js +29 -0
  1003. data/sproutcore/frameworks/designer/css/css_style_sheet.js +201 -0
  1004. data/sproutcore/frameworks/designer/designers/button.js +21 -0
  1005. data/sproutcore/frameworks/designer/designers/label.js +16 -0
  1006. data/sproutcore/frameworks/designer/designers/object_designer.js +296 -0
  1007. data/sproutcore/frameworks/designer/designers/tab.js +18 -0
  1008. data/sproutcore/frameworks/designer/designers/text_field.js +15 -0
  1009. data/sproutcore/frameworks/designer/designers/view_designer.js +1267 -0
  1010. data/sproutcore/frameworks/designer/english.lproj/css/designer.css +96 -0
  1011. data/sproutcore/frameworks/designer/english.lproj/design_page.js +55 -0
  1012. data/sproutcore/frameworks/designer/english.lproj/high_light.css +10 -0
  1013. data/sproutcore/frameworks/designer/english.lproj/images/controller.png +0 -0
  1014. data/sproutcore/frameworks/designer/english.lproj/images/dock-bg.png +0 -0
  1015. data/sproutcore/frameworks/designer/english.lproj/images/dock-item-bg.png +0 -0
  1016. data/sproutcore/frameworks/designer/english.lproj/images/dock-item-divider.png +0 -0
  1017. data/sproutcore/frameworks/designer/english.lproj/images/dock-item-sel-bg.png +0 -0
  1018. data/sproutcore/frameworks/designer/english.lproj/images/dock-item-sel-divider.png +0 -0
  1019. data/sproutcore/frameworks/designer/english.lproj/images/main-bg.png +0 -0
  1020. data/sproutcore/frameworks/designer/english.lproj/images/page.png +0 -0
  1021. data/sproutcore/frameworks/designer/english.lproj/images/pane.png +0 -0
  1022. data/sproutcore/frameworks/designer/english.lproj/images/view.png +0 -0
  1023. data/sproutcore/frameworks/designer/english.lproj/selection_handles.css +58 -0
  1024. data/sproutcore/frameworks/designer/ext/binding.js +33 -0
  1025. data/sproutcore/frameworks/designer/ext/object.js +26 -0
  1026. data/sproutcore/frameworks/designer/ext/page.js +58 -0
  1027. data/sproutcore/frameworks/designer/ext/view.js +27 -0
  1028. data/sproutcore/frameworks/designer/mixins/button.js +11 -0
  1029. data/sproutcore/frameworks/designer/mixins/snap_lines.js +221 -0
  1030. data/sproutcore/frameworks/designer/tests/coders/page.js +54 -0
  1031. data/sproutcore/frameworks/designer/tests/designers/view_designer.js +47 -0
  1032. data/sproutcore/frameworks/designer/views/designer_drop_target.js +144 -0
  1033. data/sproutcore/frameworks/designer/views/drawing.js +219 -0
  1034. data/sproutcore/frameworks/designer/views/high_light.js +66 -0
  1035. data/sproutcore/frameworks/designer/views/page_item_view.js +130 -0
  1036. data/sproutcore/frameworks/designer/views/selection_handles.js +78 -0
  1037. data/sproutcore/frameworks/desktop/.greenhouseconf +218 -0
  1038. data/sproutcore/frameworks/desktop/core.js +18 -0
  1039. data/sproutcore/frameworks/desktop/debug/drag.js +41 -0
  1040. data/sproutcore/frameworks/desktop/english.lproj/alert.css +56 -0
  1041. data/sproutcore/frameworks/desktop/english.lproj/debug/a_sample_image.jpg +0 -0
  1042. data/sproutcore/frameworks/desktop/english.lproj/debug/apple-logo1.jpeg +0 -0
  1043. data/sproutcore/frameworks/desktop/english.lproj/debug/iframe.html +23 -0
  1044. data/sproutcore/frameworks/desktop/english.lproj/disclosure.css +74 -0
  1045. data/sproutcore/frameworks/desktop/english.lproj/drag.css +7 -0
  1046. data/sproutcore/frameworks/desktop/english.lproj/icons.css +943 -0
  1047. data/sproutcore/frameworks/desktop/english.lproj/images/cap.png +0 -0
  1048. data/sproutcore/frameworks/desktop/english.lproj/images/downbutton.png +0 -0
  1049. data/sproutcore/frameworks/desktop/english.lproj/images/icons/shared.png +0 -0
  1050. data/sproutcore/frameworks/desktop/english.lproj/images/thumb-bottom.png +0 -0
  1051. data/sproutcore/frameworks/desktop/english.lproj/images/thumb-center.png +0 -0
  1052. data/sproutcore/frameworks/desktop/english.lproj/images/thumb-top.png +0 -0
  1053. data/sproutcore/frameworks/desktop/english.lproj/images/track.png +0 -0
  1054. data/sproutcore/frameworks/desktop/english.lproj/images/upbutton.png +0 -0
  1055. data/sproutcore/frameworks/desktop/english.lproj/list_item.css +185 -0
  1056. data/sproutcore/frameworks/desktop/english.lproj/menu.css +12 -0
  1057. data/sproutcore/frameworks/desktop/english.lproj/menu_item_view.css +109 -0
  1058. data/sproutcore/frameworks/desktop/english.lproj/modal.css +9 -0
  1059. data/sproutcore/frameworks/desktop/english.lproj/panel.css +91 -0
  1060. data/sproutcore/frameworks/desktop/english.lproj/picker.css +35 -0
  1061. data/sproutcore/frameworks/desktop/english.lproj/progress.css +33 -0
  1062. data/sproutcore/frameworks/desktop/english.lproj/radio.css +10 -0
  1063. data/sproutcore/frameworks/desktop/english.lproj/segmented.css +132 -0
  1064. data/sproutcore/frameworks/desktop/english.lproj/separator.css +19 -0
  1065. data/sproutcore/frameworks/desktop/english.lproj/slider.css +66 -0
  1066. data/sproutcore/frameworks/desktop/english.lproj/split.css +0 -0
  1067. data/sproutcore/frameworks/desktop/english.lproj/split_divider.css +6 -0
  1068. data/sproutcore/frameworks/desktop/english.lproj/strings.js +14 -0
  1069. data/sproutcore/frameworks/desktop/english.lproj/tab.css +7 -0
  1070. data/sproutcore/frameworks/desktop/english.lproj/toolbar.css +5 -0
  1071. data/sproutcore/frameworks/desktop/english.lproj/touch-scroller.css +196 -0
  1072. data/sproutcore/frameworks/desktop/english.lproj/well.css +71 -0
  1073. data/sproutcore/frameworks/desktop/mixins/border.js +151 -0
  1074. data/sproutcore/frameworks/desktop/mixins/collection_fast_path.js +694 -0
  1075. data/sproutcore/frameworks/desktop/mixins/collection_group.js +22 -0
  1076. data/sproutcore/frameworks/desktop/mixins/collection_row_delegate.js +95 -0
  1077. data/sproutcore/frameworks/desktop/mixins/collection_view_delegate.js +295 -0
  1078. data/sproutcore/frameworks/desktop/mixins/navigation_builder.js +130 -0
  1079. data/sproutcore/frameworks/desktop/mixins/scrollable.js +253 -0
  1080. data/sproutcore/frameworks/desktop/panes/alert.js +457 -0
  1081. data/sproutcore/frameworks/desktop/panes/menu.js +1141 -0
  1082. data/sproutcore/frameworks/desktop/panes/modal.js +71 -0
  1083. data/sproutcore/frameworks/desktop/panes/palette.js +74 -0
  1084. data/sproutcore/frameworks/desktop/panes/panel.js +207 -0
  1085. data/sproutcore/frameworks/desktop/panes/picker.js +796 -0
  1086. data/sproutcore/frameworks/desktop/panes/select_button.js +895 -0
  1087. data/sproutcore/frameworks/desktop/panes/sheet.js +214 -0
  1088. data/sproutcore/frameworks/desktop/protocols/drag_data_source.js +39 -0
  1089. data/sproutcore/frameworks/desktop/protocols/drag_source.js +81 -0
  1090. data/sproutcore/frameworks/desktop/protocols/drop_target.js +175 -0
  1091. data/sproutcore/frameworks/desktop/protocols/responder.js +299 -0
  1092. data/sproutcore/frameworks/desktop/render_delegates/button.js +105 -0
  1093. data/sproutcore/frameworks/desktop/render_delegates/checkbox.js +100 -0
  1094. data/sproutcore/frameworks/desktop/render_delegates/collection.js +24 -0
  1095. data/sproutcore/frameworks/desktop/render_delegates/disclosure.js +69 -0
  1096. data/sproutcore/frameworks/desktop/render_delegates/helpers/slicing.js +34 -0
  1097. data/sproutcore/frameworks/desktop/render_delegates/image_button.js +30 -0
  1098. data/sproutcore/frameworks/desktop/render_delegates/master_detail.js +28 -0
  1099. data/sproutcore/frameworks/desktop/render_delegates/menu.js +47 -0
  1100. data/sproutcore/frameworks/desktop/render_delegates/panel.js +28 -0
  1101. data/sproutcore/frameworks/desktop/render_delegates/picker.js +43 -0
  1102. data/sproutcore/frameworks/desktop/render_delegates/progress.js +187 -0
  1103. data/sproutcore/frameworks/desktop/render_delegates/radio.js +95 -0
  1104. data/sproutcore/frameworks/desktop/render_delegates/radio_group.js +109 -0
  1105. data/sproutcore/frameworks/desktop/render_delegates/segment.js +55 -0
  1106. data/sproutcore/frameworks/desktop/render_delegates/segmented.js +77 -0
  1107. data/sproutcore/frameworks/desktop/render_delegates/slider.js +58 -0
  1108. data/sproutcore/frameworks/desktop/render_delegates/source_list.js +8 -0
  1109. data/sproutcore/frameworks/desktop/render_delegates/toolbar.js +18 -0
  1110. data/sproutcore/frameworks/desktop/render_delegates/well.js +27 -0
  1111. data/sproutcore/frameworks/desktop/render_delegates/workspace.js +18 -0
  1112. data/sproutcore/frameworks/desktop/system/drag.js +974 -0
  1113. data/sproutcore/frameworks/desktop/system/key_bindings.js +40 -0
  1114. data/sproutcore/frameworks/desktop/system/undo_manager.js +187 -0
  1115. data/sproutcore/frameworks/desktop/tests/integration/dialog.js +48 -0
  1116. data/sproutcore/frameworks/desktop/tests/mixins/border.js +97 -0
  1117. data/sproutcore/frameworks/desktop/tests/panes/alert/methods.js +10 -0
  1118. data/sproutcore/frameworks/desktop/tests/panes/alert/ui.js +158 -0
  1119. data/sproutcore/frameworks/desktop/tests/panes/menu/methods.js +135 -0
  1120. data/sproutcore/frameworks/desktop/tests/panes/menu/ui.js +258 -0
  1121. data/sproutcore/frameworks/desktop/tests/panes/palette/methods.js +10 -0
  1122. data/sproutcore/frameworks/desktop/tests/panes/palette/ui.js +35 -0
  1123. data/sproutcore/frameworks/desktop/tests/panes/pane_page.js +41 -0
  1124. data/sproutcore/frameworks/desktop/tests/panes/panel/methods.js +10 -0
  1125. data/sproutcore/frameworks/desktop/tests/panes/panel/ui.js +83 -0
  1126. data/sproutcore/frameworks/desktop/tests/panes/picker/methods.js +10 -0
  1127. data/sproutcore/frameworks/desktop/tests/panes/picker/ui.js +92 -0
  1128. data/sproutcore/frameworks/desktop/tests/panes/select_button/methods.js +194 -0
  1129. data/sproutcore/frameworks/desktop/tests/panes/select_button/ui.js +220 -0
  1130. data/sproutcore/frameworks/desktop/tests/panes/sheet/methods.js +10 -0
  1131. data/sproutcore/frameworks/desktop/tests/panes/sheet/ui.js +44 -0
  1132. data/sproutcore/frameworks/desktop/tests/views/button/methods.js +166 -0
  1133. data/sproutcore/frameworks/desktop/tests/views/button/ui.js +236 -0
  1134. data/sproutcore/frameworks/desktop/tests/views/checkbox/methods.js +126 -0
  1135. data/sproutcore/frameworks/desktop/tests/views/checkbox/ui.js +124 -0
  1136. data/sproutcore/frameworks/desktop/tests/views/collection/content.js +249 -0
  1137. data/sproutcore/frameworks/desktop/tests/views/collection/deleteSelection.js +82 -0
  1138. data/sproutcore/frameworks/desktop/tests/views/collection/deselect.js +215 -0
  1139. data/sproutcore/frameworks/desktop/tests/views/collection/displayProperties.js +31 -0
  1140. data/sproutcore/frameworks/desktop/tests/views/collection/itemViewForContentIndex.js +300 -0
  1141. data/sproutcore/frameworks/desktop/tests/views/collection/layerIdFor.js +65 -0
  1142. data/sproutcore/frameworks/desktop/tests/views/collection/length.js +88 -0
  1143. data/sproutcore/frameworks/desktop/tests/views/collection/mouse.js +240 -0
  1144. data/sproutcore/frameworks/desktop/tests/views/collection/nowShowing.js +121 -0
  1145. data/sproutcore/frameworks/desktop/tests/views/collection/reload.js +177 -0
  1146. data/sproutcore/frameworks/desktop/tests/views/collection/select.js +240 -0
  1147. data/sproutcore/frameworks/desktop/tests/views/collection/selectNextItem.js +205 -0
  1148. data/sproutcore/frameworks/desktop/tests/views/collection/selectPreviousItem.js +211 -0
  1149. data/sproutcore/frameworks/desktop/tests/views/collection/selection.js +141 -0
  1150. data/sproutcore/frameworks/desktop/tests/views/collection/ui_diagram.js +188 -0
  1151. data/sproutcore/frameworks/desktop/tests/views/date_field/methods.js +76 -0
  1152. data/sproutcore/frameworks/desktop/tests/views/date_field/ui.js +456 -0
  1153. data/sproutcore/frameworks/desktop/tests/views/disclosure/methods.js +10 -0
  1154. data/sproutcore/frameworks/desktop/tests/views/disclosure/ui.js +104 -0
  1155. data/sproutcore/frameworks/desktop/tests/views/grid/methods.js +10 -0
  1156. data/sproutcore/frameworks/desktop/tests/views/grid/ui.js +10 -0
  1157. data/sproutcore/frameworks/desktop/tests/views/image_button/ui.js +25 -0
  1158. data/sproutcore/frameworks/desktop/tests/views/list/render.js +92 -0
  1159. data/sproutcore/frameworks/desktop/tests/views/list/rowDelegate.js +183 -0
  1160. data/sproutcore/frameworks/desktop/tests/views/list/rowHeightForContentIndex.js +133 -0
  1161. data/sproutcore/frameworks/desktop/tests/views/list/rowOffsetForContentIndex.js +131 -0
  1162. data/sproutcore/frameworks/desktop/tests/views/list/ui_alternatingrows.js +130 -0
  1163. data/sproutcore/frameworks/desktop/tests/views/list/ui_outline.js +56 -0
  1164. data/sproutcore/frameworks/desktop/tests/views/list/ui_row_heights.js +205 -0
  1165. data/sproutcore/frameworks/desktop/tests/views/list/ui_simple.js +127 -0
  1166. data/sproutcore/frameworks/desktop/tests/views/list_item.js +396 -0
  1167. data/sproutcore/frameworks/desktop/tests/views/menu_item/methods.js +10 -0
  1168. data/sproutcore/frameworks/desktop/tests/views/menu_item/ui.js +46 -0
  1169. data/sproutcore/frameworks/desktop/tests/views/progress/methods.js +128 -0
  1170. data/sproutcore/frameworks/desktop/tests/views/progress/ui.js +421 -0
  1171. data/sproutcore/frameworks/desktop/tests/views/radio/methods.js +119 -0
  1172. data/sproutcore/frameworks/desktop/tests/views/radio/ui.js +349 -0
  1173. data/sproutcore/frameworks/desktop/tests/views/scroll/methods.js +143 -0
  1174. data/sproutcore/frameworks/desktop/tests/views/scroll/ui.js +162 -0
  1175. data/sproutcore/frameworks/desktop/tests/views/scroller.js +118 -0
  1176. data/sproutcore/frameworks/desktop/tests/views/segmented/methods.js +108 -0
  1177. data/sproutcore/frameworks/desktop/tests/views/segmented/ui.js +457 -0
  1178. data/sproutcore/frameworks/desktop/tests/views/select/methods.js +144 -0
  1179. data/sproutcore/frameworks/desktop/tests/views/select/ui.js +224 -0
  1180. data/sproutcore/frameworks/desktop/tests/views/select_field/methods.js +163 -0
  1181. data/sproutcore/frameworks/desktop/tests/views/select_field/ui.js +117 -0
  1182. data/sproutcore/frameworks/desktop/tests/views/separator.js +44 -0
  1183. data/sproutcore/frameworks/desktop/tests/views/source_list/methods.js +10 -0
  1184. data/sproutcore/frameworks/desktop/tests/views/source_list/ui.js +10 -0
  1185. data/sproutcore/frameworks/desktop/tests/views/split/methods.js +60 -0
  1186. data/sproutcore/frameworks/desktop/tests/views/split/ui.js +59 -0
  1187. data/sproutcore/frameworks/desktop/tests/views/stacked/ui_comments.js +238 -0
  1188. data/sproutcore/frameworks/desktop/tests/views/static_content.js +46 -0
  1189. data/sproutcore/frameworks/desktop/tests/views/tab/methods.js +54 -0
  1190. data/sproutcore/frameworks/desktop/tests/views/tab/ui.js +92 -0
  1191. data/sproutcore/frameworks/desktop/tests/views/toolbar/method.js +33 -0
  1192. data/sproutcore/frameworks/desktop/tests/views/toolbar/ui.js +29 -0
  1193. data/sproutcore/frameworks/desktop/tests/views/web/methods.js +10 -0
  1194. data/sproutcore/frameworks/desktop/tests/views/web/ui.js +110 -0
  1195. data/sproutcore/frameworks/desktop/tests/views/well/ui.js +54 -0
  1196. data/sproutcore/frameworks/desktop/views/button.js +564 -0
  1197. data/sproutcore/frameworks/desktop/views/checkbox.js +110 -0
  1198. data/sproutcore/frameworks/desktop/views/collection.js +3090 -0
  1199. data/sproutcore/frameworks/desktop/views/date_field.js +319 -0
  1200. data/sproutcore/frameworks/desktop/views/disclosure.js +68 -0
  1201. data/sproutcore/frameworks/desktop/views/file.js +112 -0
  1202. data/sproutcore/frameworks/desktop/views/grid.js +207 -0
  1203. data/sproutcore/frameworks/desktop/views/image_button.js +74 -0
  1204. data/sproutcore/frameworks/desktop/views/list.js +637 -0
  1205. data/sproutcore/frameworks/desktop/views/list_item.js +923 -0
  1206. data/sproutcore/frameworks/desktop/views/master_detail.js +257 -0
  1207. data/sproutcore/frameworks/desktop/views/menu_item.js +704 -0
  1208. data/sproutcore/frameworks/desktop/views/menu_scroll.js +615 -0
  1209. data/sproutcore/frameworks/desktop/views/navigation.js +237 -0
  1210. data/sproutcore/frameworks/desktop/views/navigation_bar.js +181 -0
  1211. data/sproutcore/frameworks/desktop/views/popup_button.js +299 -0
  1212. data/sproutcore/frameworks/desktop/views/progress.js +197 -0
  1213. data/sproutcore/frameworks/desktop/views/radio.js +347 -0
  1214. data/sproutcore/frameworks/desktop/views/scene.js +204 -0
  1215. data/sproutcore/frameworks/desktop/views/scroll.js +1824 -0
  1216. data/sproutcore/frameworks/desktop/views/scroller.js +917 -0
  1217. data/sproutcore/frameworks/desktop/views/segment.js +104 -0
  1218. data/sproutcore/frameworks/desktop/views/segmented.js +1002 -0
  1219. data/sproutcore/frameworks/desktop/views/select.js +809 -0
  1220. data/sproutcore/frameworks/desktop/views/select_field.js +344 -0
  1221. data/sproutcore/frameworks/desktop/views/separator.js +36 -0
  1222. data/sproutcore/frameworks/desktop/views/slider.js +291 -0
  1223. data/sproutcore/frameworks/desktop/views/source_list.js +49 -0
  1224. data/sproutcore/frameworks/desktop/views/source_list_group.js +169 -0
  1225. data/sproutcore/frameworks/desktop/views/split.js +891 -0
  1226. data/sproutcore/frameworks/desktop/views/split_divider.js +52 -0
  1227. data/sproutcore/frameworks/desktop/views/stacked.js +110 -0
  1228. data/sproutcore/frameworks/desktop/views/static_content.js +134 -0
  1229. data/sproutcore/frameworks/desktop/views/tab.js +186 -0
  1230. data/sproutcore/frameworks/desktop/views/thumb.js +53 -0
  1231. data/sproutcore/frameworks/desktop/views/toolbar.js +88 -0
  1232. data/sproutcore/frameworks/desktop/views/web.js +87 -0
  1233. data/sproutcore/frameworks/desktop/views/well.js +65 -0
  1234. data/sproutcore/frameworks/desktop/views/workspace.js +251 -0
  1235. data/sproutcore/frameworks/documentation/core.js +0 -0
  1236. data/sproutcore/frameworks/experimental/README.md +23 -0
  1237. data/sproutcore/frameworks/experimental/frameworks/device_motion/README.md +11 -0
  1238. data/sproutcore/frameworks/experimental/frameworks/device_motion/device.js +215 -0
  1239. data/sproutcore/frameworks/experimental/frameworks/device_motion/platform.js +67 -0
  1240. data/sproutcore/frameworks/experimental/frameworks/polymorphism/README.md +34 -0
  1241. data/sproutcore/frameworks/experimental/frameworks/polymorphism/models/polymorphic_single_attribute.js +183 -0
  1242. data/sproutcore/frameworks/experimental/frameworks/polymorphism/models/record.js +23 -0
  1243. data/sproutcore/frameworks/experimental/frameworks/polymorphism/tests/models/polymorphic/single.js +124 -0
  1244. data/sproutcore/frameworks/forms/english.lproj/default_styles.css +5 -0
  1245. data/sproutcore/frameworks/forms/english.lproj/strings.js +15 -0
  1246. data/sproutcore/frameworks/forms/mixins/edit_mode.js +43 -0
  1247. data/sproutcore/frameworks/forms/mixins/emptiness.js +95 -0
  1248. data/sproutcore/frameworks/forms/renderer_delegates/form.js +22 -0
  1249. data/sproutcore/frameworks/forms/renderer_delegates/form_row.js +21 -0
  1250. data/sproutcore/frameworks/forms/tests/views/form.js +15 -0
  1251. data/sproutcore/frameworks/forms/tests/views/form_checkbox_field.js +15 -0
  1252. data/sproutcore/frameworks/forms/tests/views/form_field.js +15 -0
  1253. data/sproutcore/frameworks/forms/tests/views/form_label.js +15 -0
  1254. data/sproutcore/frameworks/forms/tests/views/form_radio_field.js +15 -0
  1255. data/sproutcore/frameworks/forms/tests/views/form_row.js +15 -0
  1256. data/sproutcore/frameworks/forms/tests/views/form_text_field.js +15 -0
  1257. data/sproutcore/frameworks/forms/views/form.js +282 -0
  1258. data/sproutcore/frameworks/forms/views/form_row.js +183 -0
  1259. data/sproutcore/frameworks/foundation/.greenhouseconf +35 -0
  1260. data/sproutcore/frameworks/foundation/TESTING +46 -0
  1261. data/sproutcore/frameworks/foundation/controllers/tree.js +127 -0
  1262. data/sproutcore/frameworks/foundation/core.js +0 -0
  1263. data/sproutcore/frameworks/foundation/debug/control_test_pane.js +191 -0
  1264. data/sproutcore/frameworks/foundation/english.lproj/benchmark.css +146 -0
  1265. data/sproutcore/frameworks/foundation/english.lproj/blank.gif +0 -0
  1266. data/sproutcore/frameworks/foundation/english.lproj/bootstrap.rhtml +67 -0
  1267. data/sproutcore/frameworks/foundation/english.lproj/button_view.css +40 -0
  1268. data/sproutcore/frameworks/foundation/english.lproj/debug/control-test-pane.css +9 -0
  1269. data/sproutcore/frameworks/foundation/english.lproj/images/favicon.ico +0 -0
  1270. data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-logo.png +0 -0
  1271. data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.jpg +0 -0
  1272. data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-landscape.png +0 -0
  1273. data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.jpg +0 -0
  1274. data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup-portrait.png +0 -0
  1275. data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore-startup.png +0 -0
  1276. data/sproutcore/frameworks/foundation/english.lproj/images/sproutcore.png +0 -0
  1277. data/sproutcore/frameworks/foundation/english.lproj/inline_editor.css +12 -0
  1278. data/sproutcore/frameworks/foundation/english.lproj/label.css +47 -0
  1279. data/sproutcore/frameworks/foundation/english.lproj/static_layout.css +5 -0
  1280. data/sproutcore/frameworks/foundation/english.lproj/text_field.css +146 -0
  1281. data/sproutcore/frameworks/foundation/fixtures/file_exists.json +1 -0
  1282. data/sproutcore/frameworks/foundation/fixtures/malformed.json +11 -0
  1283. data/sproutcore/frameworks/foundation/gestures/pinch.js +81 -0
  1284. data/sproutcore/frameworks/foundation/gestures/swipe.js +144 -0
  1285. data/sproutcore/frameworks/foundation/gestures/tap.js +113 -0
  1286. data/sproutcore/frameworks/foundation/license.js +28 -0
  1287. data/sproutcore/frameworks/foundation/mixins/auto_mixin.js +39 -0
  1288. data/sproutcore/frameworks/foundation/mixins/auto_resize.js +233 -0
  1289. data/sproutcore/frameworks/foundation/mixins/button.js +360 -0
  1290. data/sproutcore/frameworks/foundation/mixins/collection_content.js +178 -0
  1291. data/sproutcore/frameworks/foundation/mixins/content_display.js +114 -0
  1292. data/sproutcore/frameworks/foundation/mixins/control.js +422 -0
  1293. data/sproutcore/frameworks/foundation/mixins/editable.js +158 -0
  1294. data/sproutcore/frameworks/foundation/mixins/flowed_layout.js +628 -0
  1295. data/sproutcore/frameworks/foundation/mixins/gestureable.js +214 -0
  1296. data/sproutcore/frameworks/foundation/mixins/inline_editable.js +89 -0
  1297. data/sproutcore/frameworks/foundation/mixins/inline_editor_delegate.js +139 -0
  1298. data/sproutcore/frameworks/foundation/mixins/inline_text_field.js +589 -0
  1299. data/sproutcore/frameworks/foundation/mixins/inner_frame.js +184 -0
  1300. data/sproutcore/frameworks/foundation/mixins/static_layout.js +77 -0
  1301. data/sproutcore/frameworks/foundation/mixins/string.js +391 -0
  1302. data/sproutcore/frameworks/foundation/mixins/tree_item_content.js +160 -0
  1303. data/sproutcore/frameworks/foundation/mixins/validatable.js +189 -0
  1304. data/sproutcore/frameworks/foundation/private/tree_item_observer.js +914 -0
  1305. data/sproutcore/frameworks/foundation/render_delegates/canvas_image.js +110 -0
  1306. data/sproutcore/frameworks/foundation/render_delegates/container.js +18 -0
  1307. data/sproutcore/frameworks/foundation/render_delegates/image.js +97 -0
  1308. data/sproutcore/frameworks/foundation/render_delegates/label.js +139 -0
  1309. data/sproutcore/frameworks/foundation/render_delegates/render_delegate.js +17 -0
  1310. data/sproutcore/frameworks/foundation/system/benchmark.js +718 -0
  1311. data/sproutcore/frameworks/foundation/system/chance.js +64 -0
  1312. data/sproutcore/frameworks/foundation/system/cookie.js +171 -0
  1313. data/sproutcore/frameworks/foundation/system/core_query.js +56 -0
  1314. data/sproutcore/frameworks/foundation/system/exception_handler.js +88 -0
  1315. data/sproutcore/frameworks/foundation/system/gesture.js +363 -0
  1316. data/sproutcore/frameworks/foundation/system/image_queue.js +433 -0
  1317. data/sproutcore/frameworks/foundation/system/math.js +57 -0
  1318. data/sproutcore/frameworks/foundation/system/module.js +583 -0
  1319. data/sproutcore/frameworks/foundation/system/request.js +596 -0
  1320. data/sproutcore/frameworks/foundation/system/response.js +550 -0
  1321. data/sproutcore/frameworks/foundation/system/routes.js +519 -0
  1322. data/sproutcore/frameworks/foundation/system/staticqueue.js +53 -0
  1323. data/sproutcore/frameworks/foundation/system/task_queue.js +153 -0
  1324. data/sproutcore/frameworks/foundation/system/text_selection.js +103 -0
  1325. data/sproutcore/frameworks/foundation/system/time.js +473 -0
  1326. data/sproutcore/frameworks/foundation/system/user_defaults.js +392 -0
  1327. data/sproutcore/frameworks/foundation/system/utils/colors.js +80 -0
  1328. data/sproutcore/frameworks/foundation/system/utils/misc.js +137 -0
  1329. data/sproutcore/frameworks/foundation/system/utils/range.js +64 -0
  1330. data/sproutcore/frameworks/foundation/system/utils/string_measurement.js +247 -0
  1331. data/sproutcore/frameworks/foundation/tasks/preload_bundle.js +41 -0
  1332. data/sproutcore/frameworks/foundation/tasks/task.js +17 -0
  1333. data/sproutcore/frameworks/foundation/tests/controllers/tree/outline_case.js +108 -0
  1334. data/sproutcore/frameworks/foundation/tests/controllers/tree/selection_support.js +340 -0
  1335. data/sproutcore/frameworks/foundation/tests/debug/control_test_pane/methods.js +10 -0
  1336. data/sproutcore/frameworks/foundation/tests/debug/control_test_pane/ui.js +113 -0
  1337. data/sproutcore/frameworks/foundation/tests/integration/creating_views.js +118 -0
  1338. data/sproutcore/frameworks/foundation/tests/mixins/button/content.js +195 -0
  1339. data/sproutcore/frameworks/foundation/tests/mixins/button/displayProperties.js +89 -0
  1340. data/sproutcore/frameworks/foundation/tests/mixins/button/keyEquivalents.js +57 -0
  1341. data/sproutcore/frameworks/foundation/tests/mixins/button/ui.js +69 -0
  1342. data/sproutcore/frameworks/foundation/tests/mixins/content_display.js +51 -0
  1343. data/sproutcore/frameworks/foundation/tests/mixins/control/content.js +168 -0
  1344. data/sproutcore/frameworks/foundation/tests/mixins/control/displayProperties.js +89 -0
  1345. data/sproutcore/frameworks/foundation/tests/mixins/editable/ui.js +44 -0
  1346. data/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/api.js +52 -0
  1347. data/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/beginEditing.js +238 -0
  1348. data/sproutcore/frameworks/foundation/tests/mixins/inline_text_field/ui.js +64 -0
  1349. data/sproutcore/frameworks/foundation/tests/mixins/staticLayout.js +144 -0
  1350. data/sproutcore/frameworks/foundation/tests/mixins/string.js +28 -0
  1351. data/sproutcore/frameworks/foundation/tests/mixins/validatable/ui.js +74 -0
  1352. data/sproutcore/frameworks/foundation/tests/private/tree_item_observer/flat_case.js +325 -0
  1353. data/sproutcore/frameworks/foundation/tests/private/tree_item_observer/group_case.js +718 -0
  1354. data/sproutcore/frameworks/foundation/tests/private/tree_item_observer/outline_case.js +484 -0
  1355. data/sproutcore/frameworks/foundation/tests/system/cookie.js +179 -0
  1356. data/sproutcore/frameworks/foundation/tests/system/core_query/setClass.js +59 -0
  1357. data/sproutcore/frameworks/foundation/tests/system/math.js +39 -0
  1358. data/sproutcore/frameworks/foundation/tests/system/request.js +273 -0
  1359. data/sproutcore/frameworks/foundation/tests/system/routes.js +356 -0
  1360. data/sproutcore/frameworks/foundation/tests/system/task_queue.js +43 -0
  1361. data/sproutcore/frameworks/foundation/tests/system/user_defaults.js +24 -0
  1362. data/sproutcore/frameworks/foundation/tests/system/utils/pointInElement.js +235 -0
  1363. data/sproutcore/frameworks/foundation/tests/system/utils/range.js +62 -0
  1364. data/sproutcore/frameworks/foundation/tests/validators/credit_card.js +35 -0
  1365. data/sproutcore/frameworks/foundation/tests/validators/date.js +26 -0
  1366. data/sproutcore/frameworks/foundation/tests/validators/not_empty.js +56 -0
  1367. data/sproutcore/frameworks/foundation/tests/validators/number.js +47 -0
  1368. data/sproutcore/frameworks/foundation/tests/validators/password.js +13 -0
  1369. data/sproutcore/frameworks/foundation/tests/validators/validator.js +20 -0
  1370. data/sproutcore/frameworks/foundation/tests/views/container/methods.js +18 -0
  1371. data/sproutcore/frameworks/foundation/tests/views/container/ui.js +145 -0
  1372. data/sproutcore/frameworks/foundation/tests/views/image/ui.js +492 -0
  1373. data/sproutcore/frameworks/foundation/tests/views/label/ui.js +179 -0
  1374. data/sproutcore/frameworks/foundation/tests/views/text_field/methods.js +87 -0
  1375. data/sproutcore/frameworks/foundation/tests/views/text_field/nextValidKeyView.js +110 -0
  1376. data/sproutcore/frameworks/foundation/tests/views/text_field/ui.js +577 -0
  1377. data/sproutcore/frameworks/foundation/validators/credit_card.js +125 -0
  1378. data/sproutcore/frameworks/foundation/validators/date.js +52 -0
  1379. data/sproutcore/frameworks/foundation/validators/date_time.js +48 -0
  1380. data/sproutcore/frameworks/foundation/validators/email.js +45 -0
  1381. data/sproutcore/frameworks/foundation/validators/not_empty.js +37 -0
  1382. data/sproutcore/frameworks/foundation/validators/number.js +99 -0
  1383. data/sproutcore/frameworks/foundation/validators/password.js +86 -0
  1384. data/sproutcore/frameworks/foundation/validators/positive_integer.js +84 -0
  1385. data/sproutcore/frameworks/foundation/validators/validator.js +326 -0
  1386. data/sproutcore/frameworks/foundation/views/container.js +140 -0
  1387. data/sproutcore/frameworks/foundation/views/field.js +337 -0
  1388. data/sproutcore/frameworks/foundation/views/image.js +381 -0
  1389. data/sproutcore/frameworks/foundation/views/label.js +219 -0
  1390. data/sproutcore/frameworks/foundation/views/text_field.js +1073 -0
  1391. data/sproutcore/frameworks/handlebars/extensions.js +44 -0
  1392. data/sproutcore/frameworks/handlebars/extensions/bind.js +156 -0
  1393. data/sproutcore/frameworks/handlebars/extensions/collection.js +75 -0
  1394. data/sproutcore/frameworks/handlebars/extensions/localization.js +5 -0
  1395. data/sproutcore/frameworks/handlebars/extensions/view.js +115 -0
  1396. data/sproutcore/frameworks/handlebars/handlebars.js +1401 -0
  1397. data/sproutcore/frameworks/jquery/jquery-buffer.js +376 -0
  1398. data/sproutcore/frameworks/jquery/jquery-buffered.js +205 -0
  1399. data/sproutcore/frameworks/jquery/jquery-sc.js +7 -0
  1400. data/sproutcore/frameworks/jquery/jquery.js +7179 -0
  1401. data/sproutcore/frameworks/media/.greenhouseconf +29 -0
  1402. data/sproutcore/frameworks/media/resources/controls.png +0 -0
  1403. data/sproutcore/frameworks/media/resources/playeras3.fla +0 -0
  1404. data/sproutcore/frameworks/media/resources/video.css +124 -0
  1405. data/sproutcore/frameworks/media/resources/videoCanvas.swf +0 -0
  1406. data/sproutcore/frameworks/media/views/audio.js +741 -0
  1407. data/sproutcore/frameworks/media/views/controls.js +88 -0
  1408. data/sproutcore/frameworks/media/views/media_slider.js +243 -0
  1409. data/sproutcore/frameworks/media/views/mini_controls.js +63 -0
  1410. data/sproutcore/frameworks/media/views/simple_controls.js +54 -0
  1411. data/sproutcore/frameworks/media/views/video.js +832 -0
  1412. data/sproutcore/frameworks/mini/license.js +29 -0
  1413. data/sproutcore/frameworks/runtime/README +12 -0
  1414. data/sproutcore/frameworks/runtime/core.js +1102 -0
  1415. data/sproutcore/frameworks/runtime/debug/test_suites/array.js +14 -0
  1416. data/sproutcore/frameworks/runtime/debug/test_suites/array/base.js +397 -0
  1417. data/sproutcore/frameworks/runtime/debug/test_suites/array/indexOf.js +33 -0
  1418. data/sproutcore/frameworks/runtime/debug/test_suites/array/insertAt.js +121 -0
  1419. data/sproutcore/frameworks/runtime/debug/test_suites/array/objectAt.js +34 -0
  1420. data/sproutcore/frameworks/runtime/debug/test_suites/array/popObject.js +50 -0
  1421. data/sproutcore/frameworks/runtime/debug/test_suites/array/pushObject.js +46 -0
  1422. data/sproutcore/frameworks/runtime/debug/test_suites/array/rangeObserver.js +371 -0
  1423. data/sproutcore/frameworks/runtime/debug/test_suites/array/removeAt.js +100 -0
  1424. data/sproutcore/frameworks/runtime/debug/test_suites/array/removeObject.js +49 -0
  1425. data/sproutcore/frameworks/runtime/debug/test_suites/array/replace.js +94 -0
  1426. data/sproutcore/frameworks/runtime/debug/test_suites/array/shiftObject.js +50 -0
  1427. data/sproutcore/frameworks/runtime/debug/test_suites/array/unshiftObject.js +47 -0
  1428. data/sproutcore/frameworks/runtime/license.js +29 -0
  1429. data/sproutcore/frameworks/runtime/mixins/array.js +658 -0
  1430. data/sproutcore/frameworks/runtime/mixins/comparable.js +45 -0
  1431. data/sproutcore/frameworks/runtime/mixins/copyable.js +72 -0
  1432. data/sproutcore/frameworks/runtime/mixins/enumerable.js +1426 -0
  1433. data/sproutcore/frameworks/runtime/mixins/freezable.js +110 -0
  1434. data/sproutcore/frameworks/runtime/mixins/observable.js +1408 -0
  1435. data/sproutcore/frameworks/runtime/private/chain_observer.js +178 -0
  1436. data/sproutcore/frameworks/runtime/private/observer_queue.js +178 -0
  1437. data/sproutcore/frameworks/runtime/private/observer_set.js +123 -0
  1438. data/sproutcore/frameworks/runtime/system/binding.js +1000 -0
  1439. data/sproutcore/frameworks/runtime/system/enumerator.js +107 -0
  1440. data/sproutcore/frameworks/runtime/system/error.js +157 -0
  1441. data/sproutcore/frameworks/runtime/system/index_set.js +1199 -0
  1442. data/sproutcore/frameworks/runtime/system/logger.js +1582 -0
  1443. data/sproutcore/frameworks/runtime/system/object.js +947 -0
  1444. data/sproutcore/frameworks/runtime/system/range_observer.js +270 -0
  1445. data/sproutcore/frameworks/runtime/system/run_loop.js +308 -0
  1446. data/sproutcore/frameworks/runtime/system/set.js +536 -0
  1447. data/sproutcore/frameworks/runtime/tests/core/IsEqual.js +30 -0
  1448. data/sproutcore/frameworks/runtime/tests/core/beget.js +23 -0
  1449. data/sproutcore/frameworks/runtime/tests/core/clone.js +108 -0
  1450. data/sproutcore/frameworks/runtime/tests/core/compare.js +44 -0
  1451. data/sproutcore/frameworks/runtime/tests/core/console.js +16 -0
  1452. data/sproutcore/frameworks/runtime/tests/core/guidFor.js +109 -0
  1453. data/sproutcore/frameworks/runtime/tests/core/inspect.js +27 -0
  1454. data/sproutcore/frameworks/runtime/tests/core/itemType.js +71 -0
  1455. data/sproutcore/frameworks/runtime/tests/core/keys.js +20 -0
  1456. data/sproutcore/frameworks/runtime/tests/core/makeArray.js +44 -0
  1457. data/sproutcore/frameworks/runtime/tests/core/objectForPropertyPath.js +19 -0
  1458. data/sproutcore/frameworks/runtime/tests/core/tupleForPropertyPath.js +37 -0
  1459. data/sproutcore/frameworks/runtime/tests/mixins/array.js +59 -0
  1460. data/sproutcore/frameworks/runtime/tests/mixins/comparable.js +44 -0
  1461. data/sproutcore/frameworks/runtime/tests/mixins/enumerable.js +658 -0
  1462. data/sproutcore/frameworks/runtime/tests/mixins/observable/chained.js +37 -0
  1463. data/sproutcore/frameworks/runtime/tests/mixins/observable/observable.js +733 -0
  1464. data/sproutcore/frameworks/runtime/tests/mixins/observable/propertyChanges.js +155 -0
  1465. data/sproutcore/frameworks/runtime/tests/mixins/observable/registerDependentKeys.js +79 -0
  1466. data/sproutcore/frameworks/runtime/tests/mixins/propertyChanges.js +81 -0
  1467. data/sproutcore/frameworks/runtime/tests/private/observer_queue/isObservingSuspended.js +55 -0
  1468. data/sproutcore/frameworks/runtime/tests/system/binding.js +395 -0
  1469. data/sproutcore/frameworks/runtime/tests/system/error.js +53 -0
  1470. data/sproutcore/frameworks/runtime/tests/system/index_set/add.js +212 -0
  1471. data/sproutcore/frameworks/runtime/tests/system/index_set/addEach.js +49 -0
  1472. data/sproutcore/frameworks/runtime/tests/system/index_set/clone.js +43 -0
  1473. data/sproutcore/frameworks/runtime/tests/system/index_set/contains.js +74 -0
  1474. data/sproutcore/frameworks/runtime/tests/system/index_set/create.js +42 -0
  1475. data/sproutcore/frameworks/runtime/tests/system/index_set/indexAfter.js +38 -0
  1476. data/sproutcore/frameworks/runtime/tests/system/index_set/indexBefore.js +38 -0
  1477. data/sproutcore/frameworks/runtime/tests/system/index_set/intersects.js +74 -0
  1478. data/sproutcore/frameworks/runtime/tests/system/index_set/max.js +40 -0
  1479. data/sproutcore/frameworks/runtime/tests/system/index_set/min.js +50 -0
  1480. data/sproutcore/frameworks/runtime/tests/system/index_set/rangeStartForIndex.js +36 -0
  1481. data/sproutcore/frameworks/runtime/tests/system/index_set/remove.js +189 -0
  1482. data/sproutcore/frameworks/runtime/tests/system/index_set/removeEach.js +49 -0
  1483. data/sproutcore/frameworks/runtime/tests/system/index_set/without.js +89 -0
  1484. data/sproutcore/frameworks/runtime/tests/system/logger.js +260 -0
  1485. data/sproutcore/frameworks/runtime/tests/system/object/base.js +195 -0
  1486. data/sproutcore/frameworks/runtime/tests/system/object/bindings.js +374 -0
  1487. data/sproutcore/frameworks/runtime/tests/system/object/concatenated_properties.js +71 -0
  1488. data/sproutcore/frameworks/runtime/tests/system/object/enhance.js +177 -0
  1489. data/sproutcore/frameworks/runtime/tests/system/observer_set.js +50 -0
  1490. data/sproutcore/frameworks/runtime/tests/system/range_observer/create.js +59 -0
  1491. data/sproutcore/frameworks/runtime/tests/system/range_observer/destroy.js +75 -0
  1492. data/sproutcore/frameworks/runtime/tests/system/range_observer/objectPropertyDidChange.js +117 -0
  1493. data/sproutcore/frameworks/runtime/tests/system/range_observer/rangeDidChange.js +110 -0
  1494. data/sproutcore/frameworks/runtime/tests/system/range_observer/update.js +65 -0
  1495. data/sproutcore/frameworks/runtime/tests/system/run_loop.js +120 -0
  1496. data/sproutcore/frameworks/runtime/tests/system/set.js +318 -0
  1497. data/sproutcore/frameworks/statechart/core.js +5 -0
  1498. data/sproutcore/frameworks/statechart/debug/monitor.js +136 -0
  1499. data/sproutcore/frameworks/statechart/system/state.js +713 -0
  1500. data/sproutcore/frameworks/statechart/system/statechart.js +951 -0
  1501. data/sproutcore/frameworks/statechart/tests/async.js +94 -0
  1502. data/sproutcore/frameworks/statechart/tests/event_handling/advanced_event_handling.js +310 -0
  1503. data/sproutcore/frameworks/statechart/tests/namespace/access_substates.js +252 -0
  1504. data/sproutcore/frameworks/statechart/tests/state/is_current_state.js +64 -0
  1505. data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_history_state.js +88 -0
  1506. data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_advanced.js +234 -0
  1507. data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_async.js +123 -0
  1508. data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_basic.js +139 -0
  1509. data/sproutcore/frameworks/statechart/tests/with_concurrent_states/goto_state_intermediate.js +119 -0
  1510. data/sproutcore/frameworks/statechart/tests/with_concurrent_states/send_event.js +183 -0
  1511. data/sproutcore/frameworks/statechart/tests/without_concurrent_states/default_responder.js +90 -0
  1512. data/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_history_state.js +200 -0
  1513. data/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_state.js +256 -0
  1514. data/sproutcore/frameworks/statechart/tests/without_concurrent_states/goto_state_async.js +187 -0
  1515. data/sproutcore/frameworks/statechart/tests/without_concurrent_states/send_event.js +122 -0
  1516. data/sproutcore/frameworks/statechart/tests/without_concurrent_states/state_plugin.js +99 -0
  1517. data/sproutcore/frameworks/statechart/tests/without_concurrent_states/transient.js +162 -0
  1518. data/sproutcore/frameworks/table/mixins/table_delegate.js +41 -0
  1519. data/sproutcore/frameworks/table/system/table_column.js +125 -0
  1520. data/sproutcore/frameworks/table/views/table.js +440 -0
  1521. data/sproutcore/frameworks/table/views/table_cell.js +63 -0
  1522. data/sproutcore/frameworks/table/views/table_head.js +158 -0
  1523. data/sproutcore/frameworks/table/views/table_header.js +214 -0
  1524. data/sproutcore/frameworks/table/views/table_row.js +155 -0
  1525. data/sproutcore/frameworks/testing/core.js +196 -0
  1526. data/sproutcore/frameworks/testing/english.lproj/additions.css +8 -0
  1527. data/sproutcore/frameworks/testing/english.lproj/runner.css +128 -0
  1528. data/sproutcore/frameworks/testing/english.lproj/testsuite.css +136 -0
  1529. data/sproutcore/frameworks/testing/extras.js +17 -0
  1530. data/sproutcore/frameworks/testing/jquery.js +3559 -0
  1531. data/sproutcore/frameworks/testing/qunit.js +827 -0
  1532. data/sproutcore/frameworks/testing/system/dump.js +205 -0
  1533. data/sproutcore/frameworks/testing/system/equiv.js +201 -0
  1534. data/sproutcore/frameworks/testing/system/plan.js +703 -0
  1535. data/sproutcore/frameworks/testing/system/runner.js +220 -0
  1536. data/sproutcore/frameworks/testing/system/suite.js +228 -0
  1537. data/sproutcore/frameworks/testing/utils.js +62 -0
  1538. data/sproutcore/lib/index.rhtml +164 -0
  1539. data/sproutcore/license.js +31 -0
  1540. data/sproutcore/themes/ace/designs/dark.png +0 -0
  1541. data/sproutcore/themes/ace/designs/dark.psd +0 -0
  1542. data/sproutcore/themes/ace/designs/light.png +0 -0
  1543. data/sproutcore/themes/ace/designs/light.psd +0 -0
  1544. data/sproutcore/themes/ace/designs/psds/button/ace/18px/active_button.psd +0 -0
  1545. data/sproutcore/themes/ace/designs/psds/button/ace/18px/normal_button.psd +0 -0
  1546. data/sproutcore/themes/ace/designs/psds/button/ace/18px/selected_active_button.psd +0 -0
  1547. data/sproutcore/themes/ace/designs/psds/button/ace/18px/selected_button.psd +0 -0
  1548. data/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button.psd +0 -0
  1549. data/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button_capsule.psd +0 -0
  1550. data/sproutcore/themes/ace/designs/psds/button/ace/24px/active_button_pointer.psd +0 -0
  1551. data/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button.psd +0 -0
  1552. data/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button_capsule.psd +0 -0
  1553. data/sproutcore/themes/ace/designs/psds/button/ace/24px/normal_button_pointer.psd +0 -0
  1554. data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button.psd +0 -0
  1555. data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button_capsule.psd +0 -0
  1556. data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_active_button_pointer.psd +0 -0
  1557. data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button.psd +0 -0
  1558. data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button_capsule.psd +0 -0
  1559. data/sproutcore/themes/ace/designs/psds/button/ace/24px/selected_button_pointer.psd +0 -0
  1560. data/sproutcore/themes/ace/designs/psds/button/ace/30px/active_button.psd +0 -0
  1561. data/sproutcore/themes/ace/designs/psds/button/ace/30px/active_button_pointer.psd +0 -0
  1562. data/sproutcore/themes/ace/designs/psds/button/ace/30px/normal_button.psd +0 -0
  1563. data/sproutcore/themes/ace/designs/psds/button/ace/30px/normal_button_pointer.psd +0 -0
  1564. data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_active_button.psd +0 -0
  1565. data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_active_button_pointer.psd +0 -0
  1566. data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_button.psd +0 -0
  1567. data/sproutcore/themes/ace/designs/psds/button/ace/30px/selected_button_pointer.psd +0 -0
  1568. data/sproutcore/themes/ace/designs/psds/button/ace/44px/active_button.psd +0 -0
  1569. data/sproutcore/themes/ace/designs/psds/button/ace/44px/normal_button.psd +0 -0
  1570. data/sproutcore/themes/ace/designs/psds/button/ace/44px/selected_active_button.psd +0 -0
  1571. data/sproutcore/themes/ace/designs/psds/button/ace/44px/selected_button.psd +0 -0
  1572. data/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button.psd +0 -0
  1573. data/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button_capsule.psd +0 -0
  1574. data/sproutcore/themes/ace/designs/psds/button/dark/24px/active_button_pointer.psd +0 -0
  1575. data/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button.psd +0 -0
  1576. data/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button_capsule.psd +0 -0
  1577. data/sproutcore/themes/ace/designs/psds/button/dark/24px/normal_button_pointer.psd +0 -0
  1578. data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button.psd +0 -0
  1579. data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button_capsule.psd +0 -0
  1580. data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_active_button_pointer.psd +0 -0
  1581. data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button.psd +0 -0
  1582. data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button_capsule.psd +0 -0
  1583. data/sproutcore/themes/ace/designs/psds/button/dark/24px/selected_button_pointer.psd +0 -0
  1584. data/sproutcore/themes/ace/designs/psds/button/dark/30px/active_button.psd +0 -0
  1585. data/sproutcore/themes/ace/designs/psds/button/dark/30px/active_button_pointer.psd +0 -0
  1586. data/sproutcore/themes/ace/designs/psds/button/dark/30px/normal_button.psd +0 -0
  1587. data/sproutcore/themes/ace/designs/psds/button/dark/30px/normal_button_pointer.psd +0 -0
  1588. data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_active_button.psd +0 -0
  1589. data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_active_button_pointer.psd +0 -0
  1590. data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_button.psd +0 -0
  1591. data/sproutcore/themes/ace/designs/psds/button/dark/30px/selected_button_pointer.psd +0 -0
  1592. data/sproutcore/themes/ace/designs/psds/button/popup/active_select.psd +0 -0
  1593. data/sproutcore/themes/ace/designs/psds/button/popup/normal_select.psd +0 -0
  1594. data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_checked.psd +0 -0
  1595. data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_checked_active.psd +0 -0
  1596. data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_mixed.psd +0 -0
  1597. data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_mixed_active.psd +0 -0
  1598. data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_unchecked.psd +0 -0
  1599. data/sproutcore/themes/ace/designs/psds/checkbox/ace/14px/checkbox_unchecked_active.psd +0 -0
  1600. data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_checked.psd +0 -0
  1601. data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_checked_active.psd +0 -0
  1602. data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_mixed.psd +0 -0
  1603. data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_mixed_active.psd +0 -0
  1604. data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_unchecked.psd +0 -0
  1605. data/sproutcore/themes/ace/designs/psds/checkbox/ace/16px/checkbox_unchecked_active.psd +0 -0
  1606. data/sproutcore/themes/ace/designs/psds/collection/source-list/selection.psd +0 -0
  1607. data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_closed.psd +0 -0
  1608. data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_closed_active.psd +0 -0
  1609. data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_open.psd +0 -0
  1610. data/sproutcore/themes/ace/designs/psds/disclosure/ace/disclosure_open_active.psd +0 -0
  1611. data/sproutcore/themes/ace/designs/psds/menu/checkmark.psd +0 -0
  1612. data/sproutcore/themes/ace/designs/psds/menu/checkmark_active.psd +0 -0
  1613. data/sproutcore/themes/ace/designs/psds/menu/down.psd +0 -0
  1614. data/sproutcore/themes/ace/designs/psds/menu/menu.psd +0 -0
  1615. data/sproutcore/themes/ace/designs/psds/menu/menu_item.psd +0 -0
  1616. data/sproutcore/themes/ace/designs/psds/menu/up.psd +0 -0
  1617. data/sproutcore/themes/ace/designs/psds/panel/panel.psd +0 -0
  1618. data/sproutcore/themes/ace/designs/psds/panel/pointers.psd +0 -0
  1619. data/sproutcore/themes/ace/designs/psds/picker/popover/popover.psd +0 -0
  1620. data/sproutcore/themes/ace/designs/psds/picker/popover/popover_empty.psd +0 -0
  1621. data/sproutcore/themes/ace/designs/psds/picker/popover/popover_notoolbar.psd +0 -0
  1622. data/sproutcore/themes/ace/designs/psds/picker/popover/popover_pointers.psd +0 -0
  1623. data/sproutcore/themes/ace/designs/psds/picker/popover/popover_pointers_notoolbar.psd +0 -0
  1624. data/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_content.psd +0 -0
  1625. data/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_indeterminate_content.psd +0 -0
  1626. data/sproutcore/themes/ace/designs/psds/progress/ace/progress_view_track.psd +0 -0
  1627. data/sproutcore/themes/ace/designs/psds/radio/radio_active.psd +0 -0
  1628. data/sproutcore/themes/ace/designs/psds/radio/radio_mixed.psd +0 -0
  1629. data/sproutcore/themes/ace/designs/psds/radio/radio_mixed_active.psd +0 -0
  1630. data/sproutcore/themes/ace/designs/psds/radio/radio_selected.psd +0 -0
  1631. data/sproutcore/themes/ace/designs/psds/radio/radio_selected_active.psd +0 -0
  1632. data/sproutcore/themes/ace/designs/psds/radio/radio_unselected.psd +0 -0
  1633. data/sproutcore/themes/ace/designs/psds/scroller/horizontal/thumb.psd +0 -0
  1634. data/sproutcore/themes/ace/designs/psds/scroller/horizontal/track_and_arrows.psd +0 -0
  1635. data/sproutcore/themes/ace/designs/psds/scroller/horizontal/track_and_arrows_active.psd +0 -0
  1636. data/sproutcore/themes/ace/designs/psds/scroller/vertical/thumb.psd +0 -0
  1637. data/sproutcore/themes/ace/designs/psds/scroller/vertical/track_and_arrows.psd +0 -0
  1638. data/sproutcore/themes/ace/designs/psds/scroller/vertical/track_and_arrows_active.psd +0 -0
  1639. data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_active.psd +0 -0
  1640. data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_normal.psd +0 -0
  1641. data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_selected.psd +0 -0
  1642. data/sproutcore/themes/ace/designs/psds/segmented/18px/segmented_selected_active.psd +0 -0
  1643. data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_active.psd +0 -0
  1644. data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_normal.psd +0 -0
  1645. data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_selected.psd +0 -0
  1646. data/sproutcore/themes/ace/designs/psds/segmented/24px/segmented_selected_active.psd +0 -0
  1647. data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_active.psd +0 -0
  1648. data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_normal.psd +0 -0
  1649. data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_selected.psd +0 -0
  1650. data/sproutcore/themes/ace/designs/psds/segmented/30px/segmented_selected_active.psd +0 -0
  1651. data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_active.psd +0 -0
  1652. data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_normal.psd +0 -0
  1653. data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_selected.psd +0 -0
  1654. data/sproutcore/themes/ace/designs/psds/segmented/44px/segmented_selected_active.psd +0 -0
  1655. data/sproutcore/themes/ace/designs/psds/slider/ace/14px/knob.psd +0 -0
  1656. data/sproutcore/themes/ace/designs/psds/slider/ace/14px/knob_active.psd +0 -0
  1657. data/sproutcore/themes/ace/designs/psds/slider/ace/16px/knob.psd +0 -0
  1658. data/sproutcore/themes/ace/designs/psds/slider/ace/16px/knob_active.psd +0 -0
  1659. data/sproutcore/themes/ace/designs/psds/slider/ace/22px/knob.psd +0 -0
  1660. data/sproutcore/themes/ace/designs/psds/slider/ace/22px/knob_active.psd +0 -0
  1661. data/sproutcore/themes/ace/designs/psds/slider/ace/22px/track.psd +0 -0
  1662. data/sproutcore/themes/ace/designs/psds/slider/ace/track.psd +0 -0
  1663. data/sproutcore/themes/ace/designs/psds/toolbar/toolbar.psd +0 -0
  1664. data/sproutcore/themes/ace/designs/switch/switch.psd +0 -0
  1665. data/sproutcore/themes/ace/designs/switch/switch_handle.png +0 -0
  1666. data/sproutcore/themes/ace/designs/switch/switch_handle.psd +0 -0
  1667. data/sproutcore/themes/ace/designs/switch/switch_off.png +0 -0
  1668. data/sproutcore/themes/ace/designs/switch/switch_off.psd +0 -0
  1669. data/sproutcore/themes/ace/designs/switch/switch_on.png +0 -0
  1670. data/sproutcore/themes/ace/designs/switch/switch_on.psd +0 -0
  1671. data/sproutcore/themes/ace/resources/body.css +13 -0
  1672. data/sproutcore/themes/ace/resources/button/ace/18px/active_button.png +0 -0
  1673. data/sproutcore/themes/ace/resources/button/ace/18px/button.css +33 -0
  1674. data/sproutcore/themes/ace/resources/button/ace/18px/normal_button.png +0 -0
  1675. data/sproutcore/themes/ace/resources/button/ace/18px/selected_active_button.png +0 -0
  1676. data/sproutcore/themes/ace/resources/button/ace/18px/selected_button.png +0 -0
  1677. data/sproutcore/themes/ace/resources/button/ace/24px/active_button.png +0 -0
  1678. data/sproutcore/themes/ace/resources/button/ace/24px/active_button_capsule.png +0 -0
  1679. data/sproutcore/themes/ace/resources/button/ace/24px/active_button_pointer.png +0 -0
  1680. data/sproutcore/themes/ace/resources/button/ace/24px/button.css +98 -0
  1681. data/sproutcore/themes/ace/resources/button/ace/24px/normal_button.png +0 -0
  1682. data/sproutcore/themes/ace/resources/button/ace/24px/normal_button_capsule.png +0 -0
  1683. data/sproutcore/themes/ace/resources/button/ace/24px/normal_button_pointer.png +0 -0
  1684. data/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button.png +0 -0
  1685. data/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_capsule.png +0 -0
  1686. data/sproutcore/themes/ace/resources/button/ace/24px/selected_active_button_pointer.png +0 -0
  1687. data/sproutcore/themes/ace/resources/button/ace/24px/selected_button.png +0 -0
  1688. data/sproutcore/themes/ace/resources/button/ace/24px/selected_button_capsule.png +0 -0
  1689. data/sproutcore/themes/ace/resources/button/ace/24px/selected_button_pointer.png +0 -0
  1690. data/sproutcore/themes/ace/resources/button/ace/30px/active_button.png +0 -0
  1691. data/sproutcore/themes/ace/resources/button/ace/30px/active_button_pointer.png +0 -0
  1692. data/sproutcore/themes/ace/resources/button/ace/30px/button.css +78 -0
  1693. data/sproutcore/themes/ace/resources/button/ace/30px/normal_button.png +0 -0
  1694. data/sproutcore/themes/ace/resources/button/ace/30px/normal_button_pointer.png +0 -0
  1695. data/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button.png +0 -0
  1696. data/sproutcore/themes/ace/resources/button/ace/30px/selected_active_button_pointer.png +0 -0
  1697. data/sproutcore/themes/ace/resources/button/ace/30px/selected_button.png +0 -0
  1698. data/sproutcore/themes/ace/resources/button/ace/30px/selected_button_pointer.png +0 -0
  1699. data/sproutcore/themes/ace/resources/button/ace/44px/active_button.png +0 -0
  1700. data/sproutcore/themes/ace/resources/button/ace/44px/button.css +39 -0
  1701. data/sproutcore/themes/ace/resources/button/ace/44px/normal_button.png +0 -0
  1702. data/sproutcore/themes/ace/resources/button/ace/44px/selected_active_button.png +0 -0
  1703. data/sproutcore/themes/ace/resources/button/ace/44px/selected_button.png +0 -0
  1704. data/sproutcore/themes/ace/resources/button/ace/button.css +36 -0
  1705. data/sproutcore/themes/ace/resources/button/button.js +75 -0
  1706. data/sproutcore/themes/ace/resources/button/dark/24px/active_button.png +0 -0
  1707. data/sproutcore/themes/ace/resources/button/dark/24px/active_button_capsule.png +0 -0
  1708. data/sproutcore/themes/ace/resources/button/dark/24px/active_button_pointer.png +0 -0
  1709. data/sproutcore/themes/ace/resources/button/dark/24px/button.css +93 -0
  1710. data/sproutcore/themes/ace/resources/button/dark/24px/normal_button.png +0 -0
  1711. data/sproutcore/themes/ace/resources/button/dark/24px/normal_button_capsule.png +0 -0
  1712. data/sproutcore/themes/ace/resources/button/dark/24px/normal_button_pointer.png +0 -0
  1713. data/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button.png +0 -0
  1714. data/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_capsule.png +0 -0
  1715. data/sproutcore/themes/ace/resources/button/dark/24px/selected_active_button_pointer.png +0 -0
  1716. data/sproutcore/themes/ace/resources/button/dark/24px/selected_button.png +0 -0
  1717. data/sproutcore/themes/ace/resources/button/dark/24px/selected_button_capsule.png +0 -0
  1718. data/sproutcore/themes/ace/resources/button/dark/24px/selected_button_pointer.png +0 -0
  1719. data/sproutcore/themes/ace/resources/button/dark/30px/active_button.png +0 -0
  1720. data/sproutcore/themes/ace/resources/button/dark/30px/active_button_pointer.png +0 -0
  1721. data/sproutcore/themes/ace/resources/button/dark/30px/button.css +72 -0
  1722. data/sproutcore/themes/ace/resources/button/dark/30px/normal_button.png +0 -0
  1723. data/sproutcore/themes/ace/resources/button/dark/30px/normal_button_pointer.png +0 -0
  1724. data/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button.png +0 -0
  1725. data/sproutcore/themes/ace/resources/button/dark/30px/selected_active_button_pointer.png +0 -0
  1726. data/sproutcore/themes/ace/resources/button/dark/30px/selected_button.png +0 -0
  1727. data/sproutcore/themes/ace/resources/button/dark/30px/selected_button_pointer.png +0 -0
  1728. data/sproutcore/themes/ace/resources/button/dark/button.css +17 -0
  1729. data/sproutcore/themes/ace/resources/button/dark/button.js +3 -0
  1730. data/sproutcore/themes/ace/resources/button/popup/active_select.png +0 -0
  1731. data/sproutcore/themes/ace/resources/button/popup/normal_select.png +0 -0
  1732. data/sproutcore/themes/ace/resources/button/popup/select.css +20 -0
  1733. data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox.css +40 -0
  1734. data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked.png +0 -0
  1735. data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_checked_active.png +0 -0
  1736. data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed.png +0 -0
  1737. data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_mixed_active.png +0 -0
  1738. data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked.png +0 -0
  1739. data/sproutcore/themes/ace/resources/checkbox/ace/14px/checkbox_unchecked_active.png +0 -0
  1740. data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox.css +40 -0
  1741. data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked.png +0 -0
  1742. data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_checked_active.png +0 -0
  1743. data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed.png +0 -0
  1744. data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_mixed_active.png +0 -0
  1745. data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked.png +0 -0
  1746. data/sproutcore/themes/ace/resources/checkbox/ace/16px/checkbox_unchecked_active.png +0 -0
  1747. data/sproutcore/themes/ace/resources/checkbox/ace/checkbox.css +7 -0
  1748. data/sproutcore/themes/ace/resources/collection/normal/list.css +4 -0
  1749. data/sproutcore/themes/ace/resources/collection/normal/list_item.css +17 -0
  1750. data/sproutcore/themes/ace/resources/collection/source-list/selection.png +0 -0
  1751. data/sproutcore/themes/ace/resources/collection/source-list/source-list.js +3 -0
  1752. data/sproutcore/themes/ace/resources/collection/source-list/source_list_view.css +36 -0
  1753. data/sproutcore/themes/ace/resources/disclosure/ace/disclosure.css +24 -0
  1754. data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed.png +0 -0
  1755. data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_closed_active.png +0 -0
  1756. data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open.png +0 -0
  1757. data/sproutcore/themes/ace/resources/disclosure/ace/disclosure_open_active.png +0 -0
  1758. data/sproutcore/themes/ace/resources/imagebutton/ace/imagebutton.css +11 -0
  1759. data/sproutcore/themes/ace/resources/loading.css +50 -0
  1760. data/sproutcore/themes/ace/resources/master-detail/master-detail.css +27 -0
  1761. data/sproutcore/themes/ace/resources/menu/checkmark.png +0 -0
  1762. data/sproutcore/themes/ace/resources/menu/checkmark_active.png +0 -0
  1763. data/sproutcore/themes/ace/resources/menu/down.png +0 -0
  1764. data/sproutcore/themes/ace/resources/menu/menu.css +75 -0
  1765. data/sproutcore/themes/ace/resources/menu/menu.png +0 -0
  1766. data/sproutcore/themes/ace/resources/menu/menu_item.png +0 -0
  1767. data/sproutcore/themes/ace/resources/menu/up.png +0 -0
  1768. data/sproutcore/themes/ace/resources/pane/pane.css +3 -0
  1769. data/sproutcore/themes/ace/resources/panel/panel.css +13 -0
  1770. data/sproutcore/themes/ace/resources/panel/panel.js +20 -0
  1771. data/sproutcore/themes/ace/resources/panel/panel.png +0 -0
  1772. data/sproutcore/themes/ace/resources/picker/ace/panel.png +0 -0
  1773. data/sproutcore/themes/ace/resources/picker/ace/picker.css +41 -0
  1774. data/sproutcore/themes/ace/resources/picker/ace/picker.js +0 -0
  1775. data/sproutcore/themes/ace/resources/picker/ace/pointers.png +0 -0
  1776. data/sproutcore/themes/ace/resources/picker/popover/picker.js +32 -0
  1777. data/sproutcore/themes/ace/resources/picker/popover/popover.css +111 -0
  1778. data/sproutcore/themes/ace/resources/picker/popover/popover.js +12 -0
  1779. data/sproutcore/themes/ace/resources/picker/popover/popover.png +0 -0
  1780. data/sproutcore/themes/ace/resources/picker/popover/popover_empty.png +0 -0
  1781. data/sproutcore/themes/ace/resources/picker/popover/popover_notoolbar.png +0 -0
  1782. data/sproutcore/themes/ace/resources/picker/popover/popover_pointers.png +0 -0
  1783. data/sproutcore/themes/ace/resources/picker/popover/popover_pointers_notoolbar.png +0 -0
  1784. data/sproutcore/themes/ace/resources/picker/popover/workspace.js +28 -0
  1785. data/sproutcore/themes/ace/resources/progress/ace/progress.css +27 -0
  1786. data/sproutcore/themes/ace/resources/progress/ace/progress_view_content.png +0 -0
  1787. data/sproutcore/themes/ace/resources/progress/ace/progress_view_track.png +0 -0
  1788. data/sproutcore/themes/ace/resources/progress/progress.js +78 -0
  1789. data/sproutcore/themes/ace/resources/radio/radio.css +63 -0
  1790. data/sproutcore/themes/ace/resources/radio/radio_active.png +0 -0
  1791. data/sproutcore/themes/ace/resources/radio/radio_mixed.png +0 -0
  1792. data/sproutcore/themes/ace/resources/radio/radio_mixed_active.png +0 -0
  1793. data/sproutcore/themes/ace/resources/radio/radio_selected.png +0 -0
  1794. data/sproutcore/themes/ace/resources/radio/radio_selected_active.png +0 -0
  1795. data/sproutcore/themes/ace/resources/radio/radio_unselected.png +0 -0
  1796. data/sproutcore/themes/ace/resources/scroller/horizontal/horizontal.css +78 -0
  1797. data/sproutcore/themes/ace/resources/scroller/horizontal/horizontal_touch.css +91 -0
  1798. data/sproutcore/themes/ace/resources/scroller/horizontal/thumb.png +0 -0
  1799. data/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows.png +0 -0
  1800. data/sproutcore/themes/ace/resources/scroller/horizontal/track_and_arrows_active.png +0 -0
  1801. data/sproutcore/themes/ace/resources/scroller/vertical/thumb.png +0 -0
  1802. data/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows.png +0 -0
  1803. data/sproutcore/themes/ace/resources/scroller/vertical/track_and_arrows_active.png +0 -0
  1804. data/sproutcore/themes/ace/resources/scroller/vertical/vertical.css +80 -0
  1805. data/sproutcore/themes/ace/resources/scroller/vertical/vertical_touch.css +92 -0
  1806. data/sproutcore/themes/ace/resources/segmented/18px/segmented.css +91 -0
  1807. data/sproutcore/themes/ace/resources/segmented/18px/segmented_active.png +0 -0
  1808. data/sproutcore/themes/ace/resources/segmented/18px/segmented_normal.png +0 -0
  1809. data/sproutcore/themes/ace/resources/segmented/18px/segmented_selected.png +0 -0
  1810. data/sproutcore/themes/ace/resources/segmented/18px/segmented_selected_active.png +0 -0
  1811. data/sproutcore/themes/ace/resources/segmented/24px/segmented.css +91 -0
  1812. data/sproutcore/themes/ace/resources/segmented/24px/segmented_active.png +0 -0
  1813. data/sproutcore/themes/ace/resources/segmented/24px/segmented_normal.png +0 -0
  1814. data/sproutcore/themes/ace/resources/segmented/24px/segmented_selected.png +0 -0
  1815. data/sproutcore/themes/ace/resources/segmented/24px/segmented_selected_active.png +0 -0
  1816. data/sproutcore/themes/ace/resources/segmented/30px/segmented.css +91 -0
  1817. data/sproutcore/themes/ace/resources/segmented/30px/segmented_active.png +0 -0
  1818. data/sproutcore/themes/ace/resources/segmented/30px/segmented_normal.png +0 -0
  1819. data/sproutcore/themes/ace/resources/segmented/30px/segmented_selected.png +0 -0
  1820. data/sproutcore/themes/ace/resources/segmented/30px/segmented_selected_active.png +0 -0
  1821. data/sproutcore/themes/ace/resources/segmented/44px/segmented.css +95 -0
  1822. data/sproutcore/themes/ace/resources/segmented/44px/segmented_active.png +0 -0
  1823. data/sproutcore/themes/ace/resources/segmented/44px/segmented_normal.png +0 -0
  1824. data/sproutcore/themes/ace/resources/segmented/44px/segmented_selected.png +0 -0
  1825. data/sproutcore/themes/ace/resources/segmented/44px/segmented_selected_active.png +0 -0
  1826. data/sproutcore/themes/ace/resources/segmented/segmented.css +83 -0
  1827. data/sproutcore/themes/ace/resources/slider/ace/14px/knob.png +0 -0
  1828. data/sproutcore/themes/ace/resources/slider/ace/14px/knob_active.png +0 -0
  1829. data/sproutcore/themes/ace/resources/slider/ace/14px/slider.css +27 -0
  1830. data/sproutcore/themes/ace/resources/slider/ace/16px/knob.png +0 -0
  1831. data/sproutcore/themes/ace/resources/slider/ace/16px/knob_active.png +0 -0
  1832. data/sproutcore/themes/ace/resources/slider/ace/16px/slider.css +27 -0
  1833. data/sproutcore/themes/ace/resources/slider/ace/22px/knob.png +0 -0
  1834. data/sproutcore/themes/ace/resources/slider/ace/22px/knob_active.png +0 -0
  1835. data/sproutcore/themes/ace/resources/slider/ace/22px/slider.css +27 -0
  1836. data/sproutcore/themes/ace/resources/slider/ace/22px/track.png +0 -0
  1837. data/sproutcore/themes/ace/resources/slider/ace/slider.css +7 -0
  1838. data/sproutcore/themes/ace/resources/slider/ace/slider.js +56 -0
  1839. data/sproutcore/themes/ace/resources/slider/ace/track.png +0 -0
  1840. data/sproutcore/themes/ace/resources/split/split.css +5 -0
  1841. data/sproutcore/themes/ace/resources/tab/tab.css +3 -0
  1842. data/sproutcore/themes/ace/resources/toolbar/toolbar.css +8 -0
  1843. data/sproutcore/themes/ace/resources/toolbar/toolbar.png +0 -0
  1844. data/sproutcore/themes/ace/resources/well/well.css +7 -0
  1845. data/sproutcore/themes/ace/resources/well/well.js +17 -0
  1846. data/sproutcore/themes/ace/theme.js +14 -0
  1847. data/sproutcore/themes/empty_theme/tests/mini_icons.rhtml +69 -0
  1848. data/sproutcore/themes/empty_theme/theme.js +16 -0
  1849. data/sproutcore/themes/iphone_theme/english.lproj/button.css +41 -0
  1850. data/sproutcore/themes/iphone_theme/english.lproj/core.css +8 -0
  1851. data/sproutcore/themes/iphone_theme/english.lproj/images/backButton.png +0 -0
  1852. data/sproutcore/themes/iphone_theme/english.lproj/images/blueButton.png +0 -0
  1853. data/sproutcore/themes/iphone_theme/english.lproj/images/cancel.png +0 -0
  1854. data/sproutcore/themes/iphone_theme/english.lproj/images/grayButton.png +0 -0
  1855. data/sproutcore/themes/iphone_theme/english.lproj/images/leftButton.png +0 -0
  1856. data/sproutcore/themes/iphone_theme/english.lproj/images/listArrow.png +0 -0
  1857. data/sproutcore/themes/iphone_theme/english.lproj/images/listArrowSel.png +0 -0
  1858. data/sproutcore/themes/iphone_theme/english.lproj/images/listGroup.png +0 -0
  1859. data/sproutcore/themes/iphone_theme/english.lproj/images/loading.gif +0 -0
  1860. data/sproutcore/themes/iphone_theme/english.lproj/images/pinstripes.png +0 -0
  1861. data/sproutcore/themes/iphone_theme/english.lproj/images/rightButton.png +0 -0
  1862. data/sproutcore/themes/iphone_theme/english.lproj/images/selection.png +0 -0
  1863. data/sproutcore/themes/iphone_theme/english.lproj/images/thumb.png +0 -0
  1864. data/sproutcore/themes/iphone_theme/english.lproj/images/toggle.png +0 -0
  1865. data/sproutcore/themes/iphone_theme/english.lproj/images/toggleOn.png +0 -0
  1866. data/sproutcore/themes/iphone_theme/english.lproj/images/toolButton.png +0 -0
  1867. data/sproutcore/themes/iphone_theme/english.lproj/images/toolbar.png +0 -0
  1868. data/sproutcore/themes/iphone_theme/english.lproj/images/whiteButton.png +0 -0
  1869. data/sproutcore/themes/iphone_theme/english.lproj/strings.js +15 -0
  1870. data/sproutcore/themes/standard_theme/Source/Panel.drawit/Data +0 -0
  1871. data/sproutcore/themes/standard_theme/Source/Panel.drawit/QuickLook/Preview.jpg +0 -0
  1872. data/sproutcore/themes/standard_theme/Source/Panel.drawit/QuickLook/Thumbnail.jpg +0 -0
  1873. data/sproutcore/themes/standard_theme/Source/SproutCore Theme Buttons.psd +0 -0
  1874. data/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/Data +0 -0
  1875. data/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Preview.jpg +0 -0
  1876. data/sproutcore/themes/standard_theme/Source/ToolbarView Pattern.drawit/QuickLook/Thumbnail.jpg +0 -0
  1877. data/sproutcore/themes/standard_theme/Source/icons/16/10.png +0 -0
  1878. data/sproutcore/themes/standard_theme/Source/icons/16/100.png +0 -0
  1879. data/sproutcore/themes/standard_theme/Source/icons/16/102.png +0 -0
  1880. data/sproutcore/themes/standard_theme/Source/icons/16/110.png +0 -0
  1881. data/sproutcore/themes/standard_theme/Source/icons/16/120.png +0 -0
  1882. data/sproutcore/themes/standard_theme/Source/icons/16/127.png +0 -0
  1883. data/sproutcore/themes/standard_theme/Source/icons/16/18.png +0 -0
  1884. data/sproutcore/themes/standard_theme/Source/icons/16/19.png +0 -0
  1885. data/sproutcore/themes/standard_theme/Source/icons/16/2.png +0 -0
  1886. data/sproutcore/themes/standard_theme/Source/icons/16/24.png +0 -0
  1887. data/sproutcore/themes/standard_theme/Source/icons/16/26.png +0 -0
  1888. data/sproutcore/themes/standard_theme/Source/icons/16/27.png +0 -0
  1889. data/sproutcore/themes/standard_theme/Source/icons/16/28.png +0 -0
  1890. data/sproutcore/themes/standard_theme/Source/icons/16/29.png +0 -0
  1891. data/sproutcore/themes/standard_theme/Source/icons/16/30.png +0 -0
  1892. data/sproutcore/themes/standard_theme/Source/icons/16/31.png +0 -0
  1893. data/sproutcore/themes/standard_theme/Source/icons/16/33.png +0 -0
  1894. data/sproutcore/themes/standard_theme/Source/icons/16/37.png +0 -0
  1895. data/sproutcore/themes/standard_theme/Source/icons/16/41.png +0 -0
  1896. data/sproutcore/themes/standard_theme/Source/icons/16/99.png +0 -0
  1897. data/sproutcore/themes/standard_theme/Source/icons/24/10.png +0 -0
  1898. data/sproutcore/themes/standard_theme/Source/icons/24/100.png +0 -0
  1899. data/sproutcore/themes/standard_theme/Source/icons/24/102.png +0 -0
  1900. data/sproutcore/themes/standard_theme/Source/icons/24/110.png +0 -0
  1901. data/sproutcore/themes/standard_theme/Source/icons/24/120.png +0 -0
  1902. data/sproutcore/themes/standard_theme/Source/icons/24/127.png +0 -0
  1903. data/sproutcore/themes/standard_theme/Source/icons/24/18.png +0 -0
  1904. data/sproutcore/themes/standard_theme/Source/icons/24/19.png +0 -0
  1905. data/sproutcore/themes/standard_theme/Source/icons/24/2.png +0 -0
  1906. data/sproutcore/themes/standard_theme/Source/icons/24/24.png +0 -0
  1907. data/sproutcore/themes/standard_theme/Source/icons/24/26.png +0 -0
  1908. data/sproutcore/themes/standard_theme/Source/icons/24/27.png +0 -0
  1909. data/sproutcore/themes/standard_theme/Source/icons/24/28.png +0 -0
  1910. data/sproutcore/themes/standard_theme/Source/icons/24/29.png +0 -0
  1911. data/sproutcore/themes/standard_theme/Source/icons/24/30.png +0 -0
  1912. data/sproutcore/themes/standard_theme/Source/icons/24/31.png +0 -0
  1913. data/sproutcore/themes/standard_theme/Source/icons/24/33.png +0 -0
  1914. data/sproutcore/themes/standard_theme/Source/icons/24/37.png +0 -0
  1915. data/sproutcore/themes/standard_theme/Source/icons/24/41.png +0 -0
  1916. data/sproutcore/themes/standard_theme/Source/icons/24/99.png +0 -0
  1917. data/sproutcore/themes/standard_theme/Source/icons/32/10.png +0 -0
  1918. data/sproutcore/themes/standard_theme/Source/icons/32/100.png +0 -0
  1919. data/sproutcore/themes/standard_theme/Source/icons/32/102.png +0 -0
  1920. data/sproutcore/themes/standard_theme/Source/icons/32/110.png +0 -0
  1921. data/sproutcore/themes/standard_theme/Source/icons/32/120.png +0 -0
  1922. data/sproutcore/themes/standard_theme/Source/icons/32/127.png +0 -0
  1923. data/sproutcore/themes/standard_theme/Source/icons/32/18.png +0 -0
  1924. data/sproutcore/themes/standard_theme/Source/icons/32/19.png +0 -0
  1925. data/sproutcore/themes/standard_theme/Source/icons/32/2.png +0 -0
  1926. data/sproutcore/themes/standard_theme/Source/icons/32/24.png +0 -0
  1927. data/sproutcore/themes/standard_theme/Source/icons/32/26.png +0 -0
  1928. data/sproutcore/themes/standard_theme/Source/icons/32/27.png +0 -0
  1929. data/sproutcore/themes/standard_theme/Source/icons/32/28.png +0 -0
  1930. data/sproutcore/themes/standard_theme/Source/icons/32/29.png +0 -0
  1931. data/sproutcore/themes/standard_theme/Source/icons/32/30.png +0 -0
  1932. data/sproutcore/themes/standard_theme/Source/icons/32/31.png +0 -0
  1933. data/sproutcore/themes/standard_theme/Source/icons/32/33.png +0 -0
  1934. data/sproutcore/themes/standard_theme/Source/icons/32/37.png +0 -0
  1935. data/sproutcore/themes/standard_theme/Source/icons/32/41.png +0 -0
  1936. data/sproutcore/themes/standard_theme/Source/icons/32/99.png +0 -0
  1937. data/sproutcore/themes/standard_theme/Source/icons/48/10.png +0 -0
  1938. data/sproutcore/themes/standard_theme/Source/icons/48/18.png +0 -0
  1939. data/sproutcore/themes/standard_theme/Source/icons/48/19.png +0 -0
  1940. data/sproutcore/themes/standard_theme/Source/icons/48/2.png +0 -0
  1941. data/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/Data +0 -0
  1942. data/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/QuickLook/Preview.jpg +0 -0
  1943. data/sproutcore/themes/standard_theme/Source/panel-sprite-x.drawit/QuickLook/Thumbnail.jpg +0 -0
  1944. data/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/Data +0 -0
  1945. data/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/QuickLook/Preview.jpg +0 -0
  1946. data/sproutcore/themes/standard_theme/Source/panel-sprite-y.drawit/QuickLook/Thumbnail.jpg +0 -0
  1947. data/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x-2.psd +0 -0
  1948. data/sproutcore/themes/standard_theme/Source/sc-theme-repeat-x.psd +0 -0
  1949. data/sproutcore/themes/standard_theme/Source/sc-theme-sprite.psd +0 -0
  1950. data/sproutcore/themes/standard_theme/Source/sc-theme-ysprite.psd +0 -0
  1951. data/sproutcore/themes/standard_theme/Source/shared-icons.psd +0 -0
  1952. data/sproutcore/themes/standard_theme/Source/sproutcore-logo.psd +0 -0
  1953. data/sproutcore/themes/standard_theme/Source/sticky-note.psd +0 -0
  1954. data/sproutcore/themes/standard_theme/english.lproj/button.css +399 -0
  1955. data/sproutcore/themes/standard_theme/english.lproj/checkbox.css +78 -0
  1956. data/sproutcore/themes/standard_theme/english.lproj/collection.css +135 -0
  1957. data/sproutcore/themes/standard_theme/english.lproj/core.css +76 -0
  1958. data/sproutcore/themes/standard_theme/english.lproj/disclosure.css +57 -0
  1959. data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_222222.png +0 -0
  1960. data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_454545.png +0 -0
  1961. data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_888888.png +0 -0
  1962. data/sproutcore/themes/standard_theme/english.lproj/images/icons/mini_ffffff.png +0 -0
  1963. data/sproutcore/themes/standard_theme/english.lproj/images/panels/sprite-x.png +0 -0
  1964. data/sproutcore/themes/standard_theme/english.lproj/images/panels/sprite-y.png +0 -0
  1965. data/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-repeat-x.png +0 -0
  1966. data/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-repeat-y.png +0 -0
  1967. data/sproutcore/themes/standard_theme/english.lproj/images/sc-scroller-sprite.png +0 -0
  1968. data/sproutcore/themes/standard_theme/english.lproj/images/sc-theme-repeat-x.png +0 -0
  1969. data/sproutcore/themes/standard_theme/english.lproj/images/sc-theme-ysprite.png +0 -0
  1970. data/sproutcore/themes/standard_theme/english.lproj/images/sc-toolbar-view.png +0 -0
  1971. data/sproutcore/themes/standard_theme/english.lproj/label.css +11 -0
  1972. data/sproutcore/themes/standard_theme/english.lproj/list_item.css +82 -0
  1973. data/sproutcore/themes/standard_theme/english.lproj/menu.css +20 -0
  1974. data/sproutcore/themes/standard_theme/english.lproj/menu_item_view.css +36 -0
  1975. data/sproutcore/themes/standard_theme/english.lproj/pane.css +18 -0
  1976. data/sproutcore/themes/standard_theme/english.lproj/panel.css +33 -0
  1977. data/sproutcore/themes/standard_theme/english.lproj/picker.css +17 -0
  1978. data/sproutcore/themes/standard_theme/english.lproj/progress.css +27 -0
  1979. data/sproutcore/themes/standard_theme/english.lproj/radio.css +125 -0
  1980. data/sproutcore/themes/standard_theme/english.lproj/scroller.css +159 -0
  1981. data/sproutcore/themes/standard_theme/english.lproj/segmented.css +270 -0
  1982. data/sproutcore/themes/standard_theme/english.lproj/slider.css +94 -0
  1983. data/sproutcore/themes/standard_theme/english.lproj/split_view.css +11 -0
  1984. data/sproutcore/themes/standard_theme/english.lproj/tab.css +14 -0
  1985. data/sproutcore/themes/standard_theme/english.lproj/table.css +14 -0
  1986. data/sproutcore/themes/standard_theme/english.lproj/text_field.css +5 -0
  1987. data/sproutcore/themes/standard_theme/english.lproj/toolbar.css +7 -0
  1988. data/sproutcore/themes/standard_theme/english.lproj/well.css +36 -0
  1989. data/test-spade.html +8 -0
  1990. metadata +2111 -0
@@ -0,0 +1,17 @@
1
+ // ==========================================================================
2
+ // Project: SproutCore Unit Testing 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
+ /*global Q$ synchronize */
9
+ // additional methods for use with qunit
10
+
11
+ /**
12
+ Call this method instead of test() to temporarily disable a test.
13
+ */
14
+ function notest(name, callback, nowait) {
15
+
16
+ }
17
+
@@ -0,0 +1,3559 @@
1
+ // NOTE: This version of jQuery has a line added at the end that remaps it to
2
+ // Q$, for private use by Qunit only. This way the jQuery library used by
3
+ // Qunit will not interfere with any other jQuery libs you might load.
4
+ // You should be able to merge this file with new versions of jQuery with
5
+ // minor effort.
6
+
7
+ (function(){
8
+ /*!
9
+ *
10
+ * jQuery 1.2.6 - New Wave Javascript
11
+ *
12
+ * Copyright (c) 2008 John Resig (jquery.com)
13
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
14
+ * and GPL (GPL-LICENSE.txt) licenses.
15
+ *
16
+ * $Date: 2008-05-24 14:22:17 -0400 (Sat, 24 May 2008) $
17
+ * $Rev: 5685 $
18
+ */
19
+
20
+ // Map over jQuery in case of overwrite
21
+ var _jQuery = window.jQuery,
22
+ // Map over the $ in case of overwrite
23
+ _$ = window.$;
24
+
25
+ var jQuery = window.jQuery = window.$ = function( selector, context ) {
26
+ // The jQuery object is actually just the init constructor 'enhanced'
27
+ return new jQuery.fn.init( selector, context );
28
+ };
29
+
30
+ // A simple way to check for HTML strings or ID strings
31
+ // (both of which we optimize for)
32
+ var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,
33
+
34
+ // Is it a simple selector
35
+ isSimple = /^.[^:#\[\.]*$/,
36
+
37
+ // Will speed up references to undefined, and allows munging its name.
38
+ undefined;
39
+
40
+ jQuery.fn = jQuery.prototype = {
41
+ init: function( selector, context ) {
42
+ // Make sure that a selection was provided
43
+ selector = selector || document;
44
+
45
+ // Handle $(DOMElement)
46
+ if ( selector.nodeType ) {
47
+ this[0] = selector;
48
+ this.length = 1;
49
+ return this;
50
+ }
51
+ // Handle HTML strings
52
+ if ( typeof selector == "string" ) {
53
+ // Are we dealing with HTML string or an ID?
54
+ var match = quickExpr.exec( selector );
55
+
56
+ // Verify a match, and that no context was specified for #id
57
+ if ( match && (match[1] || !context) ) {
58
+
59
+ // HANDLE: $(html) -> $(array)
60
+ if ( match[1] )
61
+ selector = jQuery.clean( [ match[1] ], context );
62
+
63
+ // HANDLE: $("#id")
64
+ else {
65
+ var elem = document.getElementById( match[3] );
66
+
67
+ // Make sure an element was located
68
+ if ( elem ){
69
+ // Handle the case where IE and Opera return items
70
+ // by name instead of ID
71
+ if ( elem.id != match[3] )
72
+ return jQuery().find( selector );
73
+
74
+ // Otherwise, we inject the element directly into the jQuery object
75
+ return jQuery( elem );
76
+ }
77
+ selector = [];
78
+ }
79
+
80
+ // HANDLE: $(expr, [context])
81
+ // (which is just equivalent to: $(content).find(expr)
82
+ } else
83
+ return jQuery( context ).find( selector );
84
+
85
+ // HANDLE: $(function)
86
+ // Shortcut for document ready
87
+ } else if ( jQuery.isFunction( selector ) )
88
+ return jQuery( document )[ jQuery.fn.ready ? "ready" : "load" ]( selector );
89
+
90
+ return this.setArray(jQuery.makeArray(selector));
91
+ },
92
+
93
+ // The current version of jQuery being used
94
+ jquery: "1.2.6",
95
+
96
+ // The number of elements contained in the matched element set
97
+ size: function() {
98
+ return this.length;
99
+ },
100
+
101
+ // The number of elements contained in the matched element set
102
+ length: 0,
103
+
104
+ // Get the Nth element in the matched element set OR
105
+ // Get the whole matched element set as a clean array
106
+ get: function( num ) {
107
+ return num == undefined ?
108
+
109
+ // Return a 'clean' array
110
+ jQuery.makeArray( this ) :
111
+
112
+ // Return just the object
113
+ this[ num ];
114
+ },
115
+
116
+ // Take an array of elements and push it onto the stack
117
+ // (returning the new matched element set)
118
+ pushStack: function( elems ) {
119
+ // Build a new jQuery matched element set
120
+ var ret = jQuery( elems );
121
+
122
+ // Add the old object onto the stack (as a reference)
123
+ ret.prevObject = this;
124
+
125
+ // Return the newly-formed element set
126
+ return ret;
127
+ },
128
+
129
+ // Force the current matched set of elements to become
130
+ // the specified array of elements (destroying the stack in the process)
131
+ // You should use pushStack() in order to do this, but maintain the stack
132
+ setArray: function( elems ) {
133
+ // Resetting the length to 0, then using the native Array push
134
+ // is a super-fast way to populate an object with array-like properties
135
+ this.length = 0;
136
+ Array.prototype.push.apply( this, elems );
137
+
138
+ return this;
139
+ },
140
+
141
+ // Execute a callback for every element in the matched set.
142
+ // (You can seed the arguments with an array of args, but this is
143
+ // only used internally.)
144
+ each: function( callback, args ) {
145
+ return jQuery.each( this, callback, args );
146
+ },
147
+
148
+ // Determine the position of an element within
149
+ // the matched set of elements
150
+ index: function( elem ) {
151
+ var ret = -1;
152
+
153
+ // Locate the position of the desired element
154
+ return jQuery.inArray(
155
+ // If it receives a jQuery object, the first element is used
156
+ elem && elem.jquery ? elem[0] : elem
157
+ , this );
158
+ },
159
+
160
+ attr: function( name, value, type ) {
161
+ var options = name;
162
+
163
+ // Look for the case where we're accessing a style value
164
+ if ( name.constructor == String )
165
+ if ( value === undefined )
166
+ return this[0] && jQuery[ type || "attr" ]( this[0], name );
167
+
168
+ else {
169
+ options = {};
170
+ options[ name ] = value;
171
+ }
172
+
173
+ // Check to see if we're setting style values
174
+ return this.each(function(i){
175
+ // Set all the styles
176
+ for ( name in options )
177
+ jQuery.attr(
178
+ type ?
179
+ this.style :
180
+ this,
181
+ name, jQuery.prop( this, options[ name ], type, i, name )
182
+ );
183
+ });
184
+ },
185
+
186
+ css: function( key, value ) {
187
+ // ignore negative width and height values
188
+ if ( (key == 'width' || key == 'height') && parseFloat(value) < 0 )
189
+ value = undefined;
190
+ return this.attr( key, value, "curCSS" );
191
+ },
192
+
193
+ text: function( text ) {
194
+ if ( typeof text != "object" && text != null )
195
+ return this.empty().append( (this[0] && this[0].ownerDocument || document).createTextNode( text ) );
196
+
197
+ var ret = "";
198
+
199
+ jQuery.each( text || this, function(){
200
+ jQuery.each( this.childNodes, function(){
201
+ if ( this.nodeType != 8 )
202
+ ret += this.nodeType != 1 ?
203
+ this.nodeValue :
204
+ jQuery.fn.text( [ this ] );
205
+ });
206
+ });
207
+
208
+ return ret;
209
+ },
210
+
211
+ wrapAll: function( html ) {
212
+ if ( this[0] )
213
+ // The elements to wrap the target around
214
+ jQuery( html, this[0].ownerDocument )
215
+ .clone()
216
+ .insertBefore( this[0] )
217
+ .map(function(){
218
+ var elem = this;
219
+
220
+ while ( elem.firstChild )
221
+ elem = elem.firstChild;
222
+
223
+ return elem;
224
+ })
225
+ .append(this);
226
+
227
+ return this;
228
+ },
229
+
230
+ wrapInner: function( html ) {
231
+ return this.each(function(){
232
+ jQuery( this ).contents().wrapAll( html );
233
+ });
234
+ },
235
+
236
+ wrap: function( html ) {
237
+ return this.each(function(){
238
+ jQuery( this ).wrapAll( html );
239
+ });
240
+ },
241
+
242
+ append: function() {
243
+ return this.domManip(arguments, true, false, function(elem){
244
+ if (this.nodeType == 1)
245
+ this.appendChild( elem );
246
+ });
247
+ },
248
+
249
+ prepend: function() {
250
+ return this.domManip(arguments, true, true, function(elem){
251
+ if (this.nodeType == 1)
252
+ this.insertBefore( elem, this.firstChild );
253
+ });
254
+ },
255
+
256
+ before: function() {
257
+ return this.domManip(arguments, false, false, function(elem){
258
+ this.parentNode.insertBefore( elem, this );
259
+ });
260
+ },
261
+
262
+ after: function() {
263
+ return this.domManip(arguments, false, true, function(elem){
264
+ this.parentNode.insertBefore( elem, this.nextSibling );
265
+ });
266
+ },
267
+
268
+ end: function() {
269
+ return this.prevObject || jQuery( [] );
270
+ },
271
+
272
+ find: function( selector ) {
273
+ var elems = jQuery.map(this, function(elem){
274
+ return jQuery.find( selector, elem );
275
+ });
276
+
277
+ return this.pushStack( /[^+>] [^+>]/.test( selector ) || selector.indexOf("..") > -1 ?
278
+ jQuery.unique( elems ) :
279
+ elems );
280
+ },
281
+
282
+ clone: function( events ) {
283
+ // Do the clone
284
+ var ret = this.map(function(){
285
+ if ( jQuery.browser.msie && !jQuery.isXMLDoc(this) ) {
286
+ // IE copies events bound via attachEvent when
287
+ // using cloneNode. Calling detachEvent on the
288
+ // clone will also remove the events from the orignal
289
+ // In order to get around this, we use innerHTML.
290
+ // Unfortunately, this means some modifications to
291
+ // attributes in IE that are actually only stored
292
+ // as properties will not be copied (such as the
293
+ // the name attribute on an input).
294
+ var clone = this.cloneNode(true),
295
+ container = document.createElement("div");
296
+ container.appendChild(clone);
297
+ return jQuery.clean([container.innerHTML])[0];
298
+ } else
299
+ return this.cloneNode(true);
300
+ });
301
+
302
+ // Need to set the expando to null on the cloned set if it exists
303
+ // removeData doesn't work here, IE removes it from the original as well
304
+ // this is primarily for IE but the data expando shouldn't be copied over in any browser
305
+ var clone = ret.find("*").andSelf().each(function(){
306
+ if ( this[ expando ] != undefined )
307
+ this[ expando ] = null;
308
+ });
309
+
310
+ // Copy the events from the original to the clone
311
+ if ( events === true )
312
+ this.find("*").andSelf().each(function(i){
313
+ if (this.nodeType == 3)
314
+ return;
315
+ var events = jQuery.data( this, "events" );
316
+
317
+ for ( var type in events )
318
+ for ( var handler in events[ type ] )
319
+ jQuery.event.add( clone[ i ], type, events[ type ][ handler ], events[ type ][ handler ].data );
320
+ });
321
+
322
+ // Return the cloned set
323
+ return ret;
324
+ },
325
+
326
+ filter: function( selector ) {
327
+ return this.pushStack(
328
+ jQuery.isFunction( selector ) &&
329
+ jQuery.grep(this, function(elem, i){
330
+ return selector.call( elem, i );
331
+ }) ||
332
+
333
+ jQuery.multiFilter( selector, this ) );
334
+ },
335
+
336
+ not: function( selector ) {
337
+ if ( selector.constructor == String )
338
+ // test special case where just one selector is passed in
339
+ if ( isSimple.test( selector ) )
340
+ return this.pushStack( jQuery.multiFilter( selector, this, true ) );
341
+ else
342
+ selector = jQuery.multiFilter( selector, this );
343
+
344
+ var isArrayLike = selector.length && selector[selector.length - 1] !== undefined && !selector.nodeType;
345
+ return this.filter(function() {
346
+ return isArrayLike ? jQuery.inArray( this, selector ) < 0 : this != selector;
347
+ });
348
+ },
349
+
350
+ add: function( selector ) {
351
+ return this.pushStack( jQuery.unique( jQuery.merge(
352
+ this.get(),
353
+ typeof selector == 'string' ?
354
+ jQuery( selector ) :
355
+ jQuery.makeArray( selector )
356
+ )));
357
+ },
358
+
359
+ is: function( selector ) {
360
+ return !!selector && jQuery.multiFilter( selector, this ).length > 0;
361
+ },
362
+
363
+ hasClass: function( selector ) {
364
+ return this.is( "." + selector );
365
+ },
366
+
367
+ val: function( value ) {
368
+ if ( value == undefined ) {
369
+
370
+ if ( this.length ) {
371
+ var elem = this[0];
372
+
373
+ // We need to handle select boxes special
374
+ if ( jQuery.nodeName( elem, "select" ) ) {
375
+ var index = elem.selectedIndex,
376
+ values = [],
377
+ options = elem.options,
378
+ one = elem.type == "select-one";
379
+
380
+ // Nothing was selected
381
+ if ( index < 0 )
382
+ return null;
383
+
384
+ // Loop through all the selected options
385
+ for ( var i = one ? index : 0, max = one ? index + 1 : options.length; i < max; i++ ) {
386
+ var option = options[ i ];
387
+
388
+ if ( option.selected ) {
389
+ // Get the specifc value for the option
390
+ value = jQuery.browser.msie && !option.attributes.value.specified ? option.text : option.value;
391
+
392
+ // We don't need an array for one selects
393
+ if ( one )
394
+ return value;
395
+
396
+ // Multi-Selects return an array
397
+ values.push( value );
398
+ }
399
+ }
400
+
401
+ return values;
402
+
403
+ // Everything else, we just grab the value
404
+ } else
405
+ return (this[0].value || "").replace(/\r/g, "");
406
+
407
+ }
408
+
409
+ return undefined;
410
+ }
411
+
412
+ if( value.constructor == Number )
413
+ value += '';
414
+
415
+ return this.each(function(){
416
+ if ( this.nodeType != 1 )
417
+ return;
418
+
419
+ if ( value.constructor == Array && /radio|checkbox/.test( this.type ) )
420
+ this.checked = (jQuery.inArray(this.value, value) >= 0 ||
421
+ jQuery.inArray(this.name, value) >= 0);
422
+
423
+ else if ( jQuery.nodeName( this, "select" ) ) {
424
+ var values = jQuery.makeArray(value);
425
+
426
+ jQuery( "option", this ).each(function(){
427
+ this.selected = (jQuery.inArray( this.value, values ) >= 0 ||
428
+ jQuery.inArray( this.text, values ) >= 0);
429
+ });
430
+
431
+ if ( !values.length )
432
+ this.selectedIndex = -1;
433
+
434
+ } else
435
+ this.value = value;
436
+ });
437
+ },
438
+
439
+ html: function( value ) {
440
+ return value == undefined ?
441
+ (this[0] ?
442
+ this[0].innerHTML :
443
+ null) :
444
+ this.empty().append( value );
445
+ },
446
+
447
+ replaceWith: function( value ) {
448
+ return this.after( value ).remove();
449
+ },
450
+
451
+ eq: function( i ) {
452
+ return this.slice( i, i + 1 );
453
+ },
454
+
455
+ slice: function() {
456
+ return this.pushStack( Array.prototype.slice.apply( this, arguments ) );
457
+ },
458
+
459
+ map: function( callback ) {
460
+ return this.pushStack( jQuery.map(this, function(elem, i){
461
+ return callback.call( elem, i, elem );
462
+ }));
463
+ },
464
+
465
+ andSelf: function() {
466
+ return this.add( this.prevObject );
467
+ },
468
+
469
+ data: function( key, value ){
470
+ var parts = key.split(".");
471
+ parts[1] = parts[1] ? "." + parts[1] : "";
472
+
473
+ if ( value === undefined ) {
474
+ var data = this.triggerHandler("getData" + parts[1] + "!", [parts[0]]);
475
+
476
+ if ( data === undefined && this.length )
477
+ data = jQuery.data( this[0], key );
478
+
479
+ return data === undefined && parts[1] ?
480
+ this.data( parts[0] ) :
481
+ data;
482
+ } else
483
+ return this.trigger("setData" + parts[1] + "!", [parts[0], value]).each(function(){
484
+ jQuery.data( this, key, value );
485
+ });
486
+ },
487
+
488
+ removeData: function( key ){
489
+ return this.each(function(){
490
+ jQuery.removeData( this, key );
491
+ });
492
+ },
493
+
494
+ domManip: function( args, table, reverse, callback ) {
495
+ var clone = this.length > 1, elems;
496
+
497
+ return this.each(function(){
498
+ if ( !elems ) {
499
+ elems = jQuery.clean( args, this.ownerDocument );
500
+
501
+ if ( reverse )
502
+ elems.reverse();
503
+ }
504
+
505
+ var obj = this;
506
+
507
+ if ( table && jQuery.nodeName( this, "table" ) && jQuery.nodeName( elems[0], "tr" ) )
508
+ obj = this.getElementsByTagName("tbody")[0] || this.appendChild( this.ownerDocument.createElement("tbody") );
509
+
510
+ var scripts = jQuery( [] );
511
+
512
+ jQuery.each(elems, function(){
513
+ var elem = clone ?
514
+ jQuery( this ).clone( true )[0] :
515
+ this;
516
+
517
+ // execute all scripts after the elements have been injected
518
+ if ( jQuery.nodeName( elem, "script" ) )
519
+ scripts = scripts.add( elem );
520
+ else {
521
+ // Remove any inner scripts for later evaluation
522
+ if ( elem.nodeType == 1 )
523
+ scripts = scripts.add( jQuery( "script", elem ).remove() );
524
+
525
+ // Inject the elements into the document
526
+ callback.call( obj, elem );
527
+ }
528
+ });
529
+
530
+ scripts.each( evalScript );
531
+ });
532
+ }
533
+ };
534
+
535
+ // Give the init function the jQuery prototype for later instantiation
536
+ jQuery.fn.init.prototype = jQuery.fn;
537
+
538
+ function evalScript( i, elem ) {
539
+ if ( elem.src )
540
+ jQuery.ajax({
541
+ url: elem.src,
542
+ async: false,
543
+ dataType: "script"
544
+ });
545
+
546
+ else
547
+ jQuery.globalEval( elem.text || elem.textContent || elem.innerHTML || "" );
548
+
549
+ if ( elem.parentNode )
550
+ elem.parentNode.removeChild( elem );
551
+ }
552
+
553
+ function now(){
554
+ return +new Date;
555
+ }
556
+
557
+ jQuery.extend = jQuery.fn.extend = function() {
558
+ // copy reference to target object
559
+ var target = arguments[0] || {}, i = 1, length = arguments.length, deep = false, options;
560
+
561
+ // Handle a deep copy situation
562
+ if ( target.constructor == Boolean ) {
563
+ deep = target;
564
+ target = arguments[1] || {};
565
+ // skip the boolean and the target
566
+ i = 2;
567
+ }
568
+
569
+ // Handle case when target is a string or something (possible in deep copy)
570
+ if ( typeof target != "object" && typeof target != "function" )
571
+ target = {};
572
+
573
+ // extend jQuery itself if only one argument is passed
574
+ if ( length == i ) {
575
+ target = this;
576
+ --i;
577
+ }
578
+
579
+ for ( ; i < length; i++ )
580
+ // Only deal with non-null/undefined values
581
+ if ( (options = arguments[ i ]) != null )
582
+ // Extend the base object
583
+ for ( var name in options ) {
584
+ var src = target[ name ], copy = options[ name ];
585
+
586
+ // Prevent never-ending loop
587
+ if ( target === copy )
588
+ continue;
589
+
590
+ // Recurse if we're merging object values
591
+ if ( deep && copy && typeof copy == "object" && !copy.nodeType )
592
+ target[ name ] = jQuery.extend( deep,
593
+ // Never move original objects, clone them
594
+ src || ( copy.length != null ? [ ] : { } )
595
+ , copy );
596
+
597
+ // Don't bring in undefined values
598
+ else if ( copy !== undefined )
599
+ target[ name ] = copy;
600
+
601
+ }
602
+
603
+ // Return the modified object
604
+ return target;
605
+ };
606
+
607
+ var expando = "jQuery" + now(), uuid = 0, windowData = {},
608
+ // exclude the following css properties to add px
609
+ exclude = /z-?index|font-?weight|opacity|zoom|line-?height/i,
610
+ // cache defaultView
611
+ defaultView = document.defaultView || {};
612
+
613
+ jQuery.extend({
614
+ noConflict: function( deep ) {
615
+ window.$ = _$;
616
+
617
+ if ( deep )
618
+ window.jQuery = _jQuery;
619
+
620
+ return jQuery;
621
+ },
622
+
623
+ // See test/unit/core.js for details concerning this function.
624
+ isFunction: function( fn ) {
625
+ return !!fn && typeof fn != "string" && !fn.nodeName &&
626
+ fn.constructor != Array && /^[\s[]?function/.test( fn + "" );
627
+ },
628
+
629
+ // check if an element is in a (or is an) XML document
630
+ isXMLDoc: function( elem ) {
631
+ return elem.documentElement && !elem.body ||
632
+ elem.tagName && elem.ownerDocument && !elem.ownerDocument.body;
633
+ },
634
+
635
+ // Evalulates a script in a global context
636
+ globalEval: function( data ) {
637
+ data = jQuery.trim( data );
638
+
639
+ if ( data ) {
640
+ // Inspired by code by Andrea Giammarchi
641
+ // http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html
642
+ var head = document.getElementsByTagName("head")[0] || document.documentElement,
643
+ script = document.createElement("script");
644
+
645
+ script.type = "text/javascript";
646
+ if ( jQuery.browser.msie )
647
+ script.text = data;
648
+ else
649
+ script.appendChild( document.createTextNode( data ) );
650
+
651
+ // Use insertBefore instead of appendChild to circumvent an IE6 bug.
652
+ // This arises when a base node is used (#2709).
653
+ head.insertBefore( script, head.firstChild );
654
+ head.removeChild( script );
655
+ }
656
+ },
657
+
658
+ nodeName: function( elem, name ) {
659
+ return elem.nodeName && elem.nodeName.toUpperCase() == name.toUpperCase();
660
+ },
661
+
662
+ cache: {},
663
+
664
+ data: function( elem, name, data ) {
665
+ elem = elem == window ?
666
+ windowData :
667
+ elem;
668
+
669
+ var id = elem[ expando ];
670
+
671
+ // Compute a unique ID for the element
672
+ if ( !id )
673
+ id = elem[ expando ] = ++uuid;
674
+
675
+ // Only generate the data cache if we're
676
+ // trying to access or manipulate it
677
+ if ( name && !jQuery.cache[ id ] )
678
+ jQuery.cache[ id ] = {};
679
+
680
+ // Prevent overriding the named cache with undefined values
681
+ if ( data !== undefined )
682
+ jQuery.cache[ id ][ name ] = data;
683
+
684
+ // Return the named cache data, or the ID for the element
685
+ return name ?
686
+ jQuery.cache[ id ][ name ] :
687
+ id;
688
+ },
689
+
690
+ removeData: function( elem, name ) {
691
+ elem = elem == window ?
692
+ windowData :
693
+ elem;
694
+
695
+ var id = elem[ expando ];
696
+
697
+ // If we want to remove a specific section of the element's data
698
+ if ( name ) {
699
+ if ( jQuery.cache[ id ] ) {
700
+ // Remove the section of cache data
701
+ delete jQuery.cache[ id ][ name ];
702
+
703
+ // If we've removed all the data, remove the element's cache
704
+ name = "";
705
+
706
+ for ( name in jQuery.cache[ id ] )
707
+ break;
708
+
709
+ if ( !name )
710
+ jQuery.removeData( elem );
711
+ }
712
+
713
+ // Otherwise, we want to remove all of the element's data
714
+ } else {
715
+ // Clean up the element expando
716
+ try {
717
+ delete elem[ expando ];
718
+ } catch(e){
719
+ // IE has trouble directly removing the expando
720
+ // but it's ok with using removeAttribute
721
+ if ( elem.removeAttribute )
722
+ elem.removeAttribute( expando );
723
+ }
724
+
725
+ // Completely remove the data cache
726
+ delete jQuery.cache[ id ];
727
+ }
728
+ },
729
+
730
+ // args is for internal usage only
731
+ each: function( object, callback, args ) {
732
+ var name, i = 0, length = object.length;
733
+
734
+ if ( args ) {
735
+ if ( length == undefined ) {
736
+ for ( name in object )
737
+ if ( callback.apply( object[ name ], args ) === false )
738
+ break;
739
+ } else
740
+ for ( ; i < length; )
741
+ if ( callback.apply( object[ i++ ], args ) === false )
742
+ break;
743
+
744
+ // A special, fast, case for the most common use of each
745
+ } else {
746
+ if ( length == undefined ) {
747
+ for ( name in object )
748
+ if ( callback.call( object[ name ], name, object[ name ] ) === false )
749
+ break;
750
+ } else
751
+ for ( var value = object[0];
752
+ i < length && callback.call( value, i, value ) !== false; value = object[++i] ){}
753
+ }
754
+
755
+ return object;
756
+ },
757
+
758
+ prop: function( elem, value, type, i, name ) {
759
+ // Handle executable functions
760
+ if ( jQuery.isFunction( value ) )
761
+ value = value.call( elem, i );
762
+
763
+ // Handle passing in a number to a CSS property
764
+ return value && value.constructor == Number && type == "curCSS" && !exclude.test( name ) ?
765
+ value + "px" :
766
+ value;
767
+ },
768
+
769
+ className: {
770
+ // internal only, use addClass("class")
771
+ add: function( elem, classNames ) {
772
+ jQuery.each((classNames || "").split(/\s+/), function(i, className){
773
+ if ( elem.nodeType == 1 && !jQuery.className.has( elem.className, className ) )
774
+ elem.className += (elem.className ? " " : "") + className;
775
+ });
776
+ },
777
+
778
+ // internal only, use removeClass("class")
779
+ remove: function( elem, classNames ) {
780
+ if (elem.nodeType == 1)
781
+ elem.className = classNames != undefined ?
782
+ jQuery.grep(elem.className.split(/\s+/), function(className){
783
+ return !jQuery.className.has( classNames, className );
784
+ }).join(" ") :
785
+ "";
786
+ },
787
+
788
+ // internal only, use hasClass("class")
789
+ has: function( elem, className ) {
790
+ return jQuery.inArray( className, (elem.className || elem).toString().split(/\s+/) ) > -1;
791
+ }
792
+ },
793
+
794
+ // A method for quickly swapping in/out CSS properties to get correct calculations
795
+ swap: function( elem, options, callback ) {
796
+ var old = {};
797
+ // Remember the old values, and insert the new ones
798
+ for ( var name in options ) {
799
+ old[ name ] = elem.style[ name ];
800
+ elem.style[ name ] = options[ name ];
801
+ }
802
+
803
+ callback.call( elem );
804
+
805
+ // Revert the old values
806
+ for ( var name in options )
807
+ elem.style[ name ] = old[ name ];
808
+ },
809
+
810
+ css: function( elem, name, force ) {
811
+ if ( name == "width" || name == "height" ) {
812
+ var val, props = { position: "absolute", visibility: "hidden", display:"block" }, which = name == "width" ? [ "Left", "Right" ] : [ "Top", "Bottom" ];
813
+
814
+ function getWH() {
815
+ val = name == "width" ? elem.offsetWidth : elem.offsetHeight;
816
+ var padding = 0, border = 0;
817
+ jQuery.each( which, function() {
818
+ padding += parseFloat(jQuery.curCSS( elem, "padding" + this, true)) || 0;
819
+ border += parseFloat(jQuery.curCSS( elem, "border" + this + "Width", true)) || 0;
820
+ });
821
+ val -= Math.round(padding + border);
822
+ }
823
+
824
+ if ( jQuery(elem).is(":visible") )
825
+ getWH();
826
+ else
827
+ jQuery.swap( elem, props, getWH );
828
+
829
+ return Math.max(0, val);
830
+ }
831
+
832
+ return jQuery.curCSS( elem, name, force );
833
+ },
834
+
835
+ curCSS: function( elem, name, force ) {
836
+ var ret, style = elem.style;
837
+
838
+ // A helper method for determining if an element's values are broken
839
+ function color( elem ) {
840
+ if ( !jQuery.browser.safari )
841
+ return false;
842
+
843
+ // defaultView is cached
844
+ var ret = defaultView.getComputedStyle( elem, null );
845
+ return !ret || ret.getPropertyValue("color") == "";
846
+ }
847
+
848
+ // We need to handle opacity special in IE
849
+ if ( name == "opacity" && jQuery.browser.msie ) {
850
+ ret = jQuery.attr( style, "opacity" );
851
+
852
+ return ret == "" ?
853
+ "1" :
854
+ ret;
855
+ }
856
+ // Opera sometimes will give the wrong display answer, this fixes it, see #2037
857
+ if ( jQuery.browser.opera && name == "display" ) {
858
+ var save = style.outline;
859
+ style.outline = "0 solid black";
860
+ style.outline = save;
861
+ }
862
+
863
+ // Make sure we're using the right name for getting the float value
864
+ if ( name.match( /float/i ) )
865
+ name = styleFloat;
866
+
867
+ if ( !force && style && style[ name ] )
868
+ ret = style[ name ];
869
+
870
+ else if ( defaultView.getComputedStyle ) {
871
+
872
+ // Only "float" is needed here
873
+ if ( name.match( /float/i ) )
874
+ name = "float";
875
+
876
+ name = name.replace( /([A-Z])/g, "-$1" ).toLowerCase();
877
+
878
+ var computedStyle = defaultView.getComputedStyle( elem, null );
879
+
880
+ if ( computedStyle && !color( elem ) )
881
+ ret = computedStyle.getPropertyValue( name );
882
+
883
+ // If the element isn't reporting its values properly in Safari
884
+ // then some display: none elements are involved
885
+ else {
886
+ var swap = [], stack = [], a = elem, i = 0;
887
+
888
+ // Locate all of the parent display: none elements
889
+ for ( ; a && color(a); a = a.parentNode )
890
+ stack.unshift(a);
891
+
892
+ // Go through and make them visible, but in reverse
893
+ // (It would be better if we knew the exact display type that they had)
894
+ for ( ; i < stack.length; i++ )
895
+ if ( color( stack[ i ] ) ) {
896
+ swap[ i ] = stack[ i ].style.display;
897
+ stack[ i ].style.display = "block";
898
+ }
899
+
900
+ // Since we flip the display style, we have to handle that
901
+ // one special, otherwise get the value
902
+ ret = name == "display" && swap[ stack.length - 1 ] != null ?
903
+ "none" :
904
+ ( computedStyle && computedStyle.getPropertyValue( name ) ) || "";
905
+
906
+ // Finally, revert the display styles back
907
+ for ( i = 0; i < swap.length; i++ )
908
+ if ( swap[ i ] != null )
909
+ stack[ i ].style.display = swap[ i ];
910
+ }
911
+
912
+ // We should always get a number back from opacity
913
+ if ( name == "opacity" && ret == "" )
914
+ ret = "1";
915
+
916
+ } else if ( elem.currentStyle ) {
917
+ var camelCase = name.replace(/\-(\w)/g, function(all, letter){
918
+ return letter.toUpperCase();
919
+ });
920
+
921
+ ret = elem.currentStyle[ name ] || elem.currentStyle[ camelCase ];
922
+
923
+ // From the awesome hack by Dean Edwards
924
+ // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
925
+
926
+ // If we're not dealing with a regular pixel number
927
+ // but a number that has a weird ending, we need to convert it to pixels
928
+ if ( !/^\d+(px)?$/i.test( ret ) && /^\d/.test( ret ) ) {
929
+ // Remember the original values
930
+ var left = style.left, rsLeft = elem.runtimeStyle.left;
931
+
932
+ // Put in the new values to get a computed value out
933
+ elem.runtimeStyle.left = elem.currentStyle.left;
934
+ style.left = ret || 0;
935
+ ret = style.pixelLeft + "px";
936
+
937
+ // Revert the changed values
938
+ style.left = left;
939
+ elem.runtimeStyle.left = rsLeft;
940
+ }
941
+ }
942
+
943
+ return ret;
944
+ },
945
+
946
+ clean: function( elems, context ) {
947
+ var ret = [];
948
+ context = context || document;
949
+ // !context.createElement fails in IE with an error but returns typeof 'object'
950
+ if (typeof context.createElement == 'undefined')
951
+ context = context.ownerDocument || context[0] && context[0].ownerDocument || document;
952
+
953
+ jQuery.each(elems, function(i, elem){
954
+ if ( !elem )
955
+ return;
956
+
957
+ if ( elem.constructor == Number )
958
+ elem += '';
959
+
960
+ // Convert html string into DOM nodes
961
+ if ( typeof elem == "string" ) {
962
+ // Fix "XHTML"-style tags in all browsers
963
+ elem = elem.replace(/(<(\w+)[^>]*?)\/>/g, function(all, front, tag){
964
+ return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ?
965
+ all :
966
+ front + "></" + tag + ">";
967
+ });
968
+
969
+ // Trim whitespace, otherwise indexOf won't work as expected
970
+ var tags = jQuery.trim( elem ).toLowerCase(), div = context.createElement("div");
971
+
972
+ var wrap =
973
+ // option or optgroup
974
+ !tags.indexOf("<opt") &&
975
+ [ 1, "<select multiple='multiple'>", "</select>" ] ||
976
+
977
+ !tags.indexOf("<leg") &&
978
+ [ 1, "<fieldset>", "</fieldset>" ] ||
979
+
980
+ tags.match(/^<(thead|tbody|tfoot|colg|cap)/) &&
981
+ [ 1, "<table>", "</table>" ] ||
982
+
983
+ !tags.indexOf("<tr") &&
984
+ [ 2, "<table><tbody>", "</tbody></table>" ] ||
985
+
986
+ // <thead> matched above
987
+ (!tags.indexOf("<td") || !tags.indexOf("<th")) &&
988
+ [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ] ||
989
+
990
+ !tags.indexOf("<col") &&
991
+ [ 2, "<table><tbody></tbody><colgroup>", "</colgroup></table>" ] ||
992
+
993
+ // IE can't serialize <link> and <script> tags normally
994
+ jQuery.browser.msie &&
995
+ [ 1, "div<div>", "</div>" ] ||
996
+
997
+ [ 0, "", "" ];
998
+
999
+ // Go to html and back, then peel off extra wrappers
1000
+ div.innerHTML = wrap[1] + elem + wrap[2];
1001
+
1002
+ // Move to the right depth
1003
+ while ( wrap[0]-- )
1004
+ div = div.lastChild;
1005
+
1006
+ // Remove IE's autoinserted <tbody> from table fragments
1007
+ if ( jQuery.browser.msie ) {
1008
+
1009
+ // String was a <table>, *may* have spurious <tbody>
1010
+ var tbody = !tags.indexOf("<table") && tags.indexOf("<tbody") < 0 ?
1011
+ div.firstChild && div.firstChild.childNodes :
1012
+
1013
+ // String was a bare <thead> or <tfoot>
1014
+ wrap[1] == "<table>" && tags.indexOf("<tbody") < 0 ?
1015
+ div.childNodes :
1016
+ [];
1017
+
1018
+ for ( var j = tbody.length - 1; j >= 0 ; --j )
1019
+ if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length )
1020
+ tbody[ j ].parentNode.removeChild( tbody[ j ] );
1021
+
1022
+ // IE completely kills leading whitespace when innerHTML is used
1023
+ if ( /^\s/.test( elem ) )
1024
+ div.insertBefore( context.createTextNode( elem.match(/^\s*/)[0] ), div.firstChild );
1025
+
1026
+ }
1027
+
1028
+ elem = jQuery.makeArray( div.childNodes );
1029
+ }
1030
+
1031
+ if ( elem.length === 0 && (!jQuery.nodeName( elem, "form" ) && !jQuery.nodeName( elem, "select" )) )
1032
+ return;
1033
+
1034
+ if ( elem[0] == undefined || jQuery.nodeName( elem, "form" ) || elem.options )
1035
+ ret.push( elem );
1036
+
1037
+ else
1038
+ ret = jQuery.merge( ret, elem );
1039
+
1040
+ });
1041
+
1042
+ return ret;
1043
+ },
1044
+
1045
+ attr: function( elem, name, value ) {
1046
+ // don't set attributes on text and comment nodes
1047
+ if (!elem || elem.nodeType == 3 || elem.nodeType == 8)
1048
+ return undefined;
1049
+
1050
+ var notxml = !jQuery.isXMLDoc( elem ),
1051
+ // Whether we are setting (or getting)
1052
+ set = value !== undefined,
1053
+ msie = jQuery.browser.msie;
1054
+
1055
+ // Try to normalize/fix the name
1056
+ name = notxml && jQuery.props[ name ] || name;
1057
+
1058
+ // Only do all the following if this is a node (faster for style)
1059
+ // IE elem.getAttribute passes even for style
1060
+ if ( elem.tagName ) {
1061
+
1062
+ // These attributes require special treatment
1063
+ var special = /href|src|style/.test( name );
1064
+
1065
+ // Safari mis-reports the default selected property of a hidden option
1066
+ // Accessing the parent's selectedIndex property fixes it
1067
+ if ( name == "selected" && jQuery.browser.safari )
1068
+ elem.parentNode.selectedIndex;
1069
+
1070
+ // If applicable, access the attribute via the DOM 0 way
1071
+ if ( name in elem && notxml && !special ) {
1072
+ if ( set ){
1073
+ // We can't allow the type property to be changed (since it causes problems in IE)
1074
+ if ( name == "type" && jQuery.nodeName( elem, "input" ) && elem.parentNode )
1075
+ throw "type property can't be changed";
1076
+
1077
+ elem[ name ] = value;
1078
+ }
1079
+
1080
+ // browsers index elements by id/name on forms, give priority to attributes.
1081
+ if( jQuery.nodeName( elem, "form" ) && elem.getAttributeNode(name) )
1082
+ return elem.getAttributeNode( name ).nodeValue;
1083
+
1084
+ return elem[ name ];
1085
+ }
1086
+
1087
+ if ( msie && notxml && name == "style" )
1088
+ return jQuery.attr( elem.style, "cssText", value );
1089
+
1090
+ if ( set )
1091
+ // convert the value to a string (all browsers do this but IE) see #1070
1092
+ elem.setAttribute( name, "" + value );
1093
+
1094
+ var attr = msie && notxml && special
1095
+ // Some attributes require a special call on IE
1096
+ ? elem.getAttribute( name, 2 )
1097
+ : elem.getAttribute( name );
1098
+
1099
+ // Non-existent attributes return null, we normalize to undefined
1100
+ return attr === null ? undefined : attr;
1101
+ }
1102
+
1103
+ // elem is actually elem.style ... set the style
1104
+
1105
+ // IE uses filters for opacity
1106
+ if ( msie && name == "opacity" ) {
1107
+ if ( set ) {
1108
+ // IE has trouble with opacity if it does not have layout
1109
+ // Force it by setting the zoom level
1110
+ elem.zoom = 1;
1111
+
1112
+ // Set the alpha filter to set the opacity
1113
+ elem.filter = (elem.filter || "").replace( /alpha\([^)]*\)/, "" ) +
1114
+ (parseInt( value ) + '' == "NaN" ? "" : "alpha(opacity=" + value * 100 + ")");
1115
+ }
1116
+
1117
+ return elem.filter && elem.filter.indexOf("opacity=") >= 0 ?
1118
+ (parseFloat( elem.filter.match(/opacity=([^)]*)/)[1] ) / 100) + '':
1119
+ "";
1120
+ }
1121
+
1122
+ name = name.replace(/-([a-z])/ig, function(all, letter){
1123
+ return letter.toUpperCase();
1124
+ });
1125
+
1126
+ if ( set )
1127
+ elem[ name ] = value;
1128
+
1129
+ return elem[ name ];
1130
+ },
1131
+
1132
+ trim: function( text ) {
1133
+ return (text || "").replace( /^\s+|\s+$/g, "" );
1134
+ },
1135
+
1136
+ makeArray: function( array ) {
1137
+ var ret = [];
1138
+
1139
+ if( array != null ){
1140
+ var i = array.length;
1141
+ //the window, strings and functions also have 'length'
1142
+ if( i == null || array.split || array.setInterval || array.call )
1143
+ ret[0] = array;
1144
+ else
1145
+ while( i )
1146
+ ret[--i] = array[i];
1147
+ }
1148
+
1149
+ return ret;
1150
+ },
1151
+
1152
+ inArray: function( elem, array ) {
1153
+ for ( var i = 0, length = array.length; i < length; i++ )
1154
+ // Use === because on IE, window == document
1155
+ if ( array[ i ] === elem )
1156
+ return i;
1157
+
1158
+ return -1;
1159
+ },
1160
+
1161
+ merge: function( first, second ) {
1162
+ // We have to loop this way because IE & Opera overwrite the length
1163
+ // expando of getElementsByTagName
1164
+ var i = 0, elem, pos = first.length;
1165
+ // Also, we need to make sure that the correct elements are being returned
1166
+ // (IE returns comment nodes in a '*' query)
1167
+ if ( jQuery.browser.msie ) {
1168
+ while ( elem = second[ i++ ] )
1169
+ if ( elem.nodeType != 8 )
1170
+ first[ pos++ ] = elem;
1171
+
1172
+ } else
1173
+ while ( elem = second[ i++ ] )
1174
+ first[ pos++ ] = elem;
1175
+
1176
+ return first;
1177
+ },
1178
+
1179
+ unique: function( array ) {
1180
+ var ret = [], done = {};
1181
+
1182
+ try {
1183
+
1184
+ for ( var i = 0, length = array.length; i < length; i++ ) {
1185
+ var id = jQuery.data( array[ i ] );
1186
+
1187
+ if ( !done[ id ] ) {
1188
+ done[ id ] = true;
1189
+ ret.push( array[ i ] );
1190
+ }
1191
+ }
1192
+
1193
+ } catch( e ) {
1194
+ ret = array;
1195
+ }
1196
+
1197
+ return ret;
1198
+ },
1199
+
1200
+ grep: function( elems, callback, inv ) {
1201
+ var ret = [];
1202
+
1203
+ // Go through the array, only saving the items
1204
+ // that pass the validator function
1205
+ for ( var i = 0, length = elems.length; i < length; i++ )
1206
+ if ( !inv != !callback( elems[ i ], i ) )
1207
+ ret.push( elems[ i ] );
1208
+
1209
+ return ret;
1210
+ },
1211
+
1212
+ map: function( elems, callback ) {
1213
+ var ret = [];
1214
+
1215
+ // Go through the array, translating each of the items to their
1216
+ // new value (or values).
1217
+ for ( var i = 0, length = elems.length; i < length; i++ ) {
1218
+ var value = callback( elems[ i ], i );
1219
+
1220
+ if ( value != null )
1221
+ ret[ ret.length ] = value;
1222
+ }
1223
+
1224
+ return ret.concat.apply( [], ret );
1225
+ }
1226
+ });
1227
+
1228
+ var userAgent = navigator.userAgent.toLowerCase();
1229
+
1230
+ // Figure out what browser is being used
1231
+ jQuery.browser = {
1232
+ version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1],
1233
+ safari: /webkit/.test( userAgent ),
1234
+ opera: /opera/.test( userAgent ),
1235
+ msie: /msie/.test( userAgent ) && !/opera/.test( userAgent ),
1236
+ mozilla: /mozilla/.test( userAgent ) && !/(compatible|webkit)/.test( userAgent )
1237
+ };
1238
+
1239
+ var styleFloat = jQuery.browser.msie ?
1240
+ "styleFloat" :
1241
+ "cssFloat";
1242
+
1243
+ jQuery.extend({
1244
+ // Check to see if the W3C box model is being used
1245
+ boxModel: !jQuery.browser.msie || document.compatMode == "CSS1Compat",
1246
+
1247
+ props: {
1248
+ "for": "htmlFor",
1249
+ "class": "className",
1250
+ "float": styleFloat,
1251
+ cssFloat: styleFloat,
1252
+ styleFloat: styleFloat,
1253
+ readonly: "readOnly",
1254
+ maxlength: "maxLength",
1255
+ cellspacing: "cellSpacing"
1256
+ }
1257
+ });
1258
+
1259
+ jQuery.each({
1260
+ parent: function(elem){return elem.parentNode;},
1261
+ parents: function(elem){return jQuery.dir(elem,"parentNode");},
1262
+ next: function(elem){return jQuery.nth(elem,2,"nextSibling");},
1263
+ prev: function(elem){return jQuery.nth(elem,2,"previousSibling");},
1264
+ nextAll: function(elem){return jQuery.dir(elem,"nextSibling");},
1265
+ prevAll: function(elem){return jQuery.dir(elem,"previousSibling");},
1266
+ siblings: function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},
1267
+ children: function(elem){return jQuery.sibling(elem.firstChild);},
1268
+ contents: function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}
1269
+ }, function(name, fn){
1270
+ jQuery.fn[ name ] = function( selector ) {
1271
+ var ret = jQuery.map( this, fn );
1272
+
1273
+ if ( selector && typeof selector == "string" )
1274
+ ret = jQuery.multiFilter( selector, ret );
1275
+
1276
+ return this.pushStack( jQuery.unique( ret ) );
1277
+ };
1278
+ });
1279
+
1280
+ jQuery.each({
1281
+ appendTo: "append",
1282
+ prependTo: "prepend",
1283
+ insertBefore: "before",
1284
+ insertAfter: "after",
1285
+ replaceAll: "replaceWith"
1286
+ }, function(name, original){
1287
+ jQuery.fn[ name ] = function() {
1288
+ var args = arguments;
1289
+
1290
+ return this.each(function(){
1291
+ for ( var i = 0, length = args.length; i < length; i++ )
1292
+ jQuery( args[ i ] )[ original ]( this );
1293
+ });
1294
+ };
1295
+ });
1296
+
1297
+ jQuery.each({
1298
+ removeAttr: function( name ) {
1299
+ jQuery.attr( this, name, "" );
1300
+ if (this.nodeType == 1)
1301
+ this.removeAttribute( name );
1302
+ },
1303
+
1304
+ addClass: function( classNames ) {
1305
+ jQuery.className.add( this, classNames );
1306
+ },
1307
+
1308
+ removeClass: function( classNames ) {
1309
+ jQuery.className.remove( this, classNames );
1310
+ },
1311
+
1312
+ toggleClass: function( classNames ) {
1313
+ jQuery.className[ jQuery.className.has( this, classNames ) ? "remove" : "add" ]( this, classNames );
1314
+ },
1315
+
1316
+ remove: function( selector ) {
1317
+ if ( !selector || jQuery.filter( selector, [ this ] ).r.length ) {
1318
+ // Prevent memory leaks
1319
+ jQuery( "*", this ).add(this).each(function(){
1320
+ jQuery.event.remove(this);
1321
+ jQuery.removeData(this);
1322
+ });
1323
+ if (this.parentNode)
1324
+ this.parentNode.removeChild( this );
1325
+ }
1326
+ },
1327
+
1328
+ empty: function() {
1329
+ // Remove element nodes and prevent memory leaks
1330
+ jQuery( ">*", this ).remove();
1331
+
1332
+ // Remove any remaining nodes
1333
+ while ( this.firstChild )
1334
+ this.removeChild( this.firstChild );
1335
+ }
1336
+ }, function(name, fn){
1337
+ jQuery.fn[ name ] = function(){
1338
+ return this.each( fn, arguments );
1339
+ };
1340
+ });
1341
+
1342
+ jQuery.each([ "Height", "Width" ], function(i, name){
1343
+ var type = name.toLowerCase();
1344
+
1345
+ jQuery.fn[ type ] = function( size ) {
1346
+ // Get window width or height
1347
+ return this[0] == window ?
1348
+ // Opera reports document.body.client[Width/Height] properly in both quirks and standards
1349
+ jQuery.browser.opera && document.body[ "client" + name ] ||
1350
+
1351
+ // Safari reports inner[Width/Height] just fine (Mozilla and Opera include scroll bar widths)
1352
+ jQuery.browser.safari && window[ "inner" + name ] ||
1353
+
1354
+ // Everyone else use document.documentElement or document.body depending on Quirks vs Standards mode
1355
+ document.compatMode == "CSS1Compat" && document.documentElement[ "client" + name ] || document.body[ "client" + name ] :
1356
+
1357
+ // Get document width or height
1358
+ this[0] == document ?
1359
+ // Either scroll[Width/Height] or offset[Width/Height], whichever is greater
1360
+ Math.max(
1361
+ Math.max(document.body["scroll" + name], document.documentElement["scroll" + name]),
1362
+ Math.max(document.body["offset" + name], document.documentElement["offset" + name])
1363
+ ) :
1364
+
1365
+ // Get or set width or height on the element
1366
+ size == undefined ?
1367
+ // Get width or height on the element
1368
+ (this.length ? jQuery.css( this[0], type ) : null) :
1369
+
1370
+ // Set the width or height on the element (default to pixels if value is unitless)
1371
+ this.css( type, size.constructor == String ? size : size + "px" );
1372
+ };
1373
+ });
1374
+
1375
+ // Helper function used by the dimensions and offset modules
1376
+ function num(elem, prop) {
1377
+ return elem[0] && parseInt( jQuery.curCSS(elem[0], prop, true), 10 ) || 0;
1378
+ }var chars = jQuery.browser.safari && parseInt(jQuery.browser.version) < 417 ?
1379
+ "(?:[\\w*_-]|\\\\.)" :
1380
+ "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",
1381
+ quickChild = new RegExp("^>\\s*(" + chars + "+)"),
1382
+ quickID = new RegExp("^(" + chars + "+)(#)(" + chars + "+)"),
1383
+ quickClass = new RegExp("^([#.]?)(" + chars + "*)");
1384
+
1385
+ jQuery.extend({
1386
+ expr: {
1387
+ "": function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},
1388
+ "#": function(a,i,m){return a.getAttribute("id")==m[2];},
1389
+ ":": {
1390
+ // Position Checks
1391
+ lt: function(a,i,m){return i<m[3]-0;},
1392
+ gt: function(a,i,m){return i>m[3]-0;},
1393
+ nth: function(a,i,m){return m[3]-0==i;},
1394
+ eq: function(a,i,m){return m[3]-0==i;},
1395
+ first: function(a,i){return i==0;},
1396
+ last: function(a,i,m,r){return i==r.length-1;},
1397
+ even: function(a,i){return i%2==0;},
1398
+ odd: function(a,i){return i%2;},
1399
+
1400
+ // Child Checks
1401
+ "first-child": function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},
1402
+ "last-child": function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},
1403
+ "only-child": function(a){return !jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},
1404
+
1405
+ // Parent Checks
1406
+ parent: function(a){return a.firstChild;},
1407
+ empty: function(a){return !a.firstChild;},
1408
+
1409
+ // Text Check
1410
+ contains: function(a,i,m){return (a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},
1411
+
1412
+ // Visibility
1413
+ visible: function(a){return "hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},
1414
+ hidden: function(a){return "hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},
1415
+
1416
+ // Form attributes
1417
+ enabled: function(a){return !a.disabled;},
1418
+ disabled: function(a){return a.disabled;},
1419
+ checked: function(a){return a.checked;},
1420
+ selected: function(a){return a.selected||jQuery.attr(a,"selected");},
1421
+
1422
+ // Form elements
1423
+ text: function(a){return "text"==a.type;},
1424
+ radio: function(a){return "radio"==a.type;},
1425
+ checkbox: function(a){return "checkbox"==a.type;},
1426
+ file: function(a){return "file"==a.type;},
1427
+ password: function(a){return "password"==a.type;},
1428
+ submit: function(a){return "submit"==a.type;},
1429
+ image: function(a){return "image"==a.type;},
1430
+ reset: function(a){return "reset"==a.type;},
1431
+ button: function(a){return "button"==a.type||jQuery.nodeName(a,"button");},
1432
+ input: function(a){return /input|select|textarea|button/i.test(a.nodeName);},
1433
+
1434
+ // :has()
1435
+ has: function(a,i,m){return jQuery.find(m[3],a).length;},
1436
+
1437
+ // :header
1438
+ header: function(a){return /h\d/i.test(a.nodeName);},
1439
+
1440
+ // :animated
1441
+ animated: function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}
1442
+ }
1443
+ },
1444
+
1445
+ // The regular expressions that power the parsing engine
1446
+ parse: [
1447
+ // Match: [@value='test'], [@foo]
1448
+ /^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,
1449
+
1450
+ // Match: :contains('foo')
1451
+ /^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,
1452
+
1453
+ // Match: :even, :last-child, #id, .class
1454
+ new RegExp("^([:.#]*)(" + chars + "+)")
1455
+ ],
1456
+
1457
+ multiFilter: function( expr, elems, not ) {
1458
+ var old, cur = [];
1459
+
1460
+ while ( expr && expr != old ) {
1461
+ old = expr;
1462
+ var f = jQuery.filter( expr, elems, not );
1463
+ expr = f.t.replace(/^\s*,\s*/, "" );
1464
+ cur = not ? elems = f.r : jQuery.merge( cur, f.r );
1465
+ }
1466
+
1467
+ return cur;
1468
+ },
1469
+
1470
+ find: function( t, context ) {
1471
+ // Quickly handle non-string expressions
1472
+ if ( typeof t != "string" )
1473
+ return [ t ];
1474
+
1475
+ // check to make sure context is a DOM element or a document
1476
+ if ( context && context.nodeType != 1 && context.nodeType != 9)
1477
+ return [ ];
1478
+
1479
+ // Set the correct context (if none is provided)
1480
+ context = context || document;
1481
+
1482
+ // Initialize the search
1483
+ var ret = [context], done = [], last, nodeName;
1484
+
1485
+ // Continue while a selector expression exists, and while
1486
+ // we're no longer looping upon ourselves
1487
+ while ( t && last != t ) {
1488
+ var r = [];
1489
+ last = t;
1490
+
1491
+ t = jQuery.trim(t);
1492
+
1493
+ var foundToken = false,
1494
+
1495
+ // An attempt at speeding up child selectors that
1496
+ // point to a specific element tag
1497
+ re = quickChild,
1498
+
1499
+ m = re.exec(t);
1500
+
1501
+ if ( m ) {
1502
+ nodeName = m[1].toUpperCase();
1503
+
1504
+ // Perform our own iteration and filter
1505
+ for ( var i = 0; ret[i]; i++ )
1506
+ for ( var c = ret[i].firstChild; c; c = c.nextSibling )
1507
+ if ( c.nodeType == 1 && (nodeName == "*" || c.nodeName.toUpperCase() == nodeName) )
1508
+ r.push( c );
1509
+
1510
+ ret = r;
1511
+ t = t.replace( re, "" );
1512
+ if ( t.indexOf(" ") == 0 ) continue;
1513
+ foundToken = true;
1514
+ } else {
1515
+ re = /^([>+~])\s*(\w*)/i;
1516
+
1517
+ if ( (m = re.exec(t)) != null ) {
1518
+ r = [];
1519
+
1520
+ var merge = {};
1521
+ nodeName = m[2].toUpperCase();
1522
+ m = m[1];
1523
+
1524
+ for ( var j = 0, rl = ret.length; j < rl; j++ ) {
1525
+ var n = m == "~" || m == "+" ? ret[j].nextSibling : ret[j].firstChild;
1526
+ for ( ; n; n = n.nextSibling )
1527
+ if ( n.nodeType == 1 ) {
1528
+ var id = jQuery.data(n);
1529
+
1530
+ if ( m == "~" && merge[id] ) break;
1531
+
1532
+ if (!nodeName || n.nodeName.toUpperCase() == nodeName ) {
1533
+ if ( m == "~" ) merge[id] = true;
1534
+ r.push( n );
1535
+ }
1536
+
1537
+ if ( m == "+" ) break;
1538
+ }
1539
+ }
1540
+
1541
+ ret = r;
1542
+
1543
+ // And remove the token
1544
+ t = jQuery.trim( t.replace( re, "" ) );
1545
+ foundToken = true;
1546
+ }
1547
+ }
1548
+
1549
+ // See if there's still an expression, and that we haven't already
1550
+ // matched a token
1551
+ if ( t && !foundToken ) {
1552
+ // Handle multiple expressions
1553
+ if ( !t.indexOf(",") ) {
1554
+ // Clean the result set
1555
+ if ( context == ret[0] ) ret.shift();
1556
+
1557
+ // Merge the result sets
1558
+ done = jQuery.merge( done, ret );
1559
+
1560
+ // Reset the context
1561
+ r = ret = [context];
1562
+
1563
+ // Touch up the selector string
1564
+ t = " " + t.substr(1,t.length);
1565
+
1566
+ } else {
1567
+ // Optimize for the case nodeName#idName
1568
+ var re2 = quickID;
1569
+ var m = re2.exec(t);
1570
+
1571
+ // Re-organize the results, so that they're consistent
1572
+ if ( m ) {
1573
+ m = [ 0, m[2], m[3], m[1] ];
1574
+
1575
+ } else {
1576
+ // Otherwise, do a traditional filter check for
1577
+ // ID, class, and element selectors
1578
+ re2 = quickClass;
1579
+ m = re2.exec(t);
1580
+ }
1581
+
1582
+ m[2] = m[2].replace(/\\/g, "");
1583
+
1584
+ var elem = ret[ret.length-1];
1585
+
1586
+ // Try to do a global search by ID, where we can
1587
+ if ( m[1] == "#" && elem && elem.getElementById && !jQuery.isXMLDoc(elem) ) {
1588
+ // Optimization for HTML document case
1589
+ var oid = elem.getElementById(m[2]);
1590
+
1591
+ // Do a quick check for the existence of the actual ID attribute
1592
+ // to avoid selecting by the name attribute in IE
1593
+ // also check to insure id is a string to avoid selecting an element with the name of 'id' inside a form
1594
+ if ( (jQuery.browser.msie||jQuery.browser.opera) && oid && typeof oid.id == "string" && oid.id != m[2] )
1595
+ oid = jQuery('[@id="'+m[2]+'"]', elem)[0];
1596
+
1597
+ // Do a quick check for node name (where applicable) so
1598
+ // that div#foo searches will be really fast
1599
+ ret = r = oid && (!m[3] || jQuery.nodeName(oid, m[3])) ? [oid] : [];
1600
+ } else {
1601
+ // We need to find all descendant elements
1602
+ for ( var i = 0; ret[i]; i++ ) {
1603
+ // Grab the tag name being searched for
1604
+ var tag = m[1] == "#" && m[3] ? m[3] : m[1] != "" || m[0] == "" ? "*" : m[2];
1605
+
1606
+ // Handle IE7 being really dumb about <object>s
1607
+ if ( tag == "*" && ret[i].nodeName.toLowerCase() == "object" )
1608
+ tag = "param";
1609
+
1610
+ r = jQuery.merge( r, ret[i].getElementsByTagName( tag ));
1611
+ }
1612
+
1613
+ // It's faster to filter by class and be done with it
1614
+ if ( m[1] == "." )
1615
+ r = jQuery.classFilter( r, m[2] );
1616
+
1617
+ // Same with ID filtering
1618
+ if ( m[1] == "#" ) {
1619
+ var tmp = [];
1620
+
1621
+ // Try to find the element with the ID
1622
+ for ( var i = 0; r[i]; i++ )
1623
+ if ( r[i].getAttribute("id") == m[2] ) {
1624
+ tmp = [ r[i] ];
1625
+ break;
1626
+ }
1627
+
1628
+ r = tmp;
1629
+ }
1630
+
1631
+ ret = r;
1632
+ }
1633
+
1634
+ t = t.replace( re2, "" );
1635
+ }
1636
+
1637
+ }
1638
+
1639
+ // If a selector string still exists
1640
+ if ( t ) {
1641
+ // Attempt to filter it
1642
+ var val = jQuery.filter(t,r);
1643
+ ret = r = val.r;
1644
+ t = jQuery.trim(val.t);
1645
+ }
1646
+ }
1647
+
1648
+ // An error occurred with the selector;
1649
+ // just return an empty set instead
1650
+ if ( t )
1651
+ ret = [];
1652
+
1653
+ // Remove the root context
1654
+ if ( ret && context == ret[0] )
1655
+ ret.shift();
1656
+
1657
+ // And combine the results
1658
+ done = jQuery.merge( done, ret );
1659
+
1660
+ return done;
1661
+ },
1662
+
1663
+ classFilter: function(r,m,not){
1664
+ m = " " + m + " ";
1665
+ var tmp = [];
1666
+ for ( var i = 0; r[i]; i++ ) {
1667
+ var pass = (" " + r[i].className + " ").indexOf( m ) >= 0;
1668
+ if ( !not && pass || not && !pass )
1669
+ tmp.push( r[i] );
1670
+ }
1671
+ return tmp;
1672
+ },
1673
+
1674
+ filter: function(t,r,not) {
1675
+ var last;
1676
+
1677
+ // Look for common filter expressions
1678
+ while ( t && t != last ) {
1679
+ last = t;
1680
+
1681
+ var p = jQuery.parse, m;
1682
+
1683
+ for ( var i = 0; p[i]; i++ ) {
1684
+ m = p[i].exec( t );
1685
+
1686
+ if ( m ) {
1687
+ // Remove what we just matched
1688
+ t = t.substring( m[0].length );
1689
+
1690
+ m[2] = m[2].replace(/\\/g, "");
1691
+ break;
1692
+ }
1693
+ }
1694
+
1695
+ if ( !m )
1696
+ break;
1697
+
1698
+ // :not() is a special case that can be optimized by
1699
+ // keeping it out of the expression list
1700
+ if ( m[1] == ":" && m[2] == "not" )
1701
+ // optimize if only one selector found (most common case)
1702
+ r = isSimple.test( m[3] ) ?
1703
+ jQuery.filter(m[3], r, true).r :
1704
+ jQuery( r ).not( m[3] );
1705
+
1706
+ // We can get a big speed boost by filtering by class here
1707
+ else if ( m[1] == "." )
1708
+ r = jQuery.classFilter(r, m[2], not);
1709
+
1710
+ else if ( m[1] == "[" ) {
1711
+ var tmp = [], type = m[3];
1712
+
1713
+ for ( var i = 0, rl = r.length; i < rl; i++ ) {
1714
+ var a = r[i], z = a[ jQuery.props[m[2]] || m[2] ];
1715
+
1716
+ if ( z == null || /href|src|selected/.test(m[2]) )
1717
+ z = jQuery.attr(a,m[2]) || '';
1718
+
1719
+ if ( (type == "" && !!z ||
1720
+ type == "=" && z == m[5] ||
1721
+ type == "!=" && z != m[5] ||
1722
+ type == "^=" && z && !z.indexOf(m[5]) ||
1723
+ type == "$=" && z.substr(z.length - m[5].length) == m[5] ||
1724
+ (type == "*=" || type == "~=") && z.indexOf(m[5]) >= 0) ^ not )
1725
+ tmp.push( a );
1726
+ }
1727
+
1728
+ r = tmp;
1729
+
1730
+ // We can get a speed boost by handling nth-child here
1731
+ } else if ( m[1] == ":" && m[2] == "nth-child" ) {
1732
+ var merge = {}, tmp = [],
1733
+ // parse equations like 'even', 'odd', '5', '2n', '3n+2', '4n-1', '-n+6'
1734
+ test = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(
1735
+ m[3] == "even" && "2n" || m[3] == "odd" && "2n+1" ||
1736
+ !/\D/.test(m[3]) && "0n+" + m[3] || m[3]),
1737
+ // calculate the numbers (first)n+(last) including if they are negative
1738
+ first = (test[1] + (test[2] || 1)) - 0, last = test[3] - 0;
1739
+
1740
+ // loop through all the elements left in the jQuery object
1741
+ for ( var i = 0, rl = r.length; i < rl; i++ ) {
1742
+ var node = r[i], parentNode = node.parentNode, id = jQuery.data(parentNode);
1743
+
1744
+ if ( !merge[id] ) {
1745
+ var c = 1;
1746
+
1747
+ for ( var n = parentNode.firstChild; n; n = n.nextSibling )
1748
+ if ( n.nodeType == 1 )
1749
+ n.nodeIndex = c++;
1750
+
1751
+ merge[id] = true;
1752
+ }
1753
+
1754
+ var add = false;
1755
+
1756
+ if ( first == 0 ) {
1757
+ if ( node.nodeIndex == last )
1758
+ add = true;
1759
+ } else if ( (node.nodeIndex - last) % first == 0 && (node.nodeIndex - last) / first >= 0 )
1760
+ add = true;
1761
+
1762
+ if ( add ^ not )
1763
+ tmp.push( node );
1764
+ }
1765
+
1766
+ r = tmp;
1767
+
1768
+ // Otherwise, find the expression to execute
1769
+ } else {
1770
+ var fn = jQuery.expr[ m[1] ];
1771
+ if ( typeof fn == "object" )
1772
+ fn = fn[ m[2] ];
1773
+
1774
+ if ( typeof fn == "string" )
1775
+ fn = eval("false||function(a,i){return " + fn + ";}");
1776
+
1777
+ // Execute it against the current filter
1778
+ r = jQuery.grep( r, function(elem, i){
1779
+ return fn(elem, i, m, r);
1780
+ }, not );
1781
+ }
1782
+ }
1783
+
1784
+ // Return an array of filtered elements (r)
1785
+ // and the modified expression string (t)
1786
+ return { r: r, t: t };
1787
+ },
1788
+
1789
+ dir: function( elem, dir ){
1790
+ var matched = [],
1791
+ cur = elem[dir];
1792
+ while ( cur && cur != document ) {
1793
+ if ( cur.nodeType == 1 )
1794
+ matched.push( cur );
1795
+ cur = cur[dir];
1796
+ }
1797
+ return matched;
1798
+ },
1799
+
1800
+ nth: function(cur,result,dir,elem){
1801
+ result = result || 1;
1802
+ var num = 0;
1803
+
1804
+ for ( ; cur; cur = cur[dir] )
1805
+ if ( cur.nodeType == 1 && ++num == result )
1806
+ break;
1807
+
1808
+ return cur;
1809
+ },
1810
+
1811
+ sibling: function( n, elem ) {
1812
+ var r = [];
1813
+
1814
+ for ( ; n; n = n.nextSibling ) {
1815
+ if ( n.nodeType == 1 && n != elem )
1816
+ r.push( n );
1817
+ }
1818
+
1819
+ return r;
1820
+ }
1821
+ });
1822
+ /*
1823
+ * A number of helper functions used for managing events.
1824
+ * Many of the ideas behind this code orignated from
1825
+ * Dean Edwards' addEvent library.
1826
+ */
1827
+ jQuery.event = {
1828
+
1829
+ // Bind an event to an element
1830
+ // Original by Dean Edwards
1831
+ add: function(elem, types, handler, data) {
1832
+ if ( elem.nodeType == 3 || elem.nodeType == 8 )
1833
+ return;
1834
+
1835
+ // For whatever reason, IE has trouble passing the window object
1836
+ // around, causing it to be cloned in the process
1837
+ if ( jQuery.browser.msie && elem.setInterval )
1838
+ elem = window;
1839
+
1840
+ // Make sure that the function being executed has a unique ID
1841
+ if ( !handler.guid )
1842
+ handler.guid = this.guid++;
1843
+
1844
+ // if data is passed, bind to handler
1845
+ if( data != undefined ) {
1846
+ // Create temporary function pointer to original handler
1847
+ var fn = handler;
1848
+
1849
+ // Create unique handler function, wrapped around original handler
1850
+ handler = this.proxy( fn, function() {
1851
+ // Pass arguments and context to original handler
1852
+ return fn.apply(this, arguments);
1853
+ });
1854
+
1855
+ // Store data in unique handler
1856
+ handler.data = data;
1857
+ }
1858
+
1859
+ // Init the element's event structure
1860
+ var events = jQuery.data(elem, "events") || jQuery.data(elem, "events", {}),
1861
+ handle = jQuery.data(elem, "handle") || jQuery.data(elem, "handle", function(){
1862
+ // Handle the second event of a trigger and when
1863
+ // an event is called after a page has unloaded
1864
+ if ( typeof jQuery != "undefined" && !jQuery.event.triggered )
1865
+ return jQuery.event.handle.apply(arguments.callee.elem, arguments);
1866
+ });
1867
+ // Add elem as a property of the handle function
1868
+ // This is to prevent a memory leak with non-native
1869
+ // event in IE.
1870
+ handle.elem = elem;
1871
+
1872
+ // Handle multiple events separated by a space
1873
+ // jQuery(...).bind("mouseover mouseout", fn);
1874
+ jQuery.each(types.split(/\s+/), function(index, type) {
1875
+ // Namespaced event handlers
1876
+ var parts = type.split(".");
1877
+ type = parts[0];
1878
+ handler.type = parts[1];
1879
+
1880
+ // Get the current list of functions bound to this event
1881
+ var handlers = events[type];
1882
+
1883
+ // Init the event handler queue
1884
+ if (!handlers) {
1885
+ handlers = events[type] = {};
1886
+
1887
+ // Check for a special event handler
1888
+ // Only use addEventListener/attachEvent if the special
1889
+ // events handler returns false
1890
+ if ( !jQuery.event.special[type] || jQuery.event.special[type].setup.call(elem) === false ) {
1891
+ // Bind the global event handler to the element
1892
+ if (elem.addEventListener)
1893
+ elem.addEventListener(type, handle, false);
1894
+ else if (elem.attachEvent)
1895
+ elem.attachEvent("on" + type, handle);
1896
+ }
1897
+ }
1898
+
1899
+ // Add the function to the element's handler list
1900
+ handlers[handler.guid] = handler;
1901
+
1902
+ // Keep track of which events have been used, for global triggering
1903
+ jQuery.event.global[type] = true;
1904
+ });
1905
+
1906
+ // Nullify elem to prevent memory leaks in IE
1907
+ elem = null;
1908
+ },
1909
+
1910
+ guid: 1,
1911
+ global: {},
1912
+
1913
+ // Detach an event or set of events from an element
1914
+ remove: function(elem, types, handler) {
1915
+ // don't do events on text and comment nodes
1916
+ if ( elem.nodeType == 3 || elem.nodeType == 8 )
1917
+ return;
1918
+
1919
+ var events = jQuery.data(elem, "events"), ret, index;
1920
+
1921
+ if ( events ) {
1922
+ // Unbind all events for the element
1923
+ if ( types == undefined || (typeof types == "string" && types.charAt(0) == ".") )
1924
+ for ( var type in events )
1925
+ this.remove( elem, type + (types || "") );
1926
+ else {
1927
+ // types is actually an event object here
1928
+ if ( types.type ) {
1929
+ handler = types.handler;
1930
+ types = types.type;
1931
+ }
1932
+
1933
+ // Handle multiple events seperated by a space
1934
+ // jQuery(...).unbind("mouseover mouseout", fn);
1935
+ jQuery.each(types.split(/\s+/), function(index, type){
1936
+ // Namespaced event handlers
1937
+ var parts = type.split(".");
1938
+ type = parts[0];
1939
+
1940
+ if ( events[type] ) {
1941
+ // remove the given handler for the given type
1942
+ if ( handler )
1943
+ delete events[type][handler.guid];
1944
+
1945
+ // remove all handlers for the given type
1946
+ else
1947
+ for ( handler in events[type] )
1948
+ // Handle the removal of namespaced events
1949
+ if ( !parts[1] || events[type][handler].type == parts[1] )
1950
+ delete events[type][handler];
1951
+
1952
+ // remove generic event handler if no more handlers exist
1953
+ for ( ret in events[type] ) break;
1954
+ if ( !ret ) {
1955
+ if ( !jQuery.event.special[type] || jQuery.event.special[type].teardown.call(elem) === false ) {
1956
+ if (elem.removeEventListener)
1957
+ elem.removeEventListener(type, jQuery.data(elem, "handle"), false);
1958
+ else if (elem.detachEvent)
1959
+ elem.detachEvent("on" + type, jQuery.data(elem, "handle"));
1960
+ }
1961
+ ret = null;
1962
+ delete events[type];
1963
+ }
1964
+ }
1965
+ });
1966
+ }
1967
+
1968
+ // Remove the expando if it's no longer used
1969
+ for ( ret in events ) break;
1970
+ if ( !ret ) {
1971
+ var handle = jQuery.data( elem, "handle" );
1972
+ if ( handle ) handle.elem = null;
1973
+ jQuery.removeData( elem, "events" );
1974
+ jQuery.removeData( elem, "handle" );
1975
+ }
1976
+ }
1977
+ },
1978
+
1979
+ trigger: function(type, data, elem, donative, extra) {
1980
+ // Clone the incoming data, if any
1981
+ data = jQuery.makeArray(data);
1982
+
1983
+ if ( type.indexOf("!") >= 0 ) {
1984
+ type = type.slice(0, -1);
1985
+ var exclusive = true;
1986
+ }
1987
+
1988
+ // Handle a global trigger
1989
+ if ( !elem ) {
1990
+ // Only trigger if we've ever bound an event for it
1991
+ if ( this.global[type] )
1992
+ jQuery("*").add([window, document]).trigger(type, data);
1993
+
1994
+ // Handle triggering a single element
1995
+ } else {
1996
+ // don't do events on text and comment nodes
1997
+ if ( elem.nodeType == 3 || elem.nodeType == 8 )
1998
+ return undefined;
1999
+
2000
+ var val, ret, fn = jQuery.isFunction( elem[ type ] || null ),
2001
+ // Check to see if we need to provide a fake event, or not
2002
+ event = !data[0] || !data[0].preventDefault;
2003
+
2004
+ // Pass along a fake event
2005
+ if ( event ) {
2006
+ data.unshift({
2007
+ type: type,
2008
+ target: elem,
2009
+ preventDefault: function(){},
2010
+ stopPropagation: function(){},
2011
+ timeStamp: now()
2012
+ });
2013
+ data[0][expando] = true; // no need to fix fake event
2014
+ }
2015
+
2016
+ // Enforce the right trigger type
2017
+ data[0].type = type;
2018
+ if ( exclusive )
2019
+ data[0].exclusive = true;
2020
+
2021
+ // Trigger the event, it is assumed that "handle" is a function
2022
+ var handle = jQuery.data(elem, "handle");
2023
+ if ( handle )
2024
+ val = handle.apply( elem, data );
2025
+
2026
+ // Handle triggering native .onfoo handlers (and on links since we don't call .click() for links)
2027
+ if ( (!fn || (jQuery.nodeName(elem, 'a') && type == "click")) && elem["on"+type] && elem["on"+type].apply( elem, data ) === false )
2028
+ val = false;
2029
+
2030
+ // Extra functions don't get the custom event object
2031
+ if ( event )
2032
+ data.shift();
2033
+
2034
+ // Handle triggering of extra function
2035
+ if ( extra && jQuery.isFunction( extra ) ) {
2036
+ // call the extra function and tack the current return value on the end for possible inspection
2037
+ ret = extra.apply( elem, val == null ? data : data.concat( val ) );
2038
+ // if anything is returned, give it precedence and have it overwrite the previous value
2039
+ if (ret !== undefined)
2040
+ val = ret;
2041
+ }
2042
+
2043
+ // Trigger the native events (except for clicks on links)
2044
+ if ( fn && donative !== false && val !== false && !(jQuery.nodeName(elem, 'a') && type == "click") ) {
2045
+ this.triggered = true;
2046
+ try {
2047
+ elem[ type ]();
2048
+ // prevent IE from throwing an error for some hidden elements
2049
+ } catch (e) {}
2050
+ }
2051
+
2052
+ this.triggered = false;
2053
+ }
2054
+
2055
+ return val;
2056
+ },
2057
+
2058
+ handle: function(event) {
2059
+ // returned undefined or false
2060
+ var val, ret, namespace, all, handlers;
2061
+
2062
+ event = arguments[0] = jQuery.event.fix( event || window.event );
2063
+
2064
+ // Namespaced event handlers
2065
+ namespace = event.type.split(".");
2066
+ event.type = namespace[0];
2067
+ namespace = namespace[1];
2068
+ // Cache this now, all = true means, any handler
2069
+ all = !namespace && !event.exclusive;
2070
+
2071
+ handlers = ( jQuery.data(this, "events") || {} )[event.type];
2072
+
2073
+ for ( var j in handlers ) {
2074
+ var handler = handlers[j];
2075
+
2076
+ // Filter the functions by class
2077
+ if ( all || handler.type == namespace ) {
2078
+ // Pass in a reference to the handler function itself
2079
+ // So that we can later remove it
2080
+ event.handler = handler;
2081
+ event.data = handler.data;
2082
+
2083
+ ret = handler.apply( this, arguments );
2084
+
2085
+ if ( val !== false )
2086
+ val = ret;
2087
+
2088
+ if ( ret === false ) {
2089
+ event.preventDefault();
2090
+ event.stopPropagation();
2091
+ }
2092
+ }
2093
+ }
2094
+
2095
+ return val;
2096
+ },
2097
+
2098
+ fix: function(event) {
2099
+ if ( event[expando] == true )
2100
+ return event;
2101
+
2102
+ // store a copy of the original event object
2103
+ // and "clone" to set read-only properties
2104
+ var originalEvent = event;
2105
+ event = { originalEvent: originalEvent };
2106
+ var props = "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");
2107
+ for ( var i=props.length; i; i-- )
2108
+ event[ props[i] ] = originalEvent[ props[i] ];
2109
+
2110
+ // Mark it as fixed
2111
+ event[expando] = true;
2112
+
2113
+ // add preventDefault and stopPropagation since
2114
+ // they will not work on the clone
2115
+ event.preventDefault = function() {
2116
+ // if preventDefault exists run it on the original event
2117
+ if (originalEvent.preventDefault)
2118
+ originalEvent.preventDefault();
2119
+ // otherwise set the returnValue property of the original event to false (IE)
2120
+ originalEvent.returnValue = false;
2121
+ };
2122
+ event.stopPropagation = function() {
2123
+ // if stopPropagation exists run it on the original event
2124
+ if (originalEvent.stopPropagation)
2125
+ originalEvent.stopPropagation();
2126
+ // otherwise set the cancelBubble property of the original event to true (IE)
2127
+ originalEvent.cancelBubble = true;
2128
+ };
2129
+
2130
+ // Fix timeStamp
2131
+ event.timeStamp = event.timeStamp || now();
2132
+
2133
+ // Fix target property, if necessary
2134
+ if ( !event.target )
2135
+ event.target = event.srcElement || document; // Fixes #1925 where srcElement might not be defined either
2136
+
2137
+ // check if target is a textnode (safari)
2138
+ if ( event.target.nodeType == 3 )
2139
+ event.target = event.target.parentNode;
2140
+
2141
+ // Add relatedTarget, if necessary
2142
+ if ( !event.relatedTarget && event.fromElement )
2143
+ event.relatedTarget = event.fromElement == event.target ? event.toElement : event.fromElement;
2144
+
2145
+ // Calculate pageX/Y if missing and clientX/Y available
2146
+ if ( event.pageX == null && event.clientX != null ) {
2147
+ var doc = document.documentElement, body = document.body;
2148
+ event.pageX = event.clientX + (doc && doc.scrollLeft || body && body.scrollLeft || 0) - (doc.clientLeft || 0);
2149
+ event.pageY = event.clientY + (doc && doc.scrollTop || body && body.scrollTop || 0) - (doc.clientTop || 0);
2150
+ }
2151
+
2152
+ // Add which for key events
2153
+ if ( !event.which && ((event.charCode || event.charCode === 0) ? event.charCode : event.keyCode) )
2154
+ event.which = event.charCode || event.keyCode;
2155
+
2156
+ // Add metaKey to non-Mac browsers (use ctrl for PC's and Meta for Macs)
2157
+ if ( !event.metaKey && event.ctrlKey )
2158
+ event.metaKey = event.ctrlKey;
2159
+
2160
+ // Add which for click: 1 == left; 2 == middle; 3 == right
2161
+ // Note: button is not normalized, so don't use it
2162
+ if ( !event.which && event.button )
2163
+ event.which = (event.button & 1 ? 1 : ( event.button & 2 ? 3 : ( event.button & 4 ? 2 : 0 ) ));
2164
+
2165
+ return event;
2166
+ },
2167
+
2168
+ proxy: function( fn, proxy ){
2169
+ // Set the guid of unique handler to the same of original handler, so it can be removed
2170
+ proxy.guid = fn.guid = fn.guid || proxy.guid || this.guid++;
2171
+ // So proxy can be declared as an argument
2172
+ return proxy;
2173
+ },
2174
+
2175
+ special: {
2176
+ ready: {
2177
+ setup: function() {
2178
+ // Make sure the ready event is setup
2179
+ bindReady();
2180
+ return;
2181
+ },
2182
+
2183
+ teardown: function() { return; }
2184
+ },
2185
+
2186
+ mouseenter: {
2187
+ setup: function() {
2188
+ if ( jQuery.browser.msie ) return false;
2189
+ jQuery(this).bind("mouseover", jQuery.event.special.mouseenter.handler);
2190
+ return true;
2191
+ },
2192
+
2193
+ teardown: function() {
2194
+ if ( jQuery.browser.msie ) return false;
2195
+ jQuery(this).unbind("mouseover", jQuery.event.special.mouseenter.handler);
2196
+ return true;
2197
+ },
2198
+
2199
+ handler: function(event) {
2200
+ // If we actually just moused on to a sub-element, ignore it
2201
+ if ( withinElement(event, this) ) return true;
2202
+ // Execute the right handlers by setting the event type to mouseenter
2203
+ event.type = "mouseenter";
2204
+ return jQuery.event.handle.apply(this, arguments);
2205
+ }
2206
+ },
2207
+
2208
+ mouseleave: {
2209
+ setup: function() {
2210
+ if ( jQuery.browser.msie ) return false;
2211
+ jQuery(this).bind("mouseout", jQuery.event.special.mouseleave.handler);
2212
+ return true;
2213
+ },
2214
+
2215
+ teardown: function() {
2216
+ if ( jQuery.browser.msie ) return false;
2217
+ jQuery(this).unbind("mouseout", jQuery.event.special.mouseleave.handler);
2218
+ return true;
2219
+ },
2220
+
2221
+ handler: function(event) {
2222
+ // If we actually just moused on to a sub-element, ignore it
2223
+ if ( withinElement(event, this) ) return true;
2224
+ // Execute the right handlers by setting the event type to mouseleave
2225
+ event.type = "mouseleave";
2226
+ return jQuery.event.handle.apply(this, arguments);
2227
+ }
2228
+ }
2229
+ }
2230
+ };
2231
+
2232
+ jQuery.fn.extend({
2233
+ bind: function( type, data, fn ) {
2234
+ return type == "unload" ? this.one(type, data, fn) : this.each(function(){
2235
+ jQuery.event.add( this, type, fn || data, fn && data );
2236
+ });
2237
+ },
2238
+
2239
+ one: function( type, data, fn ) {
2240
+ var one = jQuery.event.proxy( fn || data, function(event) {
2241
+ jQuery(this).unbind(event, one);
2242
+ return (fn || data).apply( this, arguments );
2243
+ });
2244
+ return this.each(function(){
2245
+ jQuery.event.add( this, type, one, fn && data);
2246
+ });
2247
+ },
2248
+
2249
+ unbind: function( type, fn ) {
2250
+ return this.each(function(){
2251
+ jQuery.event.remove( this, type, fn );
2252
+ });
2253
+ },
2254
+
2255
+ trigger: function( type, data, fn ) {
2256
+ return this.each(function(){
2257
+ jQuery.event.trigger( type, data, this, true, fn );
2258
+ });
2259
+ },
2260
+
2261
+ triggerHandler: function( type, data, fn ) {
2262
+ return this[0] && jQuery.event.trigger( type, data, this[0], false, fn );
2263
+ },
2264
+
2265
+ toggle: function( fn ) {
2266
+ // Save reference to arguments for access in closure
2267
+ var args = arguments, i = 1;
2268
+
2269
+ // link all the functions, so any of them can unbind this click handler
2270
+ while( i < args.length )
2271
+ jQuery.event.proxy( fn, args[i++] );
2272
+
2273
+ return this.click( jQuery.event.proxy( fn, function(event) {
2274
+ // Figure out which function to execute
2275
+ this.lastToggle = ( this.lastToggle || 0 ) % i;
2276
+
2277
+ // Make sure that clicks stop
2278
+ event.preventDefault();
2279
+
2280
+ // and execute the function
2281
+ return args[ this.lastToggle++ ].apply( this, arguments ) || false;
2282
+ }));
2283
+ },
2284
+
2285
+ hover: function(fnOver, fnOut) {
2286
+ return this.bind('mouseenter', fnOver).bind('mouseleave', fnOut);
2287
+ },
2288
+
2289
+ ready: function(fn) {
2290
+ // Attach the listeners
2291
+ bindReady();
2292
+
2293
+ // If the DOM is already ready
2294
+ if ( jQuery.isReady )
2295
+ // Execute the function immediately
2296
+ fn.call( document, jQuery );
2297
+
2298
+ // Otherwise, remember the function for later
2299
+ else
2300
+ // Add the function to the wait list
2301
+ jQuery.readyList.push( function() { return fn.call(this, jQuery); } );
2302
+
2303
+ return this;
2304
+ }
2305
+ });
2306
+
2307
+ jQuery.extend({
2308
+ isReady: false,
2309
+ readyList: [],
2310
+ // Handle when the DOM is ready
2311
+ ready: function() {
2312
+ // Make sure that the DOM is not already loaded
2313
+ if ( !jQuery.isReady ) {
2314
+ // Remember that the DOM is ready
2315
+ jQuery.isReady = true;
2316
+
2317
+ // If there are functions bound, to execute
2318
+ if ( jQuery.readyList ) {
2319
+ // Execute all of them
2320
+ jQuery.each( jQuery.readyList, function(){
2321
+ this.call( document );
2322
+ });
2323
+
2324
+ // Reset the list of functions
2325
+ jQuery.readyList = null;
2326
+ }
2327
+
2328
+ // Trigger any bound ready events
2329
+ jQuery(document).triggerHandler("ready");
2330
+ }
2331
+ }
2332
+ });
2333
+
2334
+ var readyBound = false;
2335
+
2336
+ function bindReady(){
2337
+ if ( readyBound ) return;
2338
+ readyBound = true;
2339
+
2340
+ // Mozilla, Opera (see further below for it) and webkit nightlies currently support this event
2341
+ if ( document.addEventListener && !jQuery.browser.opera)
2342
+ // Use the handy event callback
2343
+ document.addEventListener( "DOMContentLoaded", jQuery.ready, false );
2344
+
2345
+ // If IE is used and is not in a frame
2346
+ // Continually check to see if the document is ready
2347
+ if ( jQuery.browser.msie && window == top ) (function(){
2348
+ if (jQuery.isReady) return;
2349
+ try {
2350
+ // If IE is used, use the trick by Diego Perini
2351
+ // http://javascript.nwbox.com/IEContentLoaded/
2352
+ document.documentElement.doScroll("left");
2353
+ } catch( error ) {
2354
+ setTimeout( arguments.callee, 0 );
2355
+ return;
2356
+ }
2357
+ // and execute any waiting functions
2358
+ jQuery.ready();
2359
+ })();
2360
+
2361
+ if ( jQuery.browser.opera )
2362
+ document.addEventListener( "DOMContentLoaded", function () {
2363
+ if (jQuery.isReady) return;
2364
+ for (var i = 0; i < document.styleSheets.length; i++)
2365
+ if (document.styleSheets[i].disabled) {
2366
+ setTimeout( arguments.callee, 0 );
2367
+ return;
2368
+ }
2369
+ // and execute any waiting functions
2370
+ jQuery.ready();
2371
+ }, false);
2372
+
2373
+ if ( jQuery.browser.safari ) {
2374
+ var numStyles;
2375
+ (function(){
2376
+ if (jQuery.isReady) return;
2377
+ if ( document.readyState != "loaded" && document.readyState != "complete" ) {
2378
+ setTimeout( arguments.callee, 0 );
2379
+ return;
2380
+ }
2381
+ if ( numStyles === undefined )
2382
+ numStyles = jQuery("style, link[rel=stylesheet]").length;
2383
+ if ( document.styleSheets.length != numStyles ) {
2384
+ setTimeout( arguments.callee, 0 );
2385
+ return;
2386
+ }
2387
+ // and execute any waiting functions
2388
+ jQuery.ready();
2389
+ })();
2390
+ }
2391
+
2392
+ // A fallback to window.onload, that will always work
2393
+ jQuery.event.add( window, "load", jQuery.ready );
2394
+ }
2395
+
2396
+ jQuery.each( ("blur,focus,load,resize,scroll,unload,click,dblclick," +
2397
+ "mousedown,mouseup,mousemove,mouseover,mouseout,change,select," +
2398
+ "submit,keydown,keypress,keyup,error").split(","), function(i, name){
2399
+
2400
+ // Handle event binding
2401
+ jQuery.fn[name] = function(fn){
2402
+ return fn ? this.bind(name, fn) : this.trigger(name);
2403
+ };
2404
+ });
2405
+
2406
+ // Checks if an event happened on an element within another element
2407
+ // Used in jQuery.event.special.mouseenter and mouseleave handlers
2408
+ var withinElement = function(event, elem) {
2409
+ // Check if mouse(over|out) are still within the same parent element
2410
+ var parent = event.relatedTarget;
2411
+ // Traverse up the tree
2412
+ while ( parent && parent != elem ) try { parent = parent.parentNode; } catch(error) { parent = elem; }
2413
+ // Return true if we actually just moused on to a sub-element
2414
+ return parent == elem;
2415
+ };
2416
+
2417
+ // Prevent memory leaks in IE
2418
+ // And prevent errors on refresh with events like mouseover in other browsers
2419
+ // Window isn't included so as not to unbind existing unload events
2420
+ jQuery(window).bind("unload", function() {
2421
+ jQuery("*").add(document).unbind();
2422
+ });
2423
+ jQuery.fn.extend({
2424
+ // Keep a copy of the old load
2425
+ _load: jQuery.fn.load,
2426
+
2427
+ load: function( url, params, callback ) {
2428
+ if ( typeof url != 'string' )
2429
+ return this._load( url );
2430
+
2431
+ var off = url.indexOf(" ");
2432
+ if ( off >= 0 ) {
2433
+ var selector = url.slice(off, url.length);
2434
+ url = url.slice(0, off);
2435
+ }
2436
+
2437
+ callback = callback || function(){};
2438
+
2439
+ // Default to a GET request
2440
+ var type = "GET";
2441
+
2442
+ // If the second parameter was provided
2443
+ if ( params )
2444
+ // If it's a function
2445
+ if ( jQuery.isFunction( params ) ) {
2446
+ // We assume that it's the callback
2447
+ callback = params;
2448
+ params = null;
2449
+
2450
+ // Otherwise, build a param string
2451
+ } else {
2452
+ params = jQuery.param( params );
2453
+ type = "POST";
2454
+ }
2455
+
2456
+ var self = this;
2457
+
2458
+ // Request the remote document
2459
+ jQuery.ajax({
2460
+ url: url,
2461
+ type: type,
2462
+ dataType: "html",
2463
+ data: params,
2464
+ complete: function(res, status){
2465
+ // If successful, inject the HTML into all the matched elements
2466
+ if ( status == "success" || status == "notmodified" )
2467
+ // See if a selector was specified
2468
+ self.html( selector ?
2469
+ // Create a dummy div to hold the results
2470
+ jQuery("<div/>")
2471
+ // inject the contents of the document in, removing the scripts
2472
+ // to avoid any 'Permission Denied' errors in IE
2473
+ .append(res.responseText.replace(/<script(.|\s)*?\/script>/g, ""))
2474
+
2475
+ // Locate the specified elements
2476
+ .find(selector) :
2477
+
2478
+ // If not, just inject the full result
2479
+ res.responseText );
2480
+
2481
+ self.each( callback, [res.responseText, status, res] );
2482
+ }
2483
+ });
2484
+ return this;
2485
+ },
2486
+
2487
+ serialize: function() {
2488
+ return jQuery.param(this.serializeArray());
2489
+ },
2490
+ serializeArray: function() {
2491
+ return this.map(function(){
2492
+ return jQuery.nodeName(this, "form") ?
2493
+ jQuery.makeArray(this.elements) : this;
2494
+ })
2495
+ .filter(function(){
2496
+ return this.name && !this.disabled &&
2497
+ (this.checked || /select|textarea/i.test(this.nodeName) ||
2498
+ /text|hidden|password/i.test(this.type));
2499
+ })
2500
+ .map(function(i, elem){
2501
+ var val = jQuery(this).val();
2502
+ return val == null ? null :
2503
+ val.constructor == Array ?
2504
+ jQuery.map( val, function(val, i){
2505
+ return {name: elem.name, value: val};
2506
+ }) :
2507
+ {name: elem.name, value: val};
2508
+ }).get();
2509
+ }
2510
+ });
2511
+
2512
+ // Attach a bunch of functions for handling common AJAX events
2513
+ jQuery.each( "ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(i,o){
2514
+ jQuery.fn[o] = function(f){
2515
+ return this.bind(o, f);
2516
+ };
2517
+ });
2518
+
2519
+ var jsc = now();
2520
+
2521
+ jQuery.extend({
2522
+ get: function( url, data, callback, type ) {
2523
+ // shift arguments if data argument was ommited
2524
+ if ( jQuery.isFunction( data ) ) {
2525
+ callback = data;
2526
+ data = null;
2527
+ }
2528
+
2529
+ return jQuery.ajax({
2530
+ type: "GET",
2531
+ url: url,
2532
+ data: data,
2533
+ success: callback,
2534
+ dataType: type
2535
+ });
2536
+ },
2537
+
2538
+ getScript: function( url, callback ) {
2539
+ return jQuery.get(url, null, callback, "script");
2540
+ },
2541
+
2542
+ getJSON: function( url, data, callback ) {
2543
+ return jQuery.get(url, data, callback, "json");
2544
+ },
2545
+
2546
+ post: function( url, data, callback, type ) {
2547
+ if ( jQuery.isFunction( data ) ) {
2548
+ callback = data;
2549
+ data = {};
2550
+ }
2551
+
2552
+ return jQuery.ajax({
2553
+ type: "POST",
2554
+ url: url,
2555
+ data: data,
2556
+ success: callback,
2557
+ dataType: type
2558
+ });
2559
+ },
2560
+
2561
+ ajaxSetup: function( settings ) {
2562
+ jQuery.extend( jQuery.ajaxSettings, settings );
2563
+ },
2564
+
2565
+ ajaxSettings: {
2566
+ url: location.href,
2567
+ global: true,
2568
+ type: "GET",
2569
+ timeout: 0,
2570
+ contentType: "application/x-www-form-urlencoded",
2571
+ processData: true,
2572
+ async: true,
2573
+ data: null,
2574
+ username: null,
2575
+ password: null,
2576
+ accepts: {
2577
+ xml: "application/xml, text/xml",
2578
+ html: "text/html",
2579
+ script: "text/javascript, application/javascript",
2580
+ json: "application/json, text/javascript",
2581
+ text: "text/plain",
2582
+ _default: "*/*"
2583
+ }
2584
+ },
2585
+
2586
+ // Last-Modified header cache for next request
2587
+ lastModified: {},
2588
+
2589
+ ajax: function( s ) {
2590
+ // Extend the settings, but re-extend 's' so that it can be
2591
+ // checked again later (in the test suite, specifically)
2592
+ s = jQuery.extend(true, s, jQuery.extend(true, {}, jQuery.ajaxSettings, s));
2593
+
2594
+ var jsonp, jsre = /=\?(&|$)/g, status, data,
2595
+ type = s.type.toUpperCase();
2596
+
2597
+ // convert data if not already a string
2598
+ if ( s.data && s.processData && typeof s.data != "string" )
2599
+ s.data = jQuery.param(s.data);
2600
+
2601
+ // Handle JSONP Parameter Callbacks
2602
+ if ( s.dataType == "jsonp" ) {
2603
+ if ( type == "GET" ) {
2604
+ if ( !s.url.match(jsre) )
2605
+ s.url += (s.url.match(/\?/) ? "&" : "?") + (s.jsonp || "callback") + "=?";
2606
+ } else if ( !s.data || !s.data.match(jsre) )
2607
+ s.data = (s.data ? s.data + "&" : "") + (s.jsonp || "callback") + "=?";
2608
+ s.dataType = "json";
2609
+ }
2610
+
2611
+ // Build temporary JSONP function
2612
+ if ( s.dataType == "json" && (s.data && s.data.match(jsre) || s.url.match(jsre)) ) {
2613
+ jsonp = "jsonp" + jsc++;
2614
+
2615
+ // Replace the =? sequence both in the query string and the data
2616
+ if ( s.data )
2617
+ s.data = (s.data + "").replace(jsre, "=" + jsonp + "$1");
2618
+ s.url = s.url.replace(jsre, "=" + jsonp + "$1");
2619
+
2620
+ // We need to make sure
2621
+ // that a JSONP style response is executed properly
2622
+ s.dataType = "script";
2623
+
2624
+ // Handle JSONP-style loading
2625
+ window[ jsonp ] = function(tmp){
2626
+ data = tmp;
2627
+ success();
2628
+ complete();
2629
+ // Garbage collect
2630
+ window[ jsonp ] = undefined;
2631
+ try{ delete window[ jsonp ]; } catch(e){}
2632
+ if ( head )
2633
+ head.removeChild( script );
2634
+ };
2635
+ }
2636
+
2637
+ if ( s.dataType == "script" && s.cache == null )
2638
+ s.cache = false;
2639
+
2640
+ if ( s.cache === false && type == "GET" ) {
2641
+ var ts = now();
2642
+ // try replacing _= if it is there
2643
+ var ret = s.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + ts + "$2");
2644
+ // if nothing was replaced, add timestamp to the end
2645
+ s.url = ret + ((ret == s.url) ? (s.url.match(/\?/) ? "&" : "?") + "_=" + ts : "");
2646
+ }
2647
+
2648
+ // If data is available, append data to url for get requests
2649
+ if ( s.data && type == "GET" ) {
2650
+ s.url += (s.url.match(/\?/) ? "&" : "?") + s.data;
2651
+
2652
+ // IE likes to send both get and post data, prevent this
2653
+ s.data = null;
2654
+ }
2655
+
2656
+ // Watch for a new set of requests
2657
+ if ( s.global && ! jQuery.active++ )
2658
+ jQuery.event.trigger( "ajaxStart" );
2659
+
2660
+ // Matches an absolute URL, and saves the domain
2661
+ var remote = /^(?:\w+:)?\/\/([^\/?#]+)/;
2662
+
2663
+ // If we're requesting a remote document
2664
+ // and trying to load JSON or Script with a GET
2665
+ if ( s.dataType == "script" && type == "GET"
2666
+ && remote.test(s.url) && remote.exec(s.url)[1] != location.host ){
2667
+ var head = document.getElementsByTagName("head")[0];
2668
+ var script = document.createElement("script");
2669
+ script.src = s.url;
2670
+ if (s.scriptCharset)
2671
+ script.charset = s.scriptCharset;
2672
+
2673
+ // Handle Script loading
2674
+ if ( !jsonp ) {
2675
+ var done = false;
2676
+
2677
+ // Attach handlers for all browsers
2678
+ script.onload = script.onreadystatechange = function(){
2679
+ if ( !done && (!this.readyState ||
2680
+ this.readyState == "loaded" || this.readyState == "complete") ) {
2681
+ done = true;
2682
+ success();
2683
+ complete();
2684
+ head.removeChild( script );
2685
+ }
2686
+ };
2687
+ }
2688
+
2689
+ head.appendChild(script);
2690
+
2691
+ // We handle everything using the script element injection
2692
+ return undefined;
2693
+ }
2694
+
2695
+ var requestDone = false;
2696
+
2697
+ // Create the request object; Microsoft failed to properly
2698
+ // implement the XMLHttpRequest in IE7, so we use the ActiveXObject when it is available
2699
+ var xhr = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
2700
+
2701
+ // Open the socket
2702
+ // Passing null username, generates a login popup on Opera (#2865)
2703
+ if( s.username )
2704
+ xhr.open(type, s.url, s.async, s.username, s.password);
2705
+ else
2706
+ xhr.open(type, s.url, s.async);
2707
+
2708
+ // Need an extra try/catch for cross domain requests in Firefox 3
2709
+ try {
2710
+ // Set the correct header, if data is being sent
2711
+ if ( s.data )
2712
+ xhr.setRequestHeader("Content-Type", s.contentType);
2713
+
2714
+ // Set the If-Modified-Since header, if ifModified mode.
2715
+ if ( s.ifModified )
2716
+ xhr.setRequestHeader("If-Modified-Since",
2717
+ jQuery.lastModified[s.url] || "Thu, 01 Jan 1970 00:00:00 GMT" );
2718
+
2719
+ // Set header so the called script knows that it's an XMLHttpRequest
2720
+ xhr.setRequestHeader("X-Requested-With", "XMLHttpRequest");
2721
+
2722
+ // Set the Accepts header for the server, depending on the dataType
2723
+ xhr.setRequestHeader("Accept", s.dataType && s.accepts[ s.dataType ] ?
2724
+ s.accepts[ s.dataType ] + ", */*" :
2725
+ s.accepts._default );
2726
+ } catch(e){}
2727
+
2728
+ // Allow custom headers/mimetypes
2729
+ if ( s.beforeSend && s.beforeSend(xhr, s) === false ) {
2730
+ // cleanup active request counter
2731
+ s.global && jQuery.active--;
2732
+ // close opended socket
2733
+ xhr.abort();
2734
+ return false;
2735
+ }
2736
+
2737
+ if ( s.global )
2738
+ jQuery.event.trigger("ajaxSend", [xhr, s]);
2739
+
2740
+ // Wait for a response to come back
2741
+ var onreadystatechange = function(isTimeout){
2742
+ // The transfer is complete and the data is available, or the request timed out
2743
+ if ( !requestDone && xhr && (xhr.readyState == 4 || isTimeout == "timeout") ) {
2744
+ requestDone = true;
2745
+
2746
+ // clear poll interval
2747
+ if (ival) {
2748
+ clearInterval(ival);
2749
+ ival = null;
2750
+ }
2751
+
2752
+ status = isTimeout == "timeout" && "timeout" ||
2753
+ !jQuery.httpSuccess( xhr ) && "error" ||
2754
+ s.ifModified && jQuery.httpNotModified( xhr, s.url ) && "notmodified" ||
2755
+ "success";
2756
+
2757
+ if ( status == "success" ) {
2758
+ // Watch for, and catch, XML document parse errors
2759
+ try {
2760
+ // process the data (runs the xml through httpData regardless of callback)
2761
+ data = jQuery.httpData( xhr, s.dataType, s.dataFilter );
2762
+ } catch(e) {
2763
+ status = "parsererror";
2764
+ }
2765
+ }
2766
+
2767
+ // Make sure that the request was successful or notmodified
2768
+ if ( status == "success" ) {
2769
+ // Cache Last-Modified header, if ifModified mode.
2770
+ var modRes;
2771
+ try {
2772
+ modRes = xhr.getResponseHeader("Last-Modified");
2773
+ } catch(e) {} // swallow exception thrown by FF if header is not available
2774
+
2775
+ if ( s.ifModified && modRes )
2776
+ jQuery.lastModified[s.url] = modRes;
2777
+
2778
+ // JSONP handles its own success callback
2779
+ if ( !jsonp )
2780
+ success();
2781
+ } else
2782
+ jQuery.handleError(s, xhr, status);
2783
+
2784
+ // Fire the complete handlers
2785
+ complete();
2786
+
2787
+ // Stop memory leaks
2788
+ if ( s.async )
2789
+ xhr = null;
2790
+ }
2791
+ };
2792
+
2793
+ if ( s.async ) {
2794
+ // don't attach the handler to the request, just poll it instead
2795
+ var ival = setInterval(onreadystatechange, 13);
2796
+
2797
+ // Timeout checker
2798
+ if ( s.timeout > 0 )
2799
+ setTimeout(function(){
2800
+ // Check to see if the request is still happening
2801
+ if ( xhr ) {
2802
+ // Cancel the request
2803
+ xhr.abort();
2804
+
2805
+ if( !requestDone )
2806
+ onreadystatechange( "timeout" );
2807
+ }
2808
+ }, s.timeout);
2809
+ }
2810
+
2811
+ // Send the data
2812
+ try {
2813
+ xhr.send(s.data);
2814
+ } catch(e) {
2815
+ jQuery.handleError(s, xhr, null, e);
2816
+ }
2817
+
2818
+ // firefox 1.5 doesn't fire statechange for sync requests
2819
+ if ( !s.async )
2820
+ onreadystatechange();
2821
+
2822
+ function success(){
2823
+ // If a local callback was specified, fire it and pass it the data
2824
+ if ( s.success )
2825
+ s.success( data, status );
2826
+
2827
+ // Fire the global callback
2828
+ if ( s.global )
2829
+ jQuery.event.trigger( "ajaxSuccess", [xhr, s] );
2830
+ }
2831
+
2832
+ function complete(){
2833
+ // Process result
2834
+ if ( s.complete )
2835
+ s.complete(xhr, status);
2836
+
2837
+ // The request was completed
2838
+ if ( s.global )
2839
+ jQuery.event.trigger( "ajaxComplete", [xhr, s] );
2840
+
2841
+ // Handle the global AJAX counter
2842
+ if ( s.global && ! --jQuery.active )
2843
+ jQuery.event.trigger( "ajaxStop" );
2844
+ }
2845
+
2846
+ // return XMLHttpRequest to allow aborting the request etc.
2847
+ return xhr;
2848
+ },
2849
+
2850
+ handleError: function( s, xhr, status, e ) {
2851
+ // If a local callback was specified, fire it
2852
+ if ( s.error ) s.error( xhr, status, e );
2853
+
2854
+ // Fire the global callback
2855
+ if ( s.global )
2856
+ jQuery.event.trigger( "ajaxError", [xhr, s, e] );
2857
+ },
2858
+
2859
+ // Counter for holding the number of active queries
2860
+ active: 0,
2861
+
2862
+ // Determines if an XMLHttpRequest was successful or not
2863
+ httpSuccess: function( xhr ) {
2864
+ try {
2865
+ // IE error sometimes returns 1223 when it should be 204 so treat it as success, see #1450
2866
+ return !xhr.status && location.protocol == "file:" ||
2867
+ ( xhr.status >= 200 && xhr.status < 300 ) || xhr.status == 304 || xhr.status == 1223 ||
2868
+ jQuery.browser.safari && xhr.status == undefined;
2869
+ } catch(e){}
2870
+ return false;
2871
+ },
2872
+
2873
+ // Determines if an XMLHttpRequest returns NotModified
2874
+ httpNotModified: function( xhr, url ) {
2875
+ try {
2876
+ var xhrRes = xhr.getResponseHeader("Last-Modified");
2877
+
2878
+ // Firefox always returns 200. check Last-Modified date
2879
+ return xhr.status == 304 || xhrRes == jQuery.lastModified[url] ||
2880
+ jQuery.browser.safari && xhr.status == undefined;
2881
+ } catch(e){}
2882
+ return false;
2883
+ },
2884
+
2885
+ httpData: function( xhr, type, filter ) {
2886
+ var ct = xhr.getResponseHeader("content-type"),
2887
+ xml = type == "xml" || !type && ct && ct.indexOf("xml") >= 0,
2888
+ data = xml ? xhr.responseXML : xhr.responseText;
2889
+
2890
+ if ( xml && data.documentElement.tagName == "parsererror" )
2891
+ throw "parsererror";
2892
+
2893
+ // Allow a pre-filtering function to sanitize the response
2894
+ if( filter )
2895
+ data = filter( data, type );
2896
+
2897
+ // If the type is "script", eval it in global context
2898
+ if ( type == "script" )
2899
+ jQuery.globalEval( data );
2900
+
2901
+ // Get the JavaScript object, if JSON is used.
2902
+ if ( type == "json" )
2903
+ data = eval("(" + data + ")");
2904
+
2905
+ return data;
2906
+ },
2907
+
2908
+ // Serialize an array of form elements or a set of
2909
+ // key/values into a query string
2910
+ param: function( a ) {
2911
+ var s = [];
2912
+
2913
+ // If an array was passed in, assume that it is an array
2914
+ // of form elements
2915
+ if ( a.constructor == Array || a.jquery )
2916
+ // Serialize the form elements
2917
+ jQuery.each( a, function(){
2918
+ s.push( encodeURIComponent(this.name) + "=" + encodeURIComponent( this.value ) );
2919
+ });
2920
+
2921
+ // Otherwise, assume that it's an object of key/value pairs
2922
+ else
2923
+ // Serialize the key/values
2924
+ for ( var j in a )
2925
+ // If the value is an array then the key names need to be repeated
2926
+ if ( a[j] && a[j].constructor == Array )
2927
+ jQuery.each( a[j], function(){
2928
+ s.push( encodeURIComponent(j) + "=" + encodeURIComponent( this ) );
2929
+ });
2930
+ else
2931
+ s.push( encodeURIComponent(j) + "=" + encodeURIComponent( jQuery.isFunction(a[j]) ? a[j]() : a[j] ) );
2932
+
2933
+ // Return the resulting serialization
2934
+ return s.join("&").replace(/%20/g, "+");
2935
+ }
2936
+
2937
+ });
2938
+ jQuery.fn.extend({
2939
+ show: function(speed,callback){
2940
+ return speed ?
2941
+ this.animate({
2942
+ height: "show", width: "show", opacity: "show"
2943
+ }, speed, callback) :
2944
+
2945
+ this.filter(":hidden").each(function(){
2946
+ this.style.display = this.oldblock || "";
2947
+ if ( jQuery.css(this,"display") == "none" ) {
2948
+ var elem = jQuery("<" + this.tagName + " />").appendTo("body");
2949
+ this.style.display = elem.css("display");
2950
+ // handle an edge condition where css is - div { display:none; } or similar
2951
+ if (this.style.display == "none")
2952
+ this.style.display = "block";
2953
+ elem.remove();
2954
+ }
2955
+ }).end();
2956
+ },
2957
+
2958
+ hide: function(speed,callback){
2959
+ return speed ?
2960
+ this.animate({
2961
+ height: "hide", width: "hide", opacity: "hide"
2962
+ }, speed, callback) :
2963
+
2964
+ this.filter(":visible").each(function(){
2965
+ this.oldblock = this.oldblock || jQuery.css(this,"display");
2966
+ this.style.display = "none";
2967
+ }).end();
2968
+ },
2969
+
2970
+ // Save the old toggle function
2971
+ _toggle: jQuery.fn.toggle,
2972
+
2973
+ toggle: function( fn, fn2 ){
2974
+ return jQuery.isFunction(fn) && jQuery.isFunction(fn2) ?
2975
+ this._toggle.apply( this, arguments ) :
2976
+ fn ?
2977
+ this.animate({
2978
+ height: "toggle", width: "toggle", opacity: "toggle"
2979
+ }, fn, fn2) :
2980
+ this.each(function(){
2981
+ jQuery(this)[ jQuery(this).is(":hidden") ? "show" : "hide" ]();
2982
+ });
2983
+ },
2984
+
2985
+ slideDown: function(speed,callback){
2986
+ return this.animate({height: "show"}, speed, callback);
2987
+ },
2988
+
2989
+ slideUp: function(speed,callback){
2990
+ return this.animate({height: "hide"}, speed, callback);
2991
+ },
2992
+
2993
+ slideToggle: function(speed, callback){
2994
+ return this.animate({height: "toggle"}, speed, callback);
2995
+ },
2996
+
2997
+ fadeIn: function(speed, callback){
2998
+ return this.animate({opacity: "show"}, speed, callback);
2999
+ },
3000
+
3001
+ fadeOut: function(speed, callback){
3002
+ return this.animate({opacity: "hide"}, speed, callback);
3003
+ },
3004
+
3005
+ fadeTo: function(speed,to,callback){
3006
+ return this.animate({opacity: to}, speed, callback);
3007
+ },
3008
+
3009
+ animate: function( prop, speed, easing, callback ) {
3010
+ var optall = jQuery.speed(speed, easing, callback);
3011
+
3012
+ return this[ optall.queue === false ? "each" : "queue" ](function(){
3013
+ if ( this.nodeType != 1)
3014
+ return false;
3015
+
3016
+ var opt = jQuery.extend({}, optall), p,
3017
+ hidden = jQuery(this).is(":hidden"), self = this;
3018
+
3019
+ for ( p in prop ) {
3020
+ if ( prop[p] == "hide" && hidden || prop[p] == "show" && !hidden )
3021
+ return opt.complete.call(this);
3022
+
3023
+ if ( p == "height" || p == "width" ) {
3024
+ // Store display property
3025
+ opt.display = jQuery.css(this, "display");
3026
+
3027
+ // Make sure that nothing sneaks out
3028
+ opt.overflow = this.style.overflow;
3029
+ }
3030
+ }
3031
+
3032
+ if ( opt.overflow != null )
3033
+ this.style.overflow = "hidden";
3034
+
3035
+ opt.curAnim = jQuery.extend({}, prop);
3036
+
3037
+ jQuery.each( prop, function(name, val){
3038
+ var e = new jQuery.fx( self, opt, name );
3039
+
3040
+ if ( /toggle|show|hide/.test(val) )
3041
+ e[ val == "toggle" ? hidden ? "show" : "hide" : val ]( prop );
3042
+ else {
3043
+ var parts = val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),
3044
+ start = e.cur(true) || 0;
3045
+
3046
+ if ( parts ) {
3047
+ var end = parseFloat(parts[2]),
3048
+ unit = parts[3] || "px";
3049
+
3050
+ // We need to compute starting value
3051
+ if ( unit != "px" ) {
3052
+ self.style[ name ] = (end || 1) + unit;
3053
+ start = ((end || 1) / e.cur(true)) * start;
3054
+ self.style[ name ] = start + unit;
3055
+ }
3056
+
3057
+ // If a +=/-= token was provided, we're doing a relative animation
3058
+ if ( parts[1] )
3059
+ end = ((parts[1] == "-=" ? -1 : 1) * end) + start;
3060
+
3061
+ e.custom( start, end, unit );
3062
+ } else
3063
+ e.custom( start, val, "" );
3064
+ }
3065
+ });
3066
+
3067
+ // For JS strict compliance
3068
+ return true;
3069
+ });
3070
+ },
3071
+
3072
+ queue: function(type, fn){
3073
+ if ( jQuery.isFunction(type) || ( type && type.constructor == Array )) {
3074
+ fn = type;
3075
+ type = "fx";
3076
+ }
3077
+
3078
+ if ( !type || (typeof type == "string" && !fn) )
3079
+ return queue( this[0], type );
3080
+
3081
+ return this.each(function(){
3082
+ if ( fn.constructor == Array )
3083
+ queue(this, type, fn);
3084
+ else {
3085
+ queue(this, type).push( fn );
3086
+
3087
+ if ( queue(this, type).length == 1 )
3088
+ fn.call(this);
3089
+ }
3090
+ });
3091
+ },
3092
+
3093
+ stop: function(clearQueue, gotoEnd){
3094
+ var timers = jQuery.timers;
3095
+
3096
+ if (clearQueue)
3097
+ this.queue([]);
3098
+
3099
+ this.each(function(){
3100
+ // go in reverse order so anything added to the queue during the loop is ignored
3101
+ for ( var i = timers.length - 1; i >= 0; i-- )
3102
+ if ( timers[i].elem == this ) {
3103
+ if (gotoEnd)
3104
+ // force the next step to be the last
3105
+ timers[i](true);
3106
+ timers.splice(i, 1);
3107
+ }
3108
+ });
3109
+
3110
+ // start the next in the queue if the last step wasn't forced
3111
+ if (!gotoEnd)
3112
+ this.dequeue();
3113
+
3114
+ return this;
3115
+ }
3116
+
3117
+ });
3118
+
3119
+ var queue = function( elem, type, array ) {
3120
+ if ( elem ){
3121
+
3122
+ type = type || "fx";
3123
+
3124
+ var q = jQuery.data( elem, type + "queue" );
3125
+
3126
+ if ( !q || array )
3127
+ q = jQuery.data( elem, type + "queue", jQuery.makeArray(array) );
3128
+
3129
+ }
3130
+ return q;
3131
+ };
3132
+
3133
+ jQuery.fn.dequeue = function(type){
3134
+ type = type || "fx";
3135
+
3136
+ return this.each(function(){
3137
+ var q = queue(this, type);
3138
+
3139
+ q.shift();
3140
+
3141
+ if ( q.length )
3142
+ q[0].call( this );
3143
+ });
3144
+ };
3145
+
3146
+ jQuery.extend({
3147
+
3148
+ speed: function(speed, easing, fn) {
3149
+ var opt = speed && speed.constructor == Object ? speed : {
3150
+ complete: fn || !fn && easing ||
3151
+ jQuery.isFunction( speed ) && speed,
3152
+ duration: speed,
3153
+ easing: fn && easing || easing && easing.constructor != Function && easing
3154
+ };
3155
+
3156
+ opt.duration = (opt.duration && opt.duration.constructor == Number ?
3157
+ opt.duration :
3158
+ jQuery.fx.speeds[opt.duration]) || jQuery.fx.speeds.def;
3159
+
3160
+ // Queueing
3161
+ opt.old = opt.complete;
3162
+ opt.complete = function(){
3163
+ if ( opt.queue !== false )
3164
+ jQuery(this).dequeue();
3165
+ if ( jQuery.isFunction( opt.old ) )
3166
+ opt.old.call( this );
3167
+ };
3168
+
3169
+ return opt;
3170
+ },
3171
+
3172
+ easing: {
3173
+ linear: function( p, n, firstNum, diff ) {
3174
+ return firstNum + diff * p;
3175
+ },
3176
+ swing: function( p, n, firstNum, diff ) {
3177
+ return ((-Math.cos(p*Math.PI)/2) + 0.5) * diff + firstNum;
3178
+ }
3179
+ },
3180
+
3181
+ timers: [],
3182
+ timerId: null,
3183
+
3184
+ fx: function( elem, options, prop ){
3185
+ this.options = options;
3186
+ this.elem = elem;
3187
+ this.prop = prop;
3188
+
3189
+ if ( !options.orig )
3190
+ options.orig = {};
3191
+ }
3192
+
3193
+ });
3194
+
3195
+ jQuery.fx.prototype = {
3196
+
3197
+ // Simple function for setting a style value
3198
+ update: function(){
3199
+ if ( this.options.step )
3200
+ this.options.step.call( this.elem, this.now, this );
3201
+
3202
+ (jQuery.fx.step[this.prop] || jQuery.fx.step._default)( this );
3203
+
3204
+ // Set display property to block for height/width animations
3205
+ if ( this.prop == "height" || this.prop == "width" )
3206
+ this.elem.style.display = "block";
3207
+ },
3208
+
3209
+ // Get the current size
3210
+ cur: function(force){
3211
+ if ( this.elem[this.prop] != null && this.elem.style[this.prop] == null )
3212
+ return this.elem[ this.prop ];
3213
+
3214
+ var r = parseFloat(jQuery.css(this.elem, this.prop, force));
3215
+ return r && r > -10000 ? r : parseFloat(jQuery.curCSS(this.elem, this.prop)) || 0;
3216
+ },
3217
+
3218
+ // Start an animation from one number to another
3219
+ custom: function(from, to, unit){
3220
+ this.startTime = now();
3221
+ this.start = from;
3222
+ this.end = to;
3223
+ this.unit = unit || this.unit || "px";
3224
+ this.now = this.start;
3225
+ this.pos = this.state = 0;
3226
+ this.update();
3227
+
3228
+ var self = this;
3229
+ function t(gotoEnd){
3230
+ return self.step(gotoEnd);
3231
+ }
3232
+
3233
+ t.elem = this.elem;
3234
+
3235
+ jQuery.timers.push(t);
3236
+
3237
+ if ( jQuery.timerId == null ) {
3238
+ jQuery.timerId = setInterval(function(){
3239
+ var timers = jQuery.timers;
3240
+
3241
+ for ( var i = 0; i < timers.length; i++ )
3242
+ if ( !timers[i]() )
3243
+ timers.splice(i--, 1);
3244
+
3245
+ if ( !timers.length ) {
3246
+ clearInterval( jQuery.timerId );
3247
+ jQuery.timerId = null;
3248
+ }
3249
+ }, 13);
3250
+ }
3251
+ },
3252
+
3253
+ // Simple 'show' function
3254
+ show: function(){
3255
+ // Remember where we started, so that we can go back to it later
3256
+ this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
3257
+ this.options.show = true;
3258
+
3259
+ // Begin the animation
3260
+ this.custom(0, this.cur());
3261
+
3262
+ // Make sure that we start at a small width/height to avoid any
3263
+ // flash of content
3264
+ if ( this.prop == "width" || this.prop == "height" )
3265
+ this.elem.style[this.prop] = "1px";
3266
+
3267
+ // Start by showing the element
3268
+ jQuery(this.elem).show();
3269
+ },
3270
+
3271
+ // Simple 'hide' function
3272
+ hide: function(){
3273
+ // Remember where we started, so that we can go back to it later
3274
+ this.options.orig[this.prop] = jQuery.attr( this.elem.style, this.prop );
3275
+ this.options.hide = true;
3276
+
3277
+ // Begin the animation
3278
+ this.custom(this.cur(), 0);
3279
+ },
3280
+
3281
+ // Each step of an animation
3282
+ step: function(gotoEnd){
3283
+ var t = now();
3284
+
3285
+ if ( gotoEnd || t > this.options.duration + this.startTime ) {
3286
+ this.now = this.end;
3287
+ this.pos = this.state = 1;
3288
+ this.update();
3289
+
3290
+ this.options.curAnim[ this.prop ] = true;
3291
+
3292
+ var done = true;
3293
+ for ( var i in this.options.curAnim )
3294
+ if ( this.options.curAnim[i] !== true )
3295
+ done = false;
3296
+
3297
+ if ( done ) {
3298
+ if ( this.options.display != null ) {
3299
+ // Reset the overflow
3300
+ this.elem.style.overflow = this.options.overflow;
3301
+
3302
+ // Reset the display
3303
+ this.elem.style.display = this.options.display;
3304
+ if ( jQuery.css(this.elem, "display") == "none" )
3305
+ this.elem.style.display = "block";
3306
+ }
3307
+
3308
+ // Hide the element if the "hide" operation was done
3309
+ if ( this.options.hide )
3310
+ this.elem.style.display = "none";
3311
+
3312
+ // Reset the properties, if the item has been hidden or shown
3313
+ if ( this.options.hide || this.options.show )
3314
+ for ( var p in this.options.curAnim )
3315
+ jQuery.attr(this.elem.style, p, this.options.orig[p]);
3316
+ }
3317
+
3318
+ if ( done )
3319
+ // Execute the complete function
3320
+ this.options.complete.call( this.elem );
3321
+
3322
+ return false;
3323
+ } else {
3324
+ var n = t - this.startTime;
3325
+ this.state = n / this.options.duration;
3326
+
3327
+ // Perform the easing function, defaults to swing
3328
+ this.pos = jQuery.easing[this.options.easing || (jQuery.easing.swing ? "swing" : "linear")](this.state, n, 0, 1, this.options.duration);
3329
+ this.now = this.start + ((this.end - this.start) * this.pos);
3330
+
3331
+ // Perform the next step of the animation
3332
+ this.update();
3333
+ }
3334
+
3335
+ return true;
3336
+ }
3337
+
3338
+ };
3339
+
3340
+ jQuery.extend( jQuery.fx, {
3341
+ speeds:{
3342
+ slow: 600,
3343
+ fast: 200,
3344
+ // Default speed
3345
+ def: 400
3346
+ },
3347
+ step: {
3348
+ scrollLeft: function(fx){
3349
+ fx.elem.scrollLeft = fx.now;
3350
+ },
3351
+
3352
+ scrollTop: function(fx){
3353
+ fx.elem.scrollTop = fx.now;
3354
+ },
3355
+
3356
+ opacity: function(fx){
3357
+ jQuery.attr(fx.elem.style, "opacity", fx.now);
3358
+ },
3359
+
3360
+ _default: function(fx){
3361
+ fx.elem.style[ fx.prop ] = fx.now + fx.unit;
3362
+ }
3363
+ }
3364
+ });
3365
+ // The Offset Method
3366
+ // Originally By Brandon Aaron, part of the Dimension Plugin
3367
+ // http://jquery.com/plugins/project/dimensions
3368
+ jQuery.fn.offset = function() {
3369
+ var left = 0, top = 0, elem = this[0], results;
3370
+
3371
+ if ( elem ) with ( jQuery.browser ) {
3372
+ var parent = elem.parentNode,
3373
+ offsetChild = elem,
3374
+ offsetParent = elem.offsetParent,
3375
+ doc = elem.ownerDocument,
3376
+ safari2 = safari && parseInt(version) < 522 && !/adobeair/i.test(userAgent),
3377
+ css = jQuery.curCSS,
3378
+ fixed = css(elem, "position") == "fixed";
3379
+
3380
+ // Use getBoundingClientRect if available
3381
+ if ( elem.getBoundingClientRect ) {
3382
+ var box = elem.getBoundingClientRect();
3383
+
3384
+ // Add the document scroll offsets
3385
+ add(box.left + Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft),
3386
+ box.top + Math.max(doc.documentElement.scrollTop, doc.body.scrollTop));
3387
+
3388
+ // IE adds the HTML element's border, by default it is medium which is 2px
3389
+ // IE 6 and 7 quirks mode the border width is overwritable by the following css html { border: 0; }
3390
+ // IE 7 standards mode, the border is always 2px
3391
+ // This border/offset is typically represented by the clientLeft and clientTop properties
3392
+ // However, in IE6 and 7 quirks mode the clientLeft and clientTop properties are not updated when overwriting it via CSS
3393
+ // Therefore this method will be off by 2px in IE while in quirksmode
3394
+ add( -doc.documentElement.clientLeft, -doc.documentElement.clientTop );
3395
+
3396
+ // Otherwise loop through the offsetParents and parentNodes
3397
+ } else {
3398
+
3399
+ // Initial element offsets
3400
+ add( elem.offsetLeft, elem.offsetTop );
3401
+
3402
+ // Get parent offsets
3403
+ while ( offsetParent ) {
3404
+ // Add offsetParent offsets
3405
+ add( offsetParent.offsetLeft, offsetParent.offsetTop );
3406
+
3407
+ // Mozilla and Safari > 2 does not include the border on offset parents
3408
+ // However Mozilla adds the border for table or table cells
3409
+ if ( mozilla && !/^t(able|d|h)$/i.test(offsetParent.tagName) || safari && !safari2 )
3410
+ border( offsetParent );
3411
+
3412
+ // Add the document scroll offsets if position is fixed on any offsetParent
3413
+ if ( !fixed && css(offsetParent, "position") == "fixed" )
3414
+ fixed = true;
3415
+
3416
+ // Set offsetChild to previous offsetParent unless it is the body element
3417
+ offsetChild = /^body$/i.test(offsetParent.tagName) ? offsetChild : offsetParent;
3418
+ // Get next offsetParent
3419
+ offsetParent = offsetParent.offsetParent;
3420
+ }
3421
+
3422
+ // Get parent scroll offsets
3423
+ while ( parent && parent.tagName && !/^body|html$/i.test(parent.tagName) ) {
3424
+ // Remove parent scroll UNLESS that parent is inline or a table to work around Opera inline/table scrollLeft/Top bug
3425
+ if ( !/^inline|table.*$/i.test(css(parent, "display")) )
3426
+ // Subtract parent scroll offsets
3427
+ add( -parent.scrollLeft, -parent.scrollTop );
3428
+
3429
+ // Mozilla does not add the border for a parent that has overflow != visible
3430
+ if ( mozilla && css(parent, "overflow") != "visible" )
3431
+ border( parent );
3432
+
3433
+ // Get next parent
3434
+ parent = parent.parentNode;
3435
+ }
3436
+
3437
+ // Safari <= 2 doubles body offsets with a fixed position element/offsetParent or absolutely positioned offsetChild
3438
+ // Mozilla doubles body offsets with a non-absolutely positioned offsetChild
3439
+ if ( (safari2 && (fixed || css(offsetChild, "position") == "absolute")) ||
3440
+ (mozilla && css(offsetChild, "position") != "absolute") )
3441
+ add( -doc.body.offsetLeft, -doc.body.offsetTop );
3442
+
3443
+ // Add the document scroll offsets if position is fixed
3444
+ if ( fixed )
3445
+ add(Math.max(doc.documentElement.scrollLeft, doc.body.scrollLeft),
3446
+ Math.max(doc.documentElement.scrollTop, doc.body.scrollTop));
3447
+ }
3448
+
3449
+ // Return an object with top and left properties
3450
+ results = { top: top, left: left };
3451
+ }
3452
+
3453
+ function border(elem) {
3454
+ add( jQuery.curCSS(elem, "borderLeftWidth", true), jQuery.curCSS(elem, "borderTopWidth", true) );
3455
+ }
3456
+
3457
+ function add(l, t) {
3458
+ left += parseInt(l, 10) || 0;
3459
+ top += parseInt(t, 10) || 0;
3460
+ }
3461
+
3462
+ return results;
3463
+ };
3464
+
3465
+
3466
+ jQuery.fn.extend({
3467
+ position: function() {
3468
+ var left = 0, top = 0, results;
3469
+
3470
+ if ( this[0] ) {
3471
+ // Get *real* offsetParent
3472
+ var offsetParent = this.offsetParent(),
3473
+
3474
+ // Get correct offsets
3475
+ offset = this.offset(),
3476
+ parentOffset = /^body|html$/i.test(offsetParent[0].tagName) ? { top: 0, left: 0 } : offsetParent.offset();
3477
+
3478
+ // Subtract element margins
3479
+ // note: when an element has margin: auto the offsetLeft and marginLeft
3480
+ // are the same in Safari causing offset.left to incorrectly be 0
3481
+ offset.top -= num( this, 'marginTop' );
3482
+ offset.left -= num( this, 'marginLeft' );
3483
+
3484
+ // Add offsetParent borders
3485
+ parentOffset.top += num( offsetParent, 'borderTopWidth' );
3486
+ parentOffset.left += num( offsetParent, 'borderLeftWidth' );
3487
+
3488
+ // Subtract the two offsets
3489
+ results = {
3490
+ top: offset.top - parentOffset.top,
3491
+ left: offset.left - parentOffset.left
3492
+ };
3493
+ }
3494
+
3495
+ return results;
3496
+ },
3497
+
3498
+ offsetParent: function() {
3499
+ var offsetParent = this[0].offsetParent;
3500
+ while ( offsetParent && (!/^body|html$/i.test(offsetParent.tagName) && jQuery.css(offsetParent, 'position') == 'static') )
3501
+ offsetParent = offsetParent.offsetParent;
3502
+ return jQuery(offsetParent);
3503
+ }
3504
+ });
3505
+
3506
+
3507
+ // Create scrollLeft and scrollTop methods
3508
+ jQuery.each( ['Left', 'Top'], function(i, name) {
3509
+ var method = 'scroll' + name;
3510
+
3511
+ jQuery.fn[ method ] = function(val) {
3512
+ if (!this[0]) return;
3513
+
3514
+ return val != undefined ?
3515
+
3516
+ // Set the scroll offset
3517
+ this.each(function() {
3518
+ this == window || this == document ?
3519
+ window.scrollTo(
3520
+ !i ? val : jQuery(window).scrollLeft(),
3521
+ i ? val : jQuery(window).scrollTop()
3522
+ ) :
3523
+ this[ method ] = val;
3524
+ }) :
3525
+
3526
+ // Return the scroll offset
3527
+ this[0] == window || this[0] == document ?
3528
+ self[ i ? 'pageYOffset' : 'pageXOffset' ] ||
3529
+ jQuery.boxModel && document.documentElement[ method ] ||
3530
+ document.body[ method ] :
3531
+ this[0][ method ];
3532
+ };
3533
+ });
3534
+ // Create innerHeight, innerWidth, outerHeight and outerWidth methods
3535
+ jQuery.each([ "Height", "Width" ], function(i, name){
3536
+
3537
+ var tl = i ? "Left" : "Top", // top or left
3538
+ br = i ? "Right" : "Bottom"; // bottom or right
3539
+
3540
+ // innerHeight and innerWidth
3541
+ jQuery.fn["inner" + name] = function(){
3542
+ return this[ name.toLowerCase() ]() +
3543
+ num(this, "padding" + tl) +
3544
+ num(this, "padding" + br);
3545
+ };
3546
+
3547
+ // outerHeight and outerWidth
3548
+ jQuery.fn["outer" + name] = function(margin) {
3549
+ return this["inner" + name]() +
3550
+ num(this, "border" + tl + "Width") +
3551
+ num(this, "border" + br + "Width") +
3552
+ (margin ?
3553
+ num(this, "margin" + tl) + num(this, "margin" + br) : 0);
3554
+ };
3555
+
3556
+ });})();
3557
+
3558
+ // Map this version of jQuery to Q$ for use by QUnit
3559
+ var Q$ = jQuery.noConflict(true);