riojs 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (270) hide show
  1. data/LICENSE +20 -0
  2. data/README.rdoc +24 -0
  3. data/VERSION +1 -0
  4. data/bin/rio +5 -0
  5. data/generators/rio_app/USAGE +19 -0
  6. data/generators/rio_app/rio_app_generator.rb +40 -0
  7. data/generators/rio_app/templates/app.build +10 -0
  8. data/generators/rio_app/templates/app.css +0 -0
  9. data/generators/rio_app/templates/app.js +20 -0
  10. data/generators/rio_app/templates/app_view.html.erb +19 -0
  11. data/generators/rio_app/templates/fixture.js +4 -0
  12. data/generators/rio_app/templates/rio.html.erb +18 -0
  13. data/generators/rio_app/templates/rio_controller.rb +2 -0
  14. data/generators/rio_app/templates/spec.js +7 -0
  15. data/generators/rio_component/USAGE +13 -0
  16. data/generators/rio_component/rio_component_generator.rb +16 -0
  17. data/generators/rio_component/templates/component.css +0 -0
  18. data/generators/rio_component/templates/component.js +11 -0
  19. data/generators/rio_component/templates/fixture.js +3 -0
  20. data/generators/rio_component/templates/spec.js +6 -0
  21. data/generators/rio_model/USAGE +12 -0
  22. data/generators/rio_model/rio_model_generator.rb +21 -0
  23. data/generators/rio_model/templates/fixture.js +3 -0
  24. data/generators/rio_model/templates/model.js +9 -0
  25. data/generators/rio_model/templates/spec.js +6 -0
  26. data/generators/rio_page/USAGE +14 -0
  27. data/generators/rio_page/rio_page_generator.rb +16 -0
  28. data/generators/rio_page/templates/fixture.js +3 -0
  29. data/generators/rio_page/templates/page.css +12 -0
  30. data/generators/rio_page/templates/page.js +12 -0
  31. data/generators/rio_page/templates/page.jst +64 -0
  32. data/generators/rio_page/templates/spec.js +6 -0
  33. data/generators/rio_resource/USAGE +20 -0
  34. data/generators/rio_resource/rio_resource_generator.rb +10 -0
  35. data/generators/rio_resource/templates/controller.rb +3 -0
  36. data/init.rb +4 -0
  37. data/install/config/juggernaut_hosts.yml +18 -0
  38. data/install/lib/tasks/rio.rake +1 -0
  39. data/install/script/rio_server +37 -0
  40. data/lib/rio/autospec.rb +86 -0
  41. data/lib/rio/install.rb +90 -0
  42. data/lib/rio/juggernaut.rb +212 -0
  43. data/lib/rio/path.rb +3 -0
  44. data/lib/rio/rio_compressor.rb +219 -0
  45. data/lib/rio/rio_file_controller.rb +16 -0
  46. data/lib/rio/rio_on_rails.rb +586 -0
  47. data/lib/rio/rio_proxy_controller.rb +60 -0
  48. data/lib/rio/rio_push_controller.rb +48 -0
  49. data/lib/rio/rio_routes.rb +24 -0
  50. data/lib/rio/rio_spec_controller.rb +70 -0
  51. data/lib/riojs.rb +14 -0
  52. data/lib/tasks/rio.rb +63 -0
  53. data/public/images/background-chiffon.png +0 -0
  54. data/public/images/button-gradient-overlay-down.png +0 -0
  55. data/public/images/button-gradient-overlay.png +0 -0
  56. data/public/images/icons/add.png +0 -0
  57. data/public/images/icons/error-big.png +0 -0
  58. data/public/images/icons/warning-big.png +0 -0
  59. data/public/images/rio-logo-big.png +0 -0
  60. data/public/images/rio-logo.png +0 -0
  61. data/public/images/splitter-handle-horizontal.png +0 -0
  62. data/public/images/splitter-handle-vertical.png +0 -0
  63. data/public/images/tab-bar-gradient-overlay.png +0 -0
  64. data/public/images/title-gradient-overlay.png +0 -0
  65. data/public/images/trash.gif +0 -0
  66. data/public/javascripts/components/accordion.js +144 -0
  67. data/public/javascripts/components/alert_box.js +59 -0
  68. data/public/javascripts/components/base.js +47 -0
  69. data/public/javascripts/components/box.js +63 -0
  70. data/public/javascripts/components/button.js +98 -0
  71. data/public/javascripts/components/checkbox.js +44 -0
  72. data/public/javascripts/components/container.js +265 -0
  73. data/public/javascripts/components/grid_view.js +107 -0
  74. data/public/javascripts/components/image.js +19 -0
  75. data/public/javascripts/components/input.js +171 -0
  76. data/public/javascripts/components/label.js +15 -0
  77. data/public/javascripts/components/lightbox.js +160 -0
  78. data/public/javascripts/components/link.js +43 -0
  79. data/public/javascripts/components/list_item.js +44 -0
  80. data/public/javascripts/components/list_view.js +192 -0
  81. data/public/javascripts/components/marquee.js +131 -0
  82. data/public/javascripts/components/menu.js +89 -0
  83. data/public/javascripts/components/notification.js +75 -0
  84. data/public/javascripts/components/overlay.js +134 -0
  85. data/public/javascripts/components/panel.js +146 -0
  86. data/public/javascripts/components/radio.js +46 -0
  87. data/public/javascripts/components/splitter.js +65 -0
  88. data/public/javascripts/components/tab_bar.js +64 -0
  89. data/public/javascripts/components/tab_panel.js +57 -0
  90. data/public/javascripts/components/textarea.js +223 -0
  91. data/public/javascripts/components/toggle_button.js +22 -0
  92. data/public/javascripts/components/tooltip.js +80 -0
  93. data/public/javascripts/lib/application.js +482 -0
  94. data/public/javascripts/lib/attr.js +760 -0
  95. data/public/javascripts/lib/benchmark.js +235 -0
  96. data/public/javascripts/lib/blank.html +39 -0
  97. data/public/javascripts/lib/boot.js +300 -0
  98. data/public/javascripts/lib/clipboard.js +96 -0
  99. data/public/javascripts/lib/collection_entity.js +46 -0
  100. data/public/javascripts/lib/component.js +129 -0
  101. data/public/javascripts/lib/console.js +75 -0
  102. data/public/javascripts/lib/console/apps/console.build +43 -0
  103. data/public/javascripts/lib/console/apps/console.js +28 -0
  104. data/public/javascripts/lib/console/blank.html +39 -0
  105. data/public/javascripts/lib/console/components/benchmark.js +196 -0
  106. data/public/javascripts/lib/console/components/console.js +352 -0
  107. data/public/javascripts/lib/console/components/dependencies_list.js +17 -0
  108. data/public/javascripts/lib/console/components/docs.js +66 -0
  109. data/public/javascripts/lib/console/components/playground.js +30 -0
  110. data/public/javascripts/lib/console/console.html +27 -0
  111. data/public/javascripts/lib/console/console_commands.js +287 -0
  112. data/public/javascripts/lib/console/console_commands.js.rej +21 -0
  113. data/public/javascripts/lib/console/console_mixin.js +22 -0
  114. data/public/javascripts/lib/console/docs/files.html +579 -0
  115. data/public/javascripts/lib/console/docs/index.html +323 -0
  116. data/public/javascripts/lib/console/docs/symbols/Object.html +291 -0
  117. data/public/javascripts/lib/console/docs/symbols/_global_.html +413 -0
  118. data/public/javascripts/lib/console/docs/symbols/rio.AIM.html +490 -0
  119. data/public/javascripts/lib/console/docs/symbols/rio.Application.html +841 -0
  120. data/public/javascripts/lib/console/docs/symbols/rio.Attr.html +1075 -0
  121. data/public/javascripts/lib/console/docs/symbols/rio.Binding.html +272 -0
  122. data/public/javascripts/lib/console/docs/symbols/rio.Component.html +419 -0
  123. data/public/javascripts/lib/console/docs/symbols/rio.Cookie.html +543 -0
  124. data/public/javascripts/lib/console/docs/symbols/rio.DelayedTask#initialize.html +270 -0
  125. data/public/javascripts/lib/console/docs/symbols/rio.DelayedTask.html +391 -0
  126. data/public/javascripts/lib/console/docs/symbols/rio.JsTemplate.html +271 -0
  127. data/public/javascripts/lib/console/docs/symbols/rio.Juggernaut.html +329 -0
  128. data/public/javascripts/lib/console/docs/symbols/rio.Model.html +822 -0
  129. data/public/javascripts/lib/console/docs/symbols/rio.Page.html +383 -0
  130. data/public/javascripts/lib/console/docs/symbols/rio.Template.html +328 -0
  131. data/public/javascripts/lib/console/docs/symbols/rio.Utils.html +617 -0
  132. data/public/javascripts/lib/console/docs/symbols/rio.html +506 -0
  133. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_components_base.js.html +54 -0
  134. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_application.js.html +490 -0
  135. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_attr.js.html +768 -0
  136. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_boot.js.html +308 -0
  137. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_clipboard.js.html +103 -0
  138. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_collection_entity.js.html +53 -0
  139. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_component.js.html +137 -0
  140. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_cookie.js.html +81 -0
  141. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_delayed_task.js.html +68 -0
  142. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_file.js.html +80 -0
  143. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_flash_detect.js.html +129 -0
  144. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_form.js.html +95 -0
  145. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_id.js.html +50 -0
  146. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_inflector.js.html +167 -0
  147. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_js_template.js.html +283 -0
  148. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_juggernaut.js.html +303 -0
  149. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_key_map.js.html +68 -0
  150. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_layout_manager.js.html +175 -0
  151. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_log.js.html +17 -0
  152. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_model.js.html +1074 -0
  153. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_page.js.html +246 -0
  154. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_parameters.js.html +66 -0
  155. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_protohack.js.html +305 -0
  156. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_push.js.html +12 -0
  157. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_rsh.js.html +659 -0
  158. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_swfobject.js.html +12 -0
  159. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_tag.js.html +60 -0
  160. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_template.js.html +64 -0
  161. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_theme.js.html +105 -0
  162. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_undo.js.html +142 -0
  163. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_utils.js.html +87 -0
  164. data/public/javascripts/lib/console/docs/symbols/src/public_javascripts_lib_yaml.js.html +88 -0
  165. data/public/javascripts/lib/console/file-small.png +0 -0
  166. data/public/javascripts/lib/console/green-circle.png +0 -0
  167. data/public/javascripts/lib/console/loading.gif +0 -0
  168. data/public/javascripts/lib/console/pages/console_page.js +149 -0
  169. data/public/javascripts/lib/console/pages/console_page.jst +27 -0
  170. data/public/javascripts/lib/console/red-circle.png +0 -0
  171. data/public/javascripts/lib/cookie.js +74 -0
  172. data/public/javascripts/lib/delayed_task.js +61 -0
  173. data/public/javascripts/lib/dependencies.js +76 -0
  174. data/public/javascripts/lib/environment.js +30 -0
  175. data/public/javascripts/lib/event.simulate.js +137 -0
  176. data/public/javascripts/lib/expressinstall.swf +0 -0
  177. data/public/javascripts/lib/file.js +72 -0
  178. data/public/javascripts/lib/flash_detect.js +122 -0
  179. data/public/javascripts/lib/flashembed.min.js +16 -0
  180. data/public/javascripts/lib/form.js +88 -0
  181. data/public/javascripts/lib/id.js +43 -0
  182. data/public/javascripts/lib/inflector.js +160 -0
  183. data/public/javascripts/lib/instrumenter.js +106 -0
  184. data/public/javascripts/lib/js_template.js +275 -0
  185. data/public/javascripts/lib/jslint.js +4950 -0
  186. data/public/javascripts/lib/juggernaut.js +295 -0
  187. data/public/javascripts/lib/juggernaut.swf +0 -0
  188. data/public/javascripts/lib/key_map.js +60 -0
  189. data/public/javascripts/lib/layout_manager.js +167 -0
  190. data/public/javascripts/lib/model.js +1067 -0
  191. data/public/javascripts/lib/page.js +238 -0
  192. data/public/javascripts/lib/parameters.js +59 -0
  193. data/public/javascripts/lib/png_fix.js +75 -0
  194. data/public/javascripts/lib/protohack.js +297 -0
  195. data/public/javascripts/lib/push.js +5 -0
  196. data/public/javascripts/lib/rio.build +28 -0
  197. data/public/javascripts/lib/rio_development.build +5 -0
  198. data/public/javascripts/lib/rio_lint.js +66 -0
  199. data/public/javascripts/lib/rsh.js +651 -0
  200. data/public/javascripts/lib/spec.js +545 -0
  201. data/public/javascripts/lib/spec_runner.js +242 -0
  202. data/public/javascripts/lib/swfobject.js +5 -0
  203. data/public/javascripts/lib/tag.js +52 -0
  204. data/public/javascripts/lib/undo.js +134 -0
  205. data/public/javascripts/lib/utils.js +80 -0
  206. data/public/javascripts/lib/yaml.js +80 -0
  207. data/public/javascripts/pages/playground_page.js +15 -0
  208. data/public/javascripts/prototype/builder.js +146 -0
  209. data/public/javascripts/prototype/controls.js +1004 -0
  210. data/public/javascripts/prototype/dragdrop.js +1030 -0
  211. data/public/javascripts/prototype/effects.js +1137 -0
  212. data/public/javascripts/prototype/prototype.js +4320 -0
  213. data/public/javascripts/prototype/slider.js +283 -0
  214. data/public/javascripts/prototype/sound.js +67 -0
  215. data/public/javascripts/specs/components/box_spec.js +6 -0
  216. data/public/javascripts/specs/components/checkbox_spec.js +26 -0
  217. data/public/javascripts/specs/components/container_spec.js +6 -0
  218. data/public/javascripts/specs/components/input_spec.js +71 -0
  219. data/public/javascripts/specs/components/panel_spec.js +6 -0
  220. data/public/javascripts/specs/components/radio_spec.js +40 -0
  221. data/public/javascripts/specs/fixtures/components/box.js +3 -0
  222. data/public/javascripts/specs/fixtures/components/checkbox.js +9 -0
  223. data/public/javascripts/specs/fixtures/components/container.js +3 -0
  224. data/public/javascripts/specs/fixtures/components/input.js +12 -0
  225. data/public/javascripts/specs/fixtures/components/menu.js +19 -0
  226. data/public/javascripts/specs/fixtures/components/menu_item.js +18 -0
  227. data/public/javascripts/specs/fixtures/components/radio.js +11 -0
  228. data/public/javascripts/specs/lib/application_spec.js +281 -0
  229. data/public/javascripts/specs/lib/attr_spec.js +1514 -0
  230. data/public/javascripts/specs/lib/benchmark_spec.js +361 -0
  231. data/public/javascripts/specs/lib/collection_entity_spec.js +131 -0
  232. data/public/javascripts/specs/lib/component_spec.js +86 -0
  233. data/public/javascripts/specs/lib/form_spec.js +171 -0
  234. data/public/javascripts/specs/lib/id_spec.js +21 -0
  235. data/public/javascripts/specs/lib/instrumenter_spec.js +5 -0
  236. data/public/javascripts/specs/lib/js_template_spec.js +131 -0
  237. data/public/javascripts/specs/lib/key_map_spec.js +227 -0
  238. data/public/javascripts/specs/lib/model_spec.js +2268 -0
  239. data/public/javascripts/specs/lib/parameters_spec.js +94 -0
  240. data/public/javascripts/specs/lib/spec_spec.js +943 -0
  241. data/public/javascripts/specs/lib/undo_spec.js +105 -0
  242. data/public/javascripts/specs/lib/yaml_spec.js +127 -0
  243. data/public/sounds/basso.wav +0 -0
  244. data/public/sounds/purr.wav +0 -0
  245. data/public/stylesheets/components/accordion.css +24 -0
  246. data/public/stylesheets/components/alert_box.css +35 -0
  247. data/public/stylesheets/components/box.css +0 -0
  248. data/public/stylesheets/components/button.css +39 -0
  249. data/public/stylesheets/components/checkbox.css +9 -0
  250. data/public/stylesheets/components/container.css +3 -0
  251. data/public/stylesheets/components/grid_view.css +52 -0
  252. data/public/stylesheets/components/input.css +10 -0
  253. data/public/stylesheets/components/label.css +3 -0
  254. data/public/stylesheets/components/lightbox.css +31 -0
  255. data/public/stylesheets/components/link.css +4 -0
  256. data/public/stylesheets/components/list_view.css +23 -0
  257. data/public/stylesheets/components/marquee.css +29 -0
  258. data/public/stylesheets/components/menu.css +34 -0
  259. data/public/stylesheets/components/notification.css +52 -0
  260. data/public/stylesheets/components/overlay.css +8 -0
  261. data/public/stylesheets/components/panel.css +36 -0
  262. data/public/stylesheets/components/radio.css +9 -0
  263. data/public/stylesheets/components/splitter.css +35 -0
  264. data/public/stylesheets/components/tab_bar.css +59 -0
  265. data/public/stylesheets/components/tab_panel.css +15 -0
  266. data/public/stylesheets/components/textarea.css +11 -0
  267. data/public/stylesheets/components/tooltip.css +10 -0
  268. data/public/stylesheets/console.css +151 -0
  269. data/public/stylesheets/css_reset.css +55 -0
  270. metadata +343 -0
@@ -0,0 +1,1075 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
6
+ <meta name="generator" content="JsDoc Toolkit" />
7
+
8
+ <title>JsDoc Reference - rio.Attr</title>
9
+
10
+ <style type="text/css">
11
+ /* default.css */
12
+ body
13
+ {
14
+ font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
15
+ /* width: 100%;*/
16
+ }
17
+
18
+ .header
19
+ {
20
+ clear: both;
21
+ background-color: #ccc;
22
+ padding: 8px;
23
+ }
24
+
25
+ h1
26
+ {
27
+ font-size: 150%;
28
+ font-weight: bold;
29
+ padding: 0;
30
+ margin: 1em 0 0 .3em;
31
+ }
32
+
33
+ hr
34
+ {
35
+ border: none 0;
36
+ border-top: 1px solid #7F8FB1;
37
+ height: 1px;
38
+ }
39
+
40
+ pre.code
41
+ {
42
+ display: block;
43
+ padding: 8px;
44
+ border: 1px dashed #ccc;
45
+ }
46
+
47
+ #index
48
+ {
49
+ margin-top: 24px;
50
+ float: left;
51
+ width: 160px;
52
+ position: absolute;
53
+ left: 8px;
54
+ background-color: #F3F3F3;
55
+ padding: 8px;
56
+ }
57
+
58
+ #content
59
+ {
60
+ width: 98%;
61
+ }
62
+
63
+ .classList
64
+ {
65
+ list-style-type: none;
66
+ padding: 0;
67
+ margin: 0 0 0 8px;
68
+ font-family: arial, sans-serif;
69
+ font-size: 1em;
70
+ overflow: auto;
71
+ }
72
+
73
+ .classList li
74
+ {
75
+ padding: 0;
76
+ margin: 0 0 8px 0;
77
+ }
78
+
79
+ .summaryTable { width: 100%; }
80
+
81
+ h1.classTitle
82
+ {
83
+ font-size:170%;
84
+ line-height:130%;
85
+ }
86
+
87
+ h2 { font-size: 110%; }
88
+ caption, div.sectionTitle
89
+ {
90
+ background-color: #7F8FB1;
91
+ color: #fff;
92
+ font-size:130%;
93
+ text-align: left;
94
+ padding: 2px 6px 2px 6px;
95
+ border: 1px #7F8FB1 solid;
96
+ }
97
+
98
+ div.sectionTitle { margin-bottom: 8px; }
99
+ .summaryTable thead { display: none; }
100
+
101
+ .summaryTable td
102
+ {
103
+ vertical-align: top;
104
+ padding: 4px;
105
+ border-bottom: 1px #7F8FB1 solid;
106
+ border-right: 1px #7F8FB1 solid;
107
+ }
108
+
109
+ /*col#summaryAttributes {}*/
110
+ .summaryTable td.attributes
111
+ {
112
+ border-left: 1px #7F8FB1 solid;
113
+ width: 140px;
114
+ text-align: right;
115
+ }
116
+
117
+ td.attributes, .fixedFont
118
+ {
119
+ line-height: 15px;
120
+ color: #002EBE;
121
+ font-family: "Courier New",Courier,monospace;
122
+ font-size: 13px;
123
+ }
124
+
125
+ .summaryTable td.nameDescription
126
+ {
127
+ text-align: left;
128
+ font-size: 13px;
129
+ line-height: 15px;
130
+ }
131
+
132
+ .summaryTable td.nameDescription, .description
133
+ {
134
+ line-height: 15px;
135
+ padding: 4px;
136
+ padding-left: 4px;
137
+ }
138
+
139
+ .summaryTable { margin-bottom: 8px; }
140
+
141
+ ul.inheritsList
142
+ {
143
+ list-style: square;
144
+ margin-left: 20px;
145
+ padding-left: 0;
146
+ }
147
+
148
+ .detailList {
149
+ margin-left: 20px;
150
+ line-height: 15px;
151
+ }
152
+ .detailList dt { margin-left: 20px; }
153
+
154
+ .detailList .heading
155
+ {
156
+ font-weight: bold;
157
+ padding-bottom: 6px;
158
+ margin-left: 0;
159
+ }
160
+
161
+ .light, td.attributes, .light a:link, .light a:visited
162
+ {
163
+ color: #777;
164
+ font-style: italic;
165
+ }
166
+
167
+ .fineprint
168
+ {
169
+ text-align: right;
170
+ font-size: 10px;
171
+ }
172
+ </style>
173
+ </head>
174
+
175
+ <body>
176
+
177
+ <div id="content">
178
+ <!-- ============================== class title ============================ -->
179
+ <h1 class="classTitle">
180
+
181
+ Class rio.Attr
182
+ </h1>
183
+
184
+ <!-- ============================== class summary ========================== -->
185
+ <p class="description">
186
+
187
+
188
+ Attr is the basis for most of rio. It is the class from which all apps, pages, models, and components
189
+ are derived, though you will rarely have to use Attr directly. Attr provides all of the functionality
190
+ related to attributes, bindings, dependency management, and events.
191
+
192
+
193
+ <br /><i>Defined in: </i> <a href="../symbols/src/public_javascripts_lib_attr.js.html">attr.js</a>.
194
+
195
+ </p>
196
+
197
+ <!-- ============================== constructor summary ==================== -->
198
+
199
+ <table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class rio.Attr.">
200
+ <caption>Class Summary</caption>
201
+ <thead>
202
+ <tr>
203
+ <th scope="col">Constructor Attributes</th>
204
+ <th scope="col">Constructor Name and Description</th>
205
+ </tr>
206
+ </thead>
207
+ <tbody>
208
+ <tr>
209
+ <td class="attributes">&nbsp;</td>
210
+ <td class="nameDescription" >
211
+ <div class="fixedFont">
212
+ <b><a href="../symbols/rio.Attr.html#constructor">rio.Attr</a></b>()
213
+ </div>
214
+ <div class="description"></div>
215
+ </td>
216
+ </tr>
217
+ </tbody>
218
+ </table>
219
+
220
+
221
+ <!-- ============================== properties summary ===================== -->
222
+
223
+
224
+ <!-- ============================== methods summary ======================== -->
225
+
226
+
227
+
228
+ <table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class rio.Attr.">
229
+ <caption>Method Summary</caption>
230
+ <thead>
231
+ <tr>
232
+ <th scope="col">Method Attributes</th>
233
+ <th scope="col">Method Name and Description</th>
234
+ </tr>
235
+ </thead>
236
+ <tbody>
237
+
238
+ <tr>
239
+ <td class="attributes">&nbsp;</td>
240
+ <td class="nameDescription">
241
+ <div class="fixedFont"><b><a href="../symbols/rio.Attr.html#bind">bind</a></b>(attribute, binding, skipInitialExecution, overrideInitialOldValue)
242
+ </div>
243
+ <div class="description">Binds a function to an attribute.</div>
244
+ </td>
245
+ </tr>
246
+
247
+ <tr>
248
+ <td class="attributes">&nbsp;</td>
249
+ <td class="nameDescription">
250
+ <div class="fixedFont"><b><a href="../symbols/rio.Attr.html#binding">binding</a></b>(attribute)
251
+ </div>
252
+ <div class="description">Returns a binding to the specified attribute or attribute path
253
+ <br /><br />
254
+ <i>NOTE: The most common reason for using binding is to specify the initial value of another attrAccessor with an attribute path.</div>
255
+ </td>
256
+ </tr>
257
+
258
+ <tr>
259
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
260
+ <td class="nameDescription">
261
+ <div class="fixedFont">rio.Attr.<b><a href="../symbols/rio.Attr.html#.create">create</a></b>(name, extends, args)
262
+ </div>
263
+ <div class="description">Creates an instance of rio.Attr.</div>
264
+ </td>
265
+ </tr>
266
+
267
+ <tr>
268
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
269
+ <td class="nameDescription">
270
+ <div class="fixedFont">rio.Attr.<b><a href="../symbols/rio.Attr.html#.extend">extend</a></b>(attr, extension)
271
+ </div>
272
+ <div class="description"></div>
273
+ </td>
274
+ </tr>
275
+
276
+ <tr>
277
+ <td class="attributes">&nbsp;</td>
278
+ <td class="nameDescription">
279
+ <div class="fixedFont"><b><a href="../symbols/rio.Attr.html#fire">fire</a></b>(eventName)
280
+ </div>
281
+ <div class="description">Fires an event.</div>
282
+ </td>
283
+ </tr>
284
+
285
+ <tr>
286
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
287
+ <td class="nameDescription">
288
+ <div class="fixedFont">rio.Attr.<b><a href="../symbols/rio.Attr.html#.fireWhenReady">fireWhenReady</a></b>(f)
289
+ </div>
290
+ <div class="description"></div>
291
+ </td>
292
+ </tr>
293
+
294
+ <tr>
295
+ <td class="attributes">&nbsp;</td>
296
+ <td class="nameDescription">
297
+ <div class="fixedFont"><b><a href="../symbols/rio.Attr.html#freeze">freeze</a></b>()
298
+ </div>
299
+ <div class="description"></div>
300
+ </td>
301
+ </tr>
302
+
303
+ <tr>
304
+ <td class="attributes">&nbsp;</td>
305
+ <td class="nameDescription">
306
+ <div class="fixedFont"><b><a href="../symbols/rio.Attr.html#frozen">frozen</a></b>()
307
+ </div>
308
+ <div class="description"></div>
309
+ </td>
310
+ </tr>
311
+
312
+ <tr>
313
+ <td class="attributes">&nbsp;</td>
314
+ <td class="nameDescription">
315
+ <div class="fixedFont"><b><a href="../symbols/rio.Attr.html#observe">observe</a></b>(eventName, handler)
316
+ </div>
317
+ <div class="description">Observes an event.</div>
318
+ </td>
319
+ </tr>
320
+
321
+ <tr>
322
+ <td class="attributes">&nbsp;</td>
323
+ <td class="nameDescription">
324
+ <div class="fixedFont"><b><a href="../symbols/rio.Attr.html#setAndReturnAfterSet">setAndReturnAfterSet</a></b>(fieldName, newValue, options)
325
+ </div>
326
+ <div class="description"></div>
327
+ </td>
328
+ </tr>
329
+
330
+ <tr>
331
+ <td class="attributes">&nbsp;</td>
332
+ <td class="nameDescription">
333
+ <div class="fixedFont"><b><a href="../symbols/rio.Attr.html#stopObserving">stopObserving</a></b>(eventName, handler)
334
+ </div>
335
+ <div class="description"></div>
336
+ </td>
337
+ </tr>
338
+
339
+ <tr>
340
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
341
+ <td class="nameDescription">
342
+ <div class="fixedFont">rio.Attr.<b><a href="../symbols/rio.Attr.html#.toString">toString</a></b>()
343
+ </div>
344
+ <div class="description"></div>
345
+ </td>
346
+ </tr>
347
+
348
+ <tr>
349
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
350
+ <td class="nameDescription">
351
+ <div class="fixedFont">rio.Attr.<b><a href="../symbols/rio.Attr.html#.transaction">transaction</a></b>(t)
352
+ </div>
353
+ <div class="description"></div>
354
+ </td>
355
+ </tr>
356
+
357
+ <tr>
358
+ <td class="attributes">&nbsp;</td>
359
+ <td class="nameDescription">
360
+ <div class="fixedFont"><b><a href="../symbols/rio.Attr.html#unfreeze">unfreeze</a></b>()
361
+ </div>
362
+ <div class="description"></div>
363
+ </td>
364
+ </tr>
365
+
366
+ <tr>
367
+ <td class="attributes">&nbsp;</td>
368
+ <td class="nameDescription">
369
+ <div class="fixedFont"><b><a href="../symbols/rio.Attr.html#updateAttributes">updateAttributes</a></b>(attributes, options)
370
+ </div>
371
+ <div class="description"></div>
372
+ </td>
373
+ </tr>
374
+
375
+ <tr>
376
+ <td class="attributes">&lt;static&gt; &nbsp;</td>
377
+ <td class="nameDescription">
378
+ <div class="fixedFont">rio.Attr.<b><a href="../symbols/rio.Attr.html#.updateAttributes">updateAttributes</a></b>(updates)
379
+ </div>
380
+ <div class="description"></div>
381
+ </td>
382
+ </tr>
383
+
384
+ </tbody>
385
+ </table>
386
+
387
+
388
+
389
+
390
+
391
+ <!-- ============================== constructor details ==================== -->
392
+
393
+ <div class="details"><a name="constructor"> </a>
394
+ <div class="sectionTitle">
395
+ Class Detail
396
+ </div>
397
+
398
+ <div class="fixedFont">
399
+ <b>rio.Attr</b>()
400
+ </div>
401
+
402
+ <div class="description">
403
+
404
+ <br /><i>Author: </i>Jason Tillery.
405
+ </div>
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+ </div>
419
+
420
+
421
+ <!-- ============================== field details ========================== -->
422
+
423
+
424
+ <!-- ============================== method details ========================= -->
425
+
426
+ <div class="sectionTitle">
427
+ Method Detail
428
+ </div>
429
+
430
+ <a name="bind"> </a>
431
+ <div class="fixedFont">
432
+
433
+
434
+ <b>bind</b>(attribute, binding, skipInitialExecution, overrideInitialOldValue)
435
+
436
+ </div>
437
+ <div class="description">
438
+ Binds a function to an attribute.
439
+ <br /><br />
440
+ <i>NOTE: The function will be called immediately with the current value of the attribute.</i>
441
+
442
+
443
+ </div>
444
+
445
+
446
+
447
+ <pre class="code"> attr.bind("attribute", function(newValue) {
448
+ alert(newValue);
449
+ });</pre>
450
+
451
+
452
+
453
+
454
+ <dl class="detailList">
455
+ <dt class="heading">Parameters:</dt>
456
+
457
+ <dt>
458
+ <span class="light fixedFont">{String}</span> <b>attribute</b>
459
+
460
+ </dt>
461
+ <dd>The name of the attribute to bind</dd>
462
+
463
+ <dt>
464
+ <span class="light fixedFont">{Function}</span> <b>binding</b>
465
+
466
+ </dt>
467
+ <dd>The function to execute when the value of the attribute changes</dd>
468
+
469
+ <dt>
470
+ <span class="light fixedFont">{Boolean}</span> <b>skipInitialExecution</b>
471
+
472
+ </dt>
473
+ <dd>(optional) Do <b>not</b> immediately call the function with the attributes current value</dd>
474
+
475
+ <dt>
476
+ <b>overrideInitialOldValue</b>
477
+
478
+ </dt>
479
+ <dd></dd>
480
+
481
+ </dl>
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+ <hr />
491
+
492
+ <a name="binding"> </a>
493
+ <div class="fixedFont">
494
+
495
+
496
+ <b>binding</b>(attribute)
497
+
498
+ </div>
499
+ <div class="description">
500
+ Returns a binding to the specified attribute or attribute path
501
+ <br /><br />
502
+ <i>NOTE: The most common reason for using binding is to specify the initial value of another attrAccessor with an attribute path.</i>
503
+
504
+
505
+ </div>
506
+
507
+
508
+
509
+ <pre class="code"> attr.binding("attribute");</pre>
510
+
511
+
512
+
513
+
514
+ <dl class="detailList">
515
+ <dt class="heading">Parameters:</dt>
516
+
517
+ <dt>
518
+ <span class="light fixedFont">{String}</span> <b>attribute</b>
519
+
520
+ </dt>
521
+ <dd>The name of the attribute to bind</dd>
522
+
523
+ </dl>
524
+
525
+
526
+
527
+
528
+
529
+
530
+
531
+
532
+ <hr />
533
+
534
+ <a name=".create"> </a>
535
+ <div class="fixedFont">&lt;static&gt;
536
+
537
+ <span class="light">{<a href="../symbols/rio.Attr.html#constructor">rio.Attr</a>}</span>
538
+ <span class="light">rio.Attr.</span><b>create</b>(name, extends, args)
539
+
540
+ </div>
541
+ <div class="description">
542
+ Creates an instance of rio.Attr.
543
+
544
+
545
+ </div>
546
+
547
+
548
+
549
+ <pre class="code"> var attr = rio.Attr.create("AttrName", {
550
+ attrAccessors: [], // list of accessors
551
+ attrReaders: [], // list of readers
552
+ methods: {
553
+ initialize: function() {
554
+
555
+ }
556
+ },
557
+ classMethods: {
558
+
559
+ }
560
+ });</pre>
561
+
562
+
563
+
564
+
565
+ <dl class="detailList">
566
+ <dt class="heading">Parameters:</dt>
567
+
568
+ <dt>
569
+ <span class="light fixedFont">{String}</span> <b>name</b>
570
+
571
+ </dt>
572
+ <dd>(optional) The name of this Attr. Used primarily for testing reports.</dd>
573
+
574
+ <dt>
575
+ <span class="light fixedFont">{<a href="../symbols/Object.html#constructor">Object</a>}</span> <b>extends</b>
576
+
577
+ </dt>
578
+ <dd>(optional) An Attr class to use as a superclass.</dd>
579
+
580
+ <dt>
581
+ <span class="light fixedFont">{<a href="../symbols/Object.html#constructor">Object</a>}</span> <b>args</b>
582
+
583
+ </dt>
584
+ <dd>(optional) The definition of the class.</dd>
585
+
586
+ </dl>
587
+
588
+
589
+
590
+
591
+
592
+ <dl class="detailList">
593
+ <dt class="heading">Returns:</dt>
594
+
595
+ <dd>a new instance of type Attr</dd>
596
+
597
+ </dl>
598
+
599
+
600
+
601
+
602
+ <hr />
603
+
604
+ <a name=".extend"> </a>
605
+ <div class="fixedFont">&lt;static&gt;
606
+
607
+
608
+ <span class="light">rio.Attr.</span><b>extend</b>(attr, extension)
609
+
610
+ </div>
611
+ <div class="description">
612
+
613
+
614
+
615
+ </div>
616
+
617
+
618
+
619
+
620
+ <dl class="detailList">
621
+ <dt class="heading">Parameters:</dt>
622
+
623
+ <dt>
624
+ <b>attr</b>
625
+
626
+ </dt>
627
+ <dd></dd>
628
+
629
+ <dt>
630
+ <b>extension</b>
631
+
632
+ </dt>
633
+ <dd></dd>
634
+
635
+ </dl>
636
+
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+ <hr />
645
+
646
+ <a name="fire"> </a>
647
+ <div class="fixedFont">
648
+
649
+
650
+ <b>fire</b>(eventName)
651
+
652
+ </div>
653
+ <div class="description">
654
+ Fires an event.
655
+
656
+
657
+ </div>
658
+
659
+
660
+
661
+
662
+ <dl class="detailList">
663
+ <dt class="heading">Parameters:</dt>
664
+
665
+ <dt>
666
+ <span class="light fixedFont">{String}</span> <b>eventName</b>
667
+
668
+ </dt>
669
+ <dd>The name of the event to fire</dd>
670
+
671
+ </dl>
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+ <hr />
681
+
682
+ <a name=".fireWhenReady"> </a>
683
+ <div class="fixedFont">&lt;static&gt;
684
+
685
+
686
+ <span class="light">rio.Attr.</span><b>fireWhenReady</b>(f)
687
+
688
+ </div>
689
+ <div class="description">
690
+
691
+
692
+
693
+ </div>
694
+
695
+
696
+
697
+
698
+ <dl class="detailList">
699
+ <dt class="heading">Parameters:</dt>
700
+
701
+ <dt>
702
+ <b>f</b>
703
+
704
+ </dt>
705
+ <dd></dd>
706
+
707
+ </dl>
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+ <hr />
717
+
718
+ <a name="freeze"> </a>
719
+ <div class="fixedFont">
720
+
721
+
722
+ <b>freeze</b>()
723
+
724
+ </div>
725
+ <div class="description">
726
+
727
+
728
+
729
+ </div>
730
+
731
+
732
+
733
+
734
+
735
+
736
+
737
+
738
+
739
+
740
+
741
+ <hr />
742
+
743
+ <a name="frozen"> </a>
744
+ <div class="fixedFont">
745
+
746
+
747
+ <b>frozen</b>()
748
+
749
+ </div>
750
+ <div class="description">
751
+
752
+
753
+
754
+ </div>
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+ <hr />
767
+
768
+ <a name="observe"> </a>
769
+ <div class="fixedFont">
770
+
771
+
772
+ <b>observe</b>(eventName, handler)
773
+
774
+ </div>
775
+ <div class="description">
776
+ Observes an event.
777
+
778
+
779
+ </div>
780
+
781
+
782
+
783
+
784
+ <dl class="detailList">
785
+ <dt class="heading">Parameters:</dt>
786
+
787
+ <dt>
788
+ <span class="light fixedFont">{String}</span> <b>eventName</b>
789
+
790
+ </dt>
791
+ <dd>The name of the event to observe</dd>
792
+
793
+ <dt>
794
+ <span class="light fixedFont">{Function}</span> <b>handler</b>
795
+
796
+ </dt>
797
+ <dd>A function to call when the even is fired</dd>
798
+
799
+ </dl>
800
+
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+ <hr />
809
+
810
+ <a name="setAndReturnAfterSet"> </a>
811
+ <div class="fixedFont">
812
+
813
+
814
+ <b>setAndReturnAfterSet</b>(fieldName, newValue, options)
815
+
816
+ </div>
817
+ <div class="description">
818
+
819
+
820
+
821
+ </div>
822
+
823
+
824
+
825
+
826
+ <dl class="detailList">
827
+ <dt class="heading">Parameters:</dt>
828
+
829
+ <dt>
830
+ <b>fieldName</b>
831
+
832
+ </dt>
833
+ <dd></dd>
834
+
835
+ <dt>
836
+ <b>newValue</b>
837
+
838
+ </dt>
839
+ <dd></dd>
840
+
841
+ <dt>
842
+ <b>options</b>
843
+
844
+ </dt>
845
+ <dd></dd>
846
+
847
+ </dl>
848
+
849
+
850
+
851
+
852
+
853
+
854
+
855
+
856
+ <hr />
857
+
858
+ <a name="stopObserving"> </a>
859
+ <div class="fixedFont">
860
+
861
+
862
+ <b>stopObserving</b>(eventName, handler)
863
+
864
+ </div>
865
+ <div class="description">
866
+
867
+
868
+
869
+ </div>
870
+
871
+
872
+
873
+
874
+ <dl class="detailList">
875
+ <dt class="heading">Parameters:</dt>
876
+
877
+ <dt>
878
+ <b>eventName</b>
879
+
880
+ </dt>
881
+ <dd></dd>
882
+
883
+ <dt>
884
+ <b>handler</b>
885
+
886
+ </dt>
887
+ <dd></dd>
888
+
889
+ </dl>
890
+
891
+
892
+
893
+
894
+
895
+
896
+
897
+
898
+ <hr />
899
+
900
+ <a name=".toString"> </a>
901
+ <div class="fixedFont">&lt;static&gt;
902
+
903
+
904
+ <span class="light">rio.Attr.</span><b>toString</b>()
905
+
906
+ </div>
907
+ <div class="description">
908
+
909
+
910
+
911
+ </div>
912
+
913
+
914
+
915
+
916
+
917
+
918
+
919
+
920
+
921
+
922
+
923
+ <hr />
924
+
925
+ <a name=".transaction"> </a>
926
+ <div class="fixedFont">&lt;static&gt;
927
+
928
+
929
+ <span class="light">rio.Attr.</span><b>transaction</b>(t)
930
+
931
+ </div>
932
+ <div class="description">
933
+
934
+
935
+
936
+ </div>
937
+
938
+
939
+
940
+
941
+ <dl class="detailList">
942
+ <dt class="heading">Parameters:</dt>
943
+
944
+ <dt>
945
+ <b>t</b>
946
+
947
+ </dt>
948
+ <dd></dd>
949
+
950
+ </dl>
951
+
952
+
953
+
954
+
955
+
956
+
957
+
958
+
959
+ <hr />
960
+
961
+ <a name="unfreeze"> </a>
962
+ <div class="fixedFont">
963
+
964
+
965
+ <b>unfreeze</b>()
966
+
967
+ </div>
968
+ <div class="description">
969
+
970
+
971
+
972
+ </div>
973
+
974
+
975
+
976
+
977
+
978
+
979
+
980
+
981
+
982
+
983
+
984
+ <hr />
985
+
986
+ <a name="updateAttributes"> </a>
987
+ <div class="fixedFont">
988
+
989
+
990
+ <b>updateAttributes</b>(attributes, options)
991
+
992
+ </div>
993
+ <div class="description">
994
+
995
+
996
+
997
+ </div>
998
+
999
+
1000
+
1001
+
1002
+ <dl class="detailList">
1003
+ <dt class="heading">Parameters:</dt>
1004
+
1005
+ <dt>
1006
+ <b>attributes</b>
1007
+
1008
+ </dt>
1009
+ <dd></dd>
1010
+
1011
+ <dt>
1012
+ <b>options</b>
1013
+
1014
+ </dt>
1015
+ <dd></dd>
1016
+
1017
+ </dl>
1018
+
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+
1025
+
1026
+ <hr />
1027
+
1028
+ <a name=".updateAttributes"> </a>
1029
+ <div class="fixedFont">&lt;static&gt;
1030
+
1031
+
1032
+ <span class="light">rio.Attr.</span><b>updateAttributes</b>(updates)
1033
+
1034
+ </div>
1035
+ <div class="description">
1036
+
1037
+
1038
+
1039
+ </div>
1040
+
1041
+
1042
+
1043
+
1044
+ <dl class="detailList">
1045
+ <dt class="heading">Parameters:</dt>
1046
+
1047
+ <dt>
1048
+ <b>updates</b>
1049
+
1050
+ </dt>
1051
+ <dd></dd>
1052
+
1053
+ </dl>
1054
+
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+
1062
+
1063
+
1064
+
1065
+
1066
+ <hr />
1067
+ </div>
1068
+
1069
+ <!-- ============================== footer ================================= -->
1070
+ <div class="fineprint" style="clear:both">
1071
+
1072
+ Documentation generated by <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a> 2.0.2 on Fri Jan 29 2010 14:20:38 GMT-0600 (CST)
1073
+ </div>
1074
+ </body>
1075
+ </html>