lsd_rails 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (991) hide show
  1. data/Packages/Sheet.js/Demo/index.html +78 -0
  2. data/Packages/Sheet.js/Demo/pp.css +69 -0
  3. data/Packages/Sheet.js/Demo/subtlegradient-jslib.js +450 -0
  4. data/Packages/Sheet.js/LICENSE +21 -0
  5. data/Packages/Sheet.js/README.md +59 -0
  6. data/Packages/Sheet.js/Source/Sheet.DOM.js +65 -0
  7. data/Packages/Sheet.js/Source/Sheet.js +80 -0
  8. data/Packages/Sheet.js/Source/SheetParser.CSS.js +194 -0
  9. data/Packages/Sheet.js/Source/SheetParser.Property.js +227 -0
  10. data/Packages/Sheet.js/Source/SheetParser.Styles.js +115 -0
  11. data/Packages/Sheet.js/Source/SheetParser.Value.js +114 -0
  12. data/Packages/Sheet.js/Source/sg-regex-tools.js +42 -0
  13. data/Packages/Sheet.js/Test/DOM-styleSheet.api.js +404 -0
  14. data/Packages/Sheet.js/Test/Sheet.test.js +25 -0
  15. data/Packages/Sheet.js/Test/SheetParser.CSS.RegExp.test.js +108 -0
  16. data/Packages/Sheet.js/Test/SheetParser.Property.test.js +230 -0
  17. data/Packages/Sheet.js/Test/SheetParser.Value.test.js +94 -0
  18. data/Packages/Sheet.js/Test/all-types.mock.css +103 -0
  19. data/Packages/Sheet.js/Test/document.styleSheets.test.js +7 -0
  20. data/Packages/Sheet.js/Test/index.html +12 -0
  21. data/Packages/Sheet.js/Test/lib/qunit/package.json +21 -0
  22. data/Packages/Sheet.js/Test/lib/qunit/qunit/qunit.css +196 -0
  23. data/Packages/Sheet.js/Test/lib/qunit/qunit/qunit.js +1303 -0
  24. data/Packages/Sheet.js/Test/lib/sg-assert-helpers.js +93 -0
  25. data/Packages/Sheet.js/Test/lib/sg-qunit-testrunner.js +40 -0
  26. data/Packages/Sheet.js/Test/lib/sg-testrunner.js +49 -0
  27. data/Packages/Sheet.js/Test/properties.html +39 -0
  28. data/Packages/Sheet.js/Test/run.html +43 -0
  29. data/Packages/Sheet.js/Test/run.js +10 -0
  30. data/Packages/Sheet.js/Test/test-browser.html +47 -0
  31. data/Packages/Sheet.js/Test/values.html +38 -0
  32. data/Packages/Sheet.js/package.json +59 -0
  33. data/Packages/Sheet.js/test-all +13 -0
  34. data/Packages/art/Docs/ART/ART.Group.md +106 -0
  35. data/Packages/art/Docs/ART/ART.Path.md +167 -0
  36. data/Packages/art/Docs/ART/ART.Shape.md +106 -0
  37. data/Packages/art/Docs/ART/ART.Transform.md +148 -0
  38. data/Packages/art/Docs/ART/ART.md +113 -0
  39. data/Packages/art/Docs/Modes/ART.Base.md +10 -0
  40. data/Packages/art/Docs/Modes/ART.SVG.md +9 -0
  41. data/Packages/art/Docs/Modes/ART.VML.md +12 -0
  42. data/Packages/art/Docs/Shapes/ART.Font.md +15 -0
  43. data/Packages/art/Docs/Shapes/ART.Shapes.md +63 -0
  44. data/Packages/art/Docs/Shapes/ART.Text.md +14 -0
  45. data/Packages/art/Fonts/Moderna.Bold.js +31 -0
  46. data/Packages/art/Fonts/Moderna.js +31 -0
  47. data/Packages/art/README.md +3 -0
  48. data/Packages/art/Source/ART.Base.js +33 -0
  49. data/Packages/art/Source/ART.Font.js +89 -0
  50. data/Packages/art/Source/ART.Path.js +440 -0
  51. data/Packages/art/Source/ART.SVG.js +593 -0
  52. data/Packages/art/Source/ART.Shapes.js +136 -0
  53. data/Packages/art/Source/ART.VML.js +772 -0
  54. data/Packages/art/Source/ART.js +202 -0
  55. data/Packages/art/license.txt +21 -0
  56. data/Packages/art/package.yml +24 -0
  57. data/Packages/art-morph/Demos/index.html +18 -0
  58. data/Packages/art-morph/Demos/morph.js +30 -0
  59. data/Packages/art-morph/README.md +3 -0
  60. data/Packages/art-morph/Source/ART.Path.Morph.js +76 -0
  61. data/Packages/art-morph/license.txt +21 -0
  62. data/Packages/lsd/CHANGELOG +152 -0
  63. data/Packages/lsd/README.md +233 -0
  64. data/Packages/lsd/Source/ART/ART.Element.js +51 -0
  65. data/Packages/lsd/Source/ART/ART.Glyphs.js +51 -0
  66. data/Packages/lsd/Source/ART/ART.SVG.js +122 -0
  67. data/Packages/lsd/Source/ART/ART.Shape.Arrow.js +104 -0
  68. data/Packages/lsd/Source/ART/ART.Shape.Ellipse.js +42 -0
  69. data/Packages/lsd/Source/ART/ART.Shape.Flower.js +71 -0
  70. data/Packages/lsd/Source/ART/ART.Shape.Rectangle.js +67 -0
  71. data/Packages/lsd/Source/ART/ART.Shape.Star.js +57 -0
  72. data/Packages/lsd/Source/ART/ART.js +41 -0
  73. data/Packages/lsd/Source/Action/Clone.js +36 -0
  74. data/Packages/lsd/Source/Action/Counter.js +98 -0
  75. data/Packages/lsd/Source/Action/Create.js +26 -0
  76. data/Packages/lsd/Source/Action/Delete.js +32 -0
  77. data/Packages/lsd/Source/Action/Display.js +50 -0
  78. data/Packages/lsd/Source/Action/Edit.js +138 -0
  79. data/Packages/lsd/Source/Action/Focus.js +29 -0
  80. data/Packages/lsd/Source/Action/History.js +27 -0
  81. data/Packages/lsd/Source/Action/Invoke.js +34 -0
  82. data/Packages/lsd/Source/Action/List.js +40 -0
  83. data/Packages/lsd/Source/Action/Set.js +36 -0
  84. data/Packages/lsd/Source/Action/State.js +33 -0
  85. data/Packages/lsd/Source/Action/Submit.js +60 -0
  86. data/Packages/lsd/Source/Action/Toggle.js +41 -0
  87. data/Packages/lsd/Source/Action/Update.js +79 -0
  88. data/Packages/lsd/Source/Action.js +169 -0
  89. data/Packages/lsd/Source/Behavior.js +68 -0
  90. data/Packages/lsd/Source/Command.js +135 -0
  91. data/Packages/lsd/Source/Document.js +188 -0
  92. data/Packages/lsd/Source/Interpolation.js +103 -0
  93. data/Packages/lsd/Source/LSD.js +163 -0
  94. data/Packages/lsd/Source/Layer/Color.js +43 -0
  95. data/Packages/lsd/Source/Layer/Offset.js +37 -0
  96. data/Packages/lsd/Source/Layer/Position.js +35 -0
  97. data/Packages/lsd/Source/Layer/Radius.js +39 -0
  98. data/Packages/lsd/Source/Layer/Scale.js +36 -0
  99. data/Packages/lsd/Source/Layer/Shadow.Blur.js +41 -0
  100. data/Packages/lsd/Source/Layer/Shadow.Inset.js +99 -0
  101. data/Packages/lsd/Source/Layer/Shadow.Native.js +35 -0
  102. data/Packages/lsd/Source/Layer/Shadow.Onion.js +105 -0
  103. data/Packages/lsd/Source/Layer/Shadow.js +46 -0
  104. data/Packages/lsd/Source/Layer/Shape.js +56 -0
  105. data/Packages/lsd/Source/Layer/Size.js +38 -0
  106. data/Packages/lsd/Source/Layer/Stroke.js +61 -0
  107. data/Packages/lsd/Source/Layer.js +212 -0
  108. data/Packages/lsd/Source/Layout.js +445 -0
  109. data/Packages/lsd/Source/Mixin/Animation.js +77 -0
  110. data/Packages/lsd/Source/Mixin/Choice.js +62 -0
  111. data/Packages/lsd/Source/Mixin/Command.js +98 -0
  112. data/Packages/lsd/Source/Mixin/ContentEditable.js +124 -0
  113. data/Packages/lsd/Source/Mixin/Draggable.js +113 -0
  114. data/Packages/lsd/Source/Mixin/Fieldset.js +235 -0
  115. data/Packages/lsd/Source/Mixin/Focusable.js +122 -0
  116. data/Packages/lsd/Source/Mixin/Invokable.js +83 -0
  117. data/Packages/lsd/Source/Mixin/List.js +99 -0
  118. data/Packages/lsd/Source/Mixin/Placeholder.js +77 -0
  119. data/Packages/lsd/Source/Mixin/Request.js +120 -0
  120. data/Packages/lsd/Source/Mixin/Resizable.js +182 -0
  121. data/Packages/lsd/Source/Mixin/Resource.js +81 -0
  122. data/Packages/lsd/Source/Mixin/Root.js +41 -0
  123. data/Packages/lsd/Source/Mixin/Scrollable.js +69 -0
  124. data/Packages/lsd/Source/Mixin/Sortable.js +134 -0
  125. data/Packages/lsd/Source/Mixin/Submittable.js +64 -0
  126. data/Packages/lsd/Source/Mixin/Target.js +102 -0
  127. data/Packages/lsd/Source/Mixin/Touchable.js +41 -0
  128. data/Packages/lsd/Source/Mixin/Unselectable.js +35 -0
  129. data/Packages/lsd/Source/Mixin/Uploader.js +277 -0
  130. data/Packages/lsd/Source/Mixin/Validity.js +102 -0
  131. data/Packages/lsd/Source/Mixin/Value.js +160 -0
  132. data/Packages/lsd/Source/Module/Accessories/Actions.js +79 -0
  133. data/Packages/lsd/Source/Module/Accessories/Attributes.js +192 -0
  134. data/Packages/lsd/Source/Module/Accessories/Chain.js +232 -0
  135. data/Packages/lsd/Source/Module/Accessories/Dimensions.js +114 -0
  136. data/Packages/lsd/Source/Module/Accessories/Element.js +233 -0
  137. data/Packages/lsd/Source/Module/Accessories/Events.js +352 -0
  138. data/Packages/lsd/Source/Module/Accessories/Options.js +112 -0
  139. data/Packages/lsd/Source/Module/Accessories/Shortcuts.js +46 -0
  140. data/Packages/lsd/Source/Module/Accessories/States.js +28 -0
  141. data/Packages/lsd/Source/Module/Accessories/Styles.js +230 -0
  142. data/Packages/lsd/Source/Module/Accessories/Tag.js +145 -0
  143. data/Packages/lsd/Source/Module/Accessories.js +47 -0
  144. data/Packages/lsd/Source/Module/Ambient/Allocations.js +184 -0
  145. data/Packages/lsd/Source/Module/Ambient/Container.js +56 -0
  146. data/Packages/lsd/Source/Module/Ambient/DOM.js +355 -0
  147. data/Packages/lsd/Source/Module/Ambient/Expectations.js +358 -0
  148. data/Packages/lsd/Source/Module/Ambient/Layout.js +97 -0
  149. data/Packages/lsd/Source/Module/Ambient/Mutations.js +101 -0
  150. data/Packages/lsd/Source/Module/Ambient/Proxies.js +84 -0
  151. data/Packages/lsd/Source/Module/Ambient/Relations.js +99 -0
  152. data/Packages/lsd/Source/Module/Ambient/Selectors.js +136 -0
  153. data/Packages/lsd/Source/Module/Ambient.js +39 -0
  154. data/Packages/lsd/Source/Module/Graphics/Layers.js +177 -0
  155. data/Packages/lsd/Source/Module/Graphics/Render.js +96 -0
  156. data/Packages/lsd/Source/Module/Graphics/Shape.js +56 -0
  157. data/Packages/lsd/Source/Module/Graphics.js +30 -0
  158. data/Packages/lsd/Source/Relation.js +397 -0
  159. data/Packages/lsd/Source/Sheet.js +324 -0
  160. data/Packages/lsd/Source/Trait/Date.js +66 -0
  161. data/Packages/lsd/Source/Trait/Input.js +65 -0
  162. data/Packages/lsd/Source/Trait/Menu.js +21 -0
  163. data/Packages/lsd/Source/Trait/Slider.js +93 -0
  164. data/Packages/lsd/Source/Type.js +92 -0
  165. data/Packages/lsd/Source/Widget.js +60 -0
  166. data/Packages/lsd/UNLICENSE +24 -0
  167. data/Packages/lsd/package.yml +114 -0
  168. data/Packages/lsd-mobile/Source/Body/Dialog.js +57 -0
  169. data/Packages/lsd-mobile/Source/Body/Page.js +50 -0
  170. data/Packages/lsd-mobile/Source/Body.js +30 -0
  171. data/Packages/lsd-mobile/Source/Dialog.js +0 -0
  172. data/Packages/lsd-mobile/Source/Document.js +78 -0
  173. data/Packages/lsd-mobile/Source/Input/Date.js +119 -0
  174. data/Packages/lsd-mobile/Source/Input.js +24 -0
  175. data/Packages/lsd-mobile/Source/Mobile.js +27 -0
  176. data/Packages/lsd-mobile/package.yml +15 -0
  177. data/Packages/lsd-native/README.md +0 -0
  178. data/Packages/lsd-native/Source/Input/Checkbox.js +42 -0
  179. data/Packages/lsd-native/Source/Input/Date.js +33 -0
  180. data/Packages/lsd-native/Source/Input/File.js +23 -0
  181. data/Packages/lsd-native/Source/Input/Hidden.js +23 -0
  182. data/Packages/lsd-native/Source/Input/Password.js +29 -0
  183. data/Packages/lsd-native/Source/Input/Radio.js +42 -0
  184. data/Packages/lsd-native/Source/Input/Search.js +23 -0
  185. data/Packages/lsd-native/Source/Input.js +48 -0
  186. data/Packages/lsd-native/Source/Select.js +29 -0
  187. data/Packages/lsd-native/Source/Textarea.js +27 -0
  188. data/Packages/lsd-native/package.yml +18 -0
  189. data/Packages/lsd-specs/Compiled/includes.js +217 -0
  190. data/Packages/lsd-specs/Configuration.js +124 -0
  191. data/Packages/lsd-specs/compile.sh +1 -0
  192. data/Packages/lsd-specs/index.html +26 -0
  193. data/Packages/lsd-specs/lsd/Action/Counter.js +35 -0
  194. data/Packages/lsd-specs/lsd/Layout.js +146 -0
  195. data/Packages/lsd-specs/lsd/Module/Accessories/Attributes.js +68 -0
  196. data/Packages/lsd-specs/lsd/Module/Accessories/Chain.js +385 -0
  197. data/Packages/lsd-specs/lsd/Module/Accessories/Dimensions.js +53 -0
  198. data/Packages/lsd-specs/lsd/Module/Accessories/Element.js +112 -0
  199. data/Packages/lsd-specs/lsd/Module/Accessories/Events.js +151 -0
  200. data/Packages/lsd-specs/lsd/Module/Accessories/Options.js +36 -0
  201. data/Packages/lsd-specs/lsd/Module/Accessories/Shortcuts.js +0 -0
  202. data/Packages/lsd-specs/lsd/Module/Accessories/States.js +0 -0
  203. data/Packages/lsd-specs/lsd/Module/Accessories/Styles.js +14 -0
  204. data/Packages/lsd-specs/lsd/Module/Accessories/Tag.js +84 -0
  205. data/Packages/lsd-specs/lsd/Module/Ambient/DOM.js +394 -0
  206. data/Packages/lsd-specs/lsd/Module/Ambient/Expectations.js +199 -0
  207. data/Packages/lsd-specs/lsd/Module/Ambient/Layout.js +0 -0
  208. data/Packages/lsd-specs/lsd/Module/Ambient/Relations.js +7 -0
  209. data/Packages/lsd-specs/lsd/Module/Behavior/Target.Parser.js +123 -0
  210. data/Packages/lsd-specs/lsd/Module/Behavior/Target.js +0 -0
  211. data/Packages/lsd-specs/lsd/Relation.js +428 -0
  212. data/Packages/lsd-specs/lsd/Trait/Dimensions.js +216 -0
  213. data/Packages/lsd-specs/lsd/Trait/Layers.js +66 -0
  214. data/Packages/lsd-specs/lsd/Type.js +27 -0
  215. data/Packages/lsd-specs/outdated/Focus.js +137 -0
  216. data/Packages/lsd-widgets/Source/Body/Dialog.js +68 -0
  217. data/Packages/lsd-widgets/Source/Body/Page.js +38 -0
  218. data/Packages/lsd-widgets/Source/Body.js +27 -0
  219. data/Packages/lsd-widgets/Source/Button.js +34 -0
  220. data/Packages/lsd-widgets/Source/Form.js +43 -0
  221. data/Packages/lsd-widgets/Source/Input/Checkbox.js +31 -0
  222. data/Packages/lsd-widgets/Source/Input/Date.js +43 -0
  223. data/Packages/lsd-widgets/Source/Input/File.js +63 -0
  224. data/Packages/lsd-widgets/Source/Input/HTML.js +54 -0
  225. data/Packages/lsd-widgets/Source/Input/Radio.js +31 -0
  226. data/Packages/lsd-widgets/Source/Input/Range.js +61 -0
  227. data/Packages/lsd-widgets/Source/Input/Submit.js +55 -0
  228. data/Packages/lsd-widgets/Source/Input.js +62 -0
  229. data/Packages/lsd-widgets/Source/Label.js +66 -0
  230. data/Packages/lsd-widgets/Source/Menu/Context.js +39 -0
  231. data/Packages/lsd-widgets/Source/Menu/List.js +49 -0
  232. data/Packages/lsd-widgets/Source/Menu/Toolbar.Menu.js +65 -0
  233. data/Packages/lsd-widgets/Source/Menu/Toolbar.js +30 -0
  234. data/Packages/lsd-widgets/Source/Menu.js +38 -0
  235. data/Packages/lsd-widgets/Source/Progress.js +45 -0
  236. data/Packages/lsd-widgets/Source/Scrollbar.js +131 -0
  237. data/Packages/lsd-widgets/Source/Select.js +81 -0
  238. data/Packages/lsd-widgets/Source/Table/Calendar.js +127 -0
  239. data/Packages/lsd-widgets/Source/Table.js +100 -0
  240. data/Packages/lsd-widgets/Source/Textarea.js +32 -0
  241. data/Packages/lsd-widgets/package.yml +32 -0
  242. data/Packages/mootools-color/README.md +4 -0
  243. data/Packages/mootools-color/Source/Color.js +167 -0
  244. data/Packages/mootools-color/license.txt +21 -0
  245. data/Packages/mootools-color/package.yml +20 -0
  246. data/Packages/mootools-core/Docs/Browser/Browser.md +102 -0
  247. data/Packages/mootools-core/Docs/Class/Class.Extras.md +453 -0
  248. data/Packages/mootools-core/Docs/Class/Class.md +133 -0
  249. data/Packages/mootools-core/Docs/Core/Core.md +385 -0
  250. data/Packages/mootools-core/Docs/Element/Element.Dimensions.md +235 -0
  251. data/Packages/mootools-core/Docs/Element/Element.Event.md +330 -0
  252. data/Packages/mootools-core/Docs/Element/Element.Style.md +121 -0
  253. data/Packages/mootools-core/Docs/Element/Element.md +1924 -0
  254. data/Packages/mootools-core/Docs/Fx/Fx.CSS.md +12 -0
  255. data/Packages/mootools-core/Docs/Fx/Fx.Morph.md +225 -0
  256. data/Packages/mootools-core/Docs/Fx/Fx.Transitions.md +157 -0
  257. data/Packages/mootools-core/Docs/Fx/Fx.Tween.md +303 -0
  258. data/Packages/mootools-core/Docs/Fx/Fx.md +172 -0
  259. data/Packages/mootools-core/Docs/Intro.md +37 -0
  260. data/Packages/mootools-core/Docs/Request/Request.HTML.md +179 -0
  261. data/Packages/mootools-core/Docs/Request/Request.JSON.md +61 -0
  262. data/Packages/mootools-core/Docs/Request/Request.md +461 -0
  263. data/Packages/mootools-core/Docs/Types/Array.md +797 -0
  264. data/Packages/mootools-core/Docs/Types/Event.md +204 -0
  265. data/Packages/mootools-core/Docs/Types/Function.md +409 -0
  266. data/Packages/mootools-core/Docs/Types/Number.md +212 -0
  267. data/Packages/mootools-core/Docs/Types/Object.md +599 -0
  268. data/Packages/mootools-core/Docs/Types/String.md +400 -0
  269. data/Packages/mootools-core/Docs/Utilities/Cookie.md +95 -0
  270. data/Packages/mootools-core/Docs/Utilities/DOMReady.md +21 -0
  271. data/Packages/mootools-core/Docs/Utilities/JSON.md +56 -0
  272. data/Packages/mootools-core/Docs/Utilities/Swiff.md +90 -0
  273. data/Packages/mootools-core/Docs/license.md +8 -0
  274. data/Packages/mootools-core/README.md +6 -0
  275. data/Packages/mootools-core/Source/Browser/Browser.js +264 -0
  276. data/Packages/mootools-core/Source/Class/Class.Extras.js +121 -0
  277. data/Packages/mootools-core/Source/Class/Class.js +115 -0
  278. data/Packages/mootools-core/Source/Core/Core.js +511 -0
  279. data/Packages/mootools-core/Source/Element/Element.Dimensions.js +283 -0
  280. data/Packages/mootools-core/Source/Element/Element.Event.js +175 -0
  281. data/Packages/mootools-core/Source/Element/Element.Style.js +184 -0
  282. data/Packages/mootools-core/Source/Element/Element.js +862 -0
  283. data/Packages/mootools-core/Source/Fx/Fx.CSS.js +149 -0
  284. data/Packages/mootools-core/Source/Fx/Fx.Morph.js +77 -0
  285. data/Packages/mootools-core/Source/Fx/Fx.Transitions.js +113 -0
  286. data/Packages/mootools-core/Source/Fx/Fx.Tween.js +103 -0
  287. data/Packages/mootools-core/Source/Fx/Fx.js +179 -0
  288. data/Packages/mootools-core/Source/Request/Request.HTML.js +88 -0
  289. data/Packages/mootools-core/Source/Request/Request.JSON.js +46 -0
  290. data/Packages/mootools-core/Source/Request/Request.js +278 -0
  291. data/Packages/mootools-core/Source/Slick/Slick.Finder.js +970 -0
  292. data/Packages/mootools-core/Source/Slick/Slick.Parser.js +230 -0
  293. data/Packages/mootools-core/Source/Types/Array.js +178 -0
  294. data/Packages/mootools-core/Source/Types/Event.js +135 -0
  295. data/Packages/mootools-core/Source/Types/Function.js +118 -0
  296. data/Packages/mootools-core/Source/Types/Number.js +52 -0
  297. data/Packages/mootools-core/Source/Types/Object.js +209 -0
  298. data/Packages/mootools-core/Source/Types/String.js +82 -0
  299. data/Packages/mootools-core/Source/Utilities/Cookie.js +74 -0
  300. data/Packages/mootools-core/Source/Utilities/DOMReady.js +105 -0
  301. data/Packages/mootools-core/Source/Utilities/JSON.js +81 -0
  302. data/Packages/mootools-core/Source/Utilities/Swiff.js +113 -0
  303. data/Packages/mootools-core/Source/license.txt +21 -0
  304. data/Packages/mootools-core/build +40 -0
  305. data/Packages/mootools-core/package.yml +43 -0
  306. data/Packages/mootools-custom-event/Demos/index.html +147 -0
  307. data/Packages/mootools-custom-event/Demos/mootools-core.js +3183 -0
  308. data/Packages/mootools-custom-event/Demos/style.css +44 -0
  309. data/Packages/mootools-custom-event/LICENSE +24 -0
  310. data/Packages/mootools-custom-event/README.md +128 -0
  311. data/Packages/mootools-custom-event/Source/Element.defineCustomEvent.js +90 -0
  312. data/Packages/mootools-custom-event/package.yml +20 -0
  313. data/Packages/mootools-ext/Examples/Class.Includes.js +47 -0
  314. data/Packages/mootools-ext/Examples/Class.Macros.js +69 -0
  315. data/Packages/mootools-ext/Examples/Class.States.js +20 -0
  316. data/Packages/mootools-ext/Examples/_includes.haml +17 -0
  317. data/Packages/mootools-ext/Examples/examples.js +8 -0
  318. data/Packages/mootools-ext/Examples/index.haml +22 -0
  319. data/Packages/mootools-ext/README.md +8 -0
  320. data/Packages/mootools-ext/Rakefile +5 -0
  321. data/Packages/mootools-ext/Source/Core/Class.Binds.Remover.js +21 -0
  322. data/Packages/mootools-ext/Source/Core/Class.Includes.js +68 -0
  323. data/Packages/mootools-ext/Source/Core/Class.Macros.js +90 -0
  324. data/Packages/mootools-ext/Source/Core/Class.Mixin.js +89 -0
  325. data/Packages/mootools-ext/Source/Core/Class.Shortcuts.js +124 -0
  326. data/Packages/mootools-ext/Source/Core/Class.States.js +95 -0
  327. data/Packages/mootools-ext/Source/Drag/Drag.Limits.js +42 -0
  328. data/Packages/mootools-ext/Source/Drag/Slider.js +33 -0
  329. data/Packages/mootools-ext/Source/Drag/Sortables.Delegation.js +64 -0
  330. data/Packages/mootools-ext/Source/Element/Element.Selection.js +45 -0
  331. data/Packages/mootools-ext/Source/Element/Element.from.js +50 -0
  332. data/Packages/mootools-ext/Source/Element/Element.js +47 -0
  333. data/Packages/mootools-ext/Source/Element/Element.onDispose.js +36 -0
  334. data/Packages/mootools-ext/Source/Element/Events/Input.js +23 -0
  335. data/Packages/mootools-ext/Source/Element/Events/Keypress.js +65 -0
  336. data/Packages/mootools-ext/Source/Element/Properties/BorderRadius.js +41 -0
  337. data/Packages/mootools-ext/Source/Element/Properties/BoxShadow.js +61 -0
  338. data/Packages/mootools-ext/Source/Element/Properties/Data.js +32 -0
  339. data/Packages/mootools-ext/Source/Element/Properties/Item.js +210 -0
  340. data/Packages/mootools-ext/Source/Element/Properties/UserSelect.js +32 -0
  341. data/Packages/mootools-ext/Source/Element/Properties/Widget.js +32 -0
  342. data/Packages/mootools-ext/Source/Request/Request.Auto.js +38 -0
  343. data/Packages/mootools-ext/Source/Request/Request.Form.js +108 -0
  344. data/Packages/mootools-ext/Source/Request/Request.Headers.js +41 -0
  345. data/Packages/mootools-ext/Source/Request/Request.Statuses.js +95 -0
  346. data/Packages/mootools-ext/Source/Types/Event.js +336 -0
  347. data/Packages/mootools-ext/Source/Types/FastArray.js +74 -0
  348. data/Packages/mootools-ext/Source/Types/Object.js +34 -0
  349. data/Packages/mootools-ext/Source/Types/String.js +33 -0
  350. data/Packages/mootools-ext/package.yml +45 -0
  351. data/Packages/mootools-history/Demos/demo.css +14 -0
  352. data/Packages/mootools-history/Demos/demo.js +66 -0
  353. data/Packages/mootools-history/Demos/index.html +32 -0
  354. data/Packages/mootools-history/Demos/mootools-class-extras.js +27 -0
  355. data/Packages/mootools-history/Demos/mootools-core.js +4422 -0
  356. data/Packages/mootools-history/Demos/mootools.html +27 -0
  357. data/Packages/mootools-history/Demos/other.html +27 -0
  358. data/Packages/mootools-history/Demos/style.css +96 -0
  359. data/Packages/mootools-history/LICENSE +24 -0
  360. data/Packages/mootools-history/README.md +97 -0
  361. data/Packages/mootools-history/Source/History.handleInitialState.js +42 -0
  362. data/Packages/mootools-history/Source/History.js +102 -0
  363. data/Packages/mootools-history/package.yml +21 -0
  364. data/Packages/mootools-mobile/Demos/custom-event.js +91 -0
  365. data/Packages/mootools-mobile/Demos/demo.css +13 -0
  366. data/Packages/mootools-mobile/Demos/index.html +99 -0
  367. data/Packages/mootools-mobile/Demos/mootools-core.js +3831 -0
  368. data/Packages/mootools-mobile/Demos/pinch.html +60 -0
  369. data/Packages/mootools-mobile/Demos/style.css +121 -0
  370. data/Packages/mootools-mobile/Demos/swipe.html +45 -0
  371. data/Packages/mootools-mobile/Demos/touchhold.html +50 -0
  372. data/Packages/mootools-mobile/LICENSE +24 -0
  373. data/Packages/mootools-mobile/README.md +173 -0
  374. data/Packages/mootools-mobile/Source/Browser/Features.Touch.js +52 -0
  375. data/Packages/mootools-mobile/Source/Browser/Mobile.js +37 -0
  376. data/Packages/mootools-mobile/Source/Desktop/Mouse.js +60 -0
  377. data/Packages/mootools-mobile/Source/Touch/Click.js +30 -0
  378. data/Packages/mootools-mobile/Source/Touch/Pinch.js +66 -0
  379. data/Packages/mootools-mobile/Source/Touch/Swipe.js +95 -0
  380. data/Packages/mootools-mobile/Source/Touch/Touch.js +62 -0
  381. data/Packages/mootools-mobile/Source/Touch/Touchhold.js +69 -0
  382. data/Packages/mootools-mobile/package.yml +24 -0
  383. data/Packages/mootools-more/Docs/Class/Chain.Wait.md +69 -0
  384. data/Packages/mootools-more/Docs/Class/Class.Binds.md +84 -0
  385. data/Packages/mootools-more/Docs/Class/Class.Occlude.md +61 -0
  386. data/Packages/mootools-more/Docs/Class/Class.Refactor.md +65 -0
  387. data/Packages/mootools-more/Docs/Class/Events.Pseudos.md +125 -0
  388. data/Packages/mootools-more/Docs/Drag/Drag.Move.md +147 -0
  389. data/Packages/mootools-more/Docs/Drag/Drag.md +206 -0
  390. data/Packages/mootools-more/Docs/Drag/Slider.md +249 -0
  391. data/Packages/mootools-more/Docs/Drag/Sortables.md +287 -0
  392. data/Packages/mootools-more/Docs/Element/Element.Delegation.md +120 -0
  393. data/Packages/mootools-more/Docs/Element/Element.Event.Pseudos.Keys.md +67 -0
  394. data/Packages/mootools-more/Docs/Element/Element.Event.Pseudos.md +124 -0
  395. data/Packages/mootools-more/Docs/Element/Element.Forms.md +231 -0
  396. data/Packages/mootools-more/Docs/Element/Element.Measure.md +130 -0
  397. data/Packages/mootools-more/Docs/Element/Element.Pin.md +56 -0
  398. data/Packages/mootools-more/Docs/Element/Element.Position.md +77 -0
  399. data/Packages/mootools-more/Docs/Element/Element.Shortcuts.md +121 -0
  400. data/Packages/mootools-more/Docs/Element/Elements.From.md +32 -0
  401. data/Packages/mootools-more/Docs/Forms/Form.Request.Append.md +36 -0
  402. data/Packages/mootools-more/Docs/Forms/Form.Request.md +141 -0
  403. data/Packages/mootools-more/Docs/Forms/Form.Validator.Extras.md +157 -0
  404. data/Packages/mootools-more/Docs/Forms/Form.Validator.Inline.md +100 -0
  405. data/Packages/mootools-more/Docs/Forms/Form.Validator.md +666 -0
  406. data/Packages/mootools-more/Docs/Forms/OverText.md +237 -0
  407. data/Packages/mootools-more/Docs/Fx/Fx.Accordion.md +178 -0
  408. data/Packages/mootools-more/Docs/Fx/Fx.Elements.md +114 -0
  409. data/Packages/mootools-more/Docs/Fx/Fx.Move.md +160 -0
  410. data/Packages/mootools-more/Docs/Fx/Fx.Reveal.md +235 -0
  411. data/Packages/mootools-more/Docs/Fx/Fx.Scroll.md +291 -0
  412. data/Packages/mootools-more/Docs/Fx/Fx.Slide.md +272 -0
  413. data/Packages/mootools-more/Docs/Fx/Fx.SmoothScroll.md +50 -0
  414. data/Packages/mootools-more/Docs/Fx/Fx.Sort.md +201 -0
  415. data/Packages/mootools-more/Docs/Interface/HtmlTable.Select.md +246 -0
  416. data/Packages/mootools-more/Docs/Interface/HtmlTable.Sort.md +193 -0
  417. data/Packages/mootools-more/Docs/Interface/HtmlTable.Zebra.md +94 -0
  418. data/Packages/mootools-more/Docs/Interface/HtmlTable.md +250 -0
  419. data/Packages/mootools-more/Docs/Interface/Keyboard.Extras.md +163 -0
  420. data/Packages/mootools-more/Docs/Interface/Keyboard.md +226 -0
  421. data/Packages/mootools-more/Docs/Interface/Mask.md +232 -0
  422. data/Packages/mootools-more/Docs/Interface/Scroller.md +97 -0
  423. data/Packages/mootools-more/Docs/Interface/Spinner.md +284 -0
  424. data/Packages/mootools-more/Docs/Interface/Tips.md +267 -0
  425. data/Packages/mootools-more/Docs/Locale/Date.md +222 -0
  426. data/Packages/mootools-more/Docs/Locale/Form.Validator.md +197 -0
  427. data/Packages/mootools-more/Docs/Locale/Locale.Set.From.md +29 -0
  428. data/Packages/mootools-more/Docs/Locale/Locale.md +208 -0
  429. data/Packages/mootools-more/Docs/Locale/Number.md +97 -0
  430. data/Packages/mootools-more/Docs/More/More.md +20 -0
  431. data/Packages/mootools-more/Docs/Request/Request.JSONP.md +126 -0
  432. data/Packages/mootools-more/Docs/Request/Request.Periodical.md +82 -0
  433. data/Packages/mootools-more/Docs/Request/Request.Queue.md +337 -0
  434. data/Packages/mootools-more/Docs/Types/Array.Extras.md +193 -0
  435. data/Packages/mootools-more/Docs/Types/Date.Extras.md +97 -0
  436. data/Packages/mootools-more/Docs/Types/Date.md +564 -0
  437. data/Packages/mootools-more/Docs/Types/Hash.Extras.md +111 -0
  438. data/Packages/mootools-more/Docs/Types/Hash.md +633 -0
  439. data/Packages/mootools-more/Docs/Types/Number.Format.md +91 -0
  440. data/Packages/mootools-more/Docs/Types/Object.Extras.md +134 -0
  441. data/Packages/mootools-more/Docs/Types/String.Extras.md +188 -0
  442. data/Packages/mootools-more/Docs/Types/String.QueryString.md +56 -0
  443. data/Packages/mootools-more/Docs/Types/URI.Relative.md +46 -0
  444. data/Packages/mootools-more/Docs/Types/URI.md +213 -0
  445. data/Packages/mootools-more/Docs/Utilities/Assets.md +175 -0
  446. data/Packages/mootools-more/Docs/Utilities/Color.md +276 -0
  447. data/Packages/mootools-more/Docs/Utilities/Group.md +75 -0
  448. data/Packages/mootools-more/Docs/Utilities/Hash.Cookie.md +117 -0
  449. data/Packages/mootools-more/Docs/Utilities/IframeShim.md +136 -0
  450. data/Packages/mootools-more/Docs/Utilities/Table.md +114 -0
  451. data/Packages/mootools-more/Docs/license.md +8 -0
  452. data/Packages/mootools-more/README.md +244 -0
  453. data/Packages/mootools-more/Source/Class/Chain.Wait.js +63 -0
  454. data/Packages/mootools-more/Source/Class/Class.Binds.js +37 -0
  455. data/Packages/mootools-more/Source/Class/Class.Occlude.js +38 -0
  456. data/Packages/mootools-more/Source/Class/Class.Refactor.js +41 -0
  457. data/Packages/mootools-more/Source/Class/Events.Pseudos.js +180 -0
  458. data/Packages/mootools-more/Source/Drag/Drag.Move.js +197 -0
  459. data/Packages/mootools-more/Source/Drag/Drag.js +234 -0
  460. data/Packages/mootools-more/Source/Drag/Slider.js +225 -0
  461. data/Packages/mootools-more/Source/Drag/Sortables.js +233 -0
  462. data/Packages/mootools-more/Source/Element/Element.Delegation.js +140 -0
  463. data/Packages/mootools-more/Source/Element/Element.Event.Pseudos.Keys.js +82 -0
  464. data/Packages/mootools-more/Source/Element/Element.Event.Pseudos.js +36 -0
  465. data/Packages/mootools-more/Source/Element/Element.Forms.js +140 -0
  466. data/Packages/mootools-more/Source/Element/Element.Measure.js +170 -0
  467. data/Packages/mootools-more/Source/Element/Element.Pin.js +130 -0
  468. data/Packages/mootools-more/Source/Element/Element.Position.js +235 -0
  469. data/Packages/mootools-more/Source/Element/Element.Shortcuts.js +76 -0
  470. data/Packages/mootools-more/Source/Element/Elements.From.js +40 -0
  471. data/Packages/mootools-more/Source/Forms/Form.Request.Append.js +77 -0
  472. data/Packages/mootools-more/Source/Forms/Form.Request.js +203 -0
  473. data/Packages/mootools-more/Source/Forms/Form.Validator.Extras.js +231 -0
  474. data/Packages/mootools-more/Source/Forms/Form.Validator.Inline.js +190 -0
  475. data/Packages/mootools-more/Source/Forms/Form.Validator.js +523 -0
  476. data/Packages/mootools-more/Source/Forms/OverText.js +258 -0
  477. data/Packages/mootools-more/Source/Fx/Fx.Accordion.js +240 -0
  478. data/Packages/mootools-more/Source/Fx/Fx.Elements.js +74 -0
  479. data/Packages/mootools-more/Source/Fx/Fx.Move.js +71 -0
  480. data/Packages/mootools-more/Source/Fx/Fx.Reveal.js +246 -0
  481. data/Packages/mootools-more/Source/Fx/Fx.Scroll.js +180 -0
  482. data/Packages/mootools-more/Source/Fx/Fx.Slide.js +170 -0
  483. data/Packages/mootools-more/Source/Fx/Fx.SmoothScroll.js +70 -0
  484. data/Packages/mootools-more/Source/Fx/Fx.Sort.js +172 -0
  485. data/Packages/mootools-more/Source/Interface/HtmlTable.Select.js +352 -0
  486. data/Packages/mootools-more/Source/Interface/HtmlTable.Sort.js +349 -0
  487. data/Packages/mootools-more/Source/Interface/HtmlTable.Zebra.js +64 -0
  488. data/Packages/mootools-more/Source/Interface/HtmlTable.js +150 -0
  489. data/Packages/mootools-more/Source/Interface/Keyboard.Extras.js +109 -0
  490. data/Packages/mootools-more/Source/Interface/Keyboard.js +242 -0
  491. data/Packages/mootools-more/Source/Interface/Mask.js +211 -0
  492. data/Packages/mootools-more/Source/Interface/Scroller.js +104 -0
  493. data/Packages/mootools-more/Source/Interface/Spinner.js +216 -0
  494. data/Packages/mootools-more/Source/Interface/Tips.js +259 -0
  495. data/Packages/mootools-more/Source/Locale/Locale.EU.Number.js +30 -0
  496. data/Packages/mootools-more/Source/Locale/Locale.Set.From.js +52 -0
  497. data/Packages/mootools-more/Source/Locale/Locale.ar.Date.js +28 -0
  498. data/Packages/mootools-more/Source/Locale/Locale.ar.Form.Validator.js +40 -0
  499. data/Packages/mootools-more/Source/Locale/Locale.ca-CA.Date.js +55 -0
  500. data/Packages/mootools-more/Source/Locale/Locale.ca-CA.Form.Validator.js +55 -0
  501. data/Packages/mootools-more/Source/Locale/Locale.cs-CZ.Date.js +80 -0
  502. data/Packages/mootools-more/Source/Locale/Locale.cs-CZ.Form.Validator.js +55 -0
  503. data/Packages/mootools-more/Source/Locale/Locale.da-DK.Date.js +68 -0
  504. data/Packages/mootools-more/Source/Locale/Locale.da-DK.Form.Validator.js +54 -0
  505. data/Packages/mootools-more/Source/Locale/Locale.de-CH.Date.js +22 -0
  506. data/Packages/mootools-more/Source/Locale/Locale.de-CH.Form.Validator.js +55 -0
  507. data/Packages/mootools-more/Source/Locale/Locale.de-DE.Date.js +70 -0
  508. data/Packages/mootools-more/Source/Locale/Locale.de-DE.Form.Validator.js +57 -0
  509. data/Packages/mootools-more/Source/Locale/Locale.de-DE.Number.js +22 -0
  510. data/Packages/mootools-more/Source/Locale/Locale.en-GB.Date.js +29 -0
  511. data/Packages/mootools-more/Source/Locale/Locale.en-US.Date.js +70 -0
  512. data/Packages/mootools-more/Source/Locale/Locale.en-US.Form.Validator.js +55 -0
  513. data/Packages/mootools-more/Source/Locale/Locale.en-US.Number.js +51 -0
  514. data/Packages/mootools-more/Source/Locale/Locale.es-AR.Date.js +23 -0
  515. data/Packages/mootools-more/Source/Locale/Locale.es-AR.Form.Validator.js +54 -0
  516. data/Packages/mootools-more/Source/Locale/Locale.es-ES.Date.js +67 -0
  517. data/Packages/mootools-more/Source/Locale/Locale.es-ES.Form.Validator.js +54 -0
  518. data/Packages/mootools-more/Source/Locale/Locale.es-VE.Date.js +22 -0
  519. data/Packages/mootools-more/Source/Locale/Locale.es-VE.Form.Validator.js +34 -0
  520. data/Packages/mootools-more/Source/Locale/Locale.es-VE.Number.js +44 -0
  521. data/Packages/mootools-more/Source/Locale/Locale.et-EE.Date.js +67 -0
  522. data/Packages/mootools-more/Source/Locale/Locale.et-EE.Form.Validator.js +54 -0
  523. data/Packages/mootools-more/Source/Locale/Locale.fa.Date.js +66 -0
  524. data/Packages/mootools-more/Source/Locale/Locale.fa.Form.Validator.js +55 -0
  525. data/Packages/mootools-more/Source/Locale/Locale.fi-FI.Date.js +72 -0
  526. data/Packages/mootools-more/Source/Locale/Locale.fi-FI.Form.Validator.js +55 -0
  527. data/Packages/mootools-more/Source/Locale/Locale.fi-FI.Number.js +26 -0
  528. data/Packages/mootools-more/Source/Locale/Locale.fr-FR.Date.js +70 -0
  529. data/Packages/mootools-more/Source/Locale/Locale.fr-FR.Form.Validator.js +56 -0
  530. data/Packages/mootools-more/Source/Locale/Locale.fr-FR.Number.js +27 -0
  531. data/Packages/mootools-more/Source/Locale/Locale.he-IL.Date.js +67 -0
  532. data/Packages/mootools-more/Source/Locale/Locale.he-IL.Form.Validator.js +55 -0
  533. data/Packages/mootools-more/Source/Locale/Locale.he-IL.Number.js +30 -0
  534. data/Packages/mootools-more/Source/Locale/Locale.hu-HU.Date.js +67 -0
  535. data/Packages/mootools-more/Source/Locale/Locale.hu-HU.Form.Validator.js +55 -0
  536. data/Packages/mootools-more/Source/Locale/Locale.it-IT.Date.js +68 -0
  537. data/Packages/mootools-more/Source/Locale/Locale.it-IT.Form.Validator.js +55 -0
  538. data/Packages/mootools-more/Source/Locale/Locale.ja-JP.Date.js +67 -0
  539. data/Packages/mootools-more/Source/Locale/Locale.ja-JP.Form.Validator.js +54 -0
  540. data/Packages/mootools-more/Source/Locale/Locale.ja-JP.Number.js +31 -0
  541. data/Packages/mootools-more/Source/Locale/Locale.js +188 -0
  542. data/Packages/mootools-more/Source/Locale/Locale.nl-NL.Date.js +68 -0
  543. data/Packages/mootools-more/Source/Locale/Locale.nl-NL.Form.Validator.js +57 -0
  544. data/Packages/mootools-more/Source/Locale/Locale.nl-NL.Number.js +25 -0
  545. data/Packages/mootools-more/Source/Locale/Locale.no-NO.Date.js +39 -0
  546. data/Packages/mootools-more/Source/Locale/Locale.no-NO.Form.Validator.js +40 -0
  547. data/Packages/mootools-more/Source/Locale/Locale.pl-PL.Date.js +57 -0
  548. data/Packages/mootools-more/Source/Locale/Locale.pl-PL.Form.Validator.js +54 -0
  549. data/Packages/mootools-more/Source/Locale/Locale.pt-BR.Date.js +27 -0
  550. data/Packages/mootools-more/Source/Locale/Locale.pt-BR.Form.Validator.js +55 -0
  551. data/Packages/mootools-more/Source/Locale/Locale.pt-BR.Number.js +33 -0
  552. data/Packages/mootools-more/Source/Locale/Locale.pt-PT.Date.js +67 -0
  553. data/Packages/mootools-more/Source/Locale/Locale.pt-PT.Form.Validator.js +40 -0
  554. data/Packages/mootools-more/Source/Locale/Locale.ru-RU.Date.js +98 -0
  555. data/Packages/mootools-more/Source/Locale/Locale.ru-RU.Form.Validator.js +46 -0
  556. data/Packages/mootools-more/Source/Locale/Locale.si-SI.Date.js +75 -0
  557. data/Packages/mootools-more/Source/Locale/Locale.si-SI.Form.Validator.js +55 -0
  558. data/Packages/mootools-more/Source/Locale/Locale.sv-SE.Date.js +55 -0
  559. data/Packages/mootools-more/Source/Locale/Locale.sv-SE.Form.Validator.js +54 -0
  560. data/Packages/mootools-more/Source/Locale/Locale.sv-SE.Number.js +29 -0
  561. data/Packages/mootools-more/Source/Locale/Locale.tr-TR.Date.js +67 -0
  562. data/Packages/mootools-more/Source/Locale/Locale.tr-TR.Form.Validator.js +55 -0
  563. data/Packages/mootools-more/Source/Locale/Locale.tr-TR.Number.js +29 -0
  564. data/Packages/mootools-more/Source/Locale/Locale.uk-UA.Date.js +82 -0
  565. data/Packages/mootools-more/Source/Locale/Locale.uk-UA.Form.Validator.js +54 -0
  566. data/Packages/mootools-more/Source/Locale/Locale.zh-CH.Date.js +117 -0
  567. data/Packages/mootools-more/Source/Locale/Locale.zh-CH.Form.Validator.js +110 -0
  568. data/Packages/mootools-more/Source/Locale/Locale.zh-CH.Number.js +32 -0
  569. data/Packages/mootools-more/Source/More/More.js +33 -0
  570. data/Packages/mootools-more/Source/Request/Request.JSONP.js +142 -0
  571. data/Packages/mootools-more/Source/Request/Request.Periodical.js +51 -0
  572. data/Packages/mootools-more/Source/Request/Request.Queue.js +212 -0
  573. data/Packages/mootools-more/Source/Types/Array.Extras.js +79 -0
  574. data/Packages/mootools-more/Source/Types/Date.Extras.js +117 -0
  575. data/Packages/mootools-more/Source/Types/Date.js +559 -0
  576. data/Packages/mootools-more/Source/Types/Hash.Extras.js +38 -0
  577. data/Packages/mootools-more/Source/Types/Hash.js +145 -0
  578. data/Packages/mootools-more/Source/Types/Number.Format.js +105 -0
  579. data/Packages/mootools-more/Source/Types/Object.Extras.js +66 -0
  580. data/Packages/mootools-more/Source/Types/String.Extras.js +148 -0
  581. data/Packages/mootools-more/Source/Types/String.QueryString.js +68 -0
  582. data/Packages/mootools-more/Source/Types/URI.Relative.js +57 -0
  583. data/Packages/mootools-more/Source/Types/URI.js +169 -0
  584. data/Packages/mootools-more/Source/Utilities/Assets.js +131 -0
  585. data/Packages/mootools-more/Source/Utilities/Color.js +162 -0
  586. data/Packages/mootools-more/Source/Utilities/Group.js +60 -0
  587. data/Packages/mootools-more/Source/Utilities/Hash.Cookie.js +61 -0
  588. data/Packages/mootools-more/Source/Utilities/IframeShim.js +130 -0
  589. data/Packages/mootools-more/Source/Utilities/Table.js +57 -0
  590. data/Packages/mootools-more/Source/license.txt +21 -0
  591. data/Packages/mootools-more/Styles/Interface/Mask/mask.css +8 -0
  592. data/Packages/mootools-more/Styles/Interface/Spinner/spinner.css +19 -0
  593. data/Packages/mootools-more/Styles/Interface/Spinner/spinner.gif +0 -0
  594. data/Packages/mootools-more/Tests/Interactive/Class/Chain.Wait_(tween).html +14 -0
  595. data/Packages/mootools-more/Tests/Interactive/Class/Chain.Wait_(tween).yml +2 -0
  596. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(basic).html +39 -0
  597. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(basic).yml +3 -0
  598. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(container).html +130 -0
  599. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(container).yml +3 -0
  600. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(drag_in_drag).html +46 -0
  601. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(drag_in_drag).yml +3 -0
  602. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(drag_in_drag_border).html +48 -0
  603. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(drag_in_drag_border).yml +3 -0
  604. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(droppables).html +88 -0
  605. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(droppables).yml +3 -0
  606. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(no_offsetParent).html +42 -0
  607. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(no_offsetParent).yml +3 -0
  608. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(position_right_bottom).html +41 -0
  609. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(style_false).html +23 -0
  610. data/Packages/mootools-more/Tests/Interactive/Drag/Drag.Move_(style_false).yml +3 -0
  611. data/Packages/mootools-more/Tests/Interactive/Drag/Drag_(resize).html +48 -0
  612. data/Packages/mootools-more/Tests/Interactive/Drag/Drag_(resize).yml +2 -0
  613. data/Packages/mootools-more/Tests/Interactive/Drag/Slider.html +169 -0
  614. data/Packages/mootools-more/Tests/Interactive/Drag/Slider.yml +2 -0
  615. data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(images).html +19 -0
  616. data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(images).yml +2 -0
  617. data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(multi).html +44 -0
  618. data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(multi).yml +2 -0
  619. data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(revert).html +51 -0
  620. data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(single).html +67 -0
  621. data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(single).yml +2 -0
  622. data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(table).html +46 -0
  623. data/Packages/mootools-more/Tests/Interactive/Drag/Sortables_(table).yml +2 -0
  624. data/Packages/mootools-more/Tests/Interactive/Element/Element.Delegation.html +89 -0
  625. data/Packages/mootools-more/Tests/Interactive/Element/Element.Delegation.yml +2 -0
  626. data/Packages/mootools-more/Tests/Interactive/Element/Element.Delegation_(focus_blur).yml +2 -0
  627. data/Packages/mootools-more/Tests/Interactive/Element/Element.Delegation_(non_bubbling).html +126 -0
  628. data/Packages/mootools-more/Tests/Interactive/Element/Element.Event.Pseudos.Keys.html +39 -0
  629. data/Packages/mootools-more/Tests/Interactive/Element/Element.Event.Pseudos.Keys.yml +3 -0
  630. data/Packages/mootools-more/Tests/Interactive/Element/Element.Event.Pseudos.html +56 -0
  631. data/Packages/mootools-more/Tests/Interactive/Element/Element.Forms.html +125 -0
  632. data/Packages/mootools-more/Tests/Interactive/Element/Element.Forms.yml +2 -0
  633. data/Packages/mootools-more/Tests/Interactive/Element/Element.Pin.html +46 -0
  634. data/Packages/mootools-more/Tests/Interactive/Element/Element.Pin.yml +2 -0
  635. data/Packages/mootools-more/Tests/Interactive/Element/Element.Position_(basic).html +118 -0
  636. data/Packages/mootools-more/Tests/Interactive/Element/Element.Position_(basic).yml +2 -0
  637. data/Packages/mootools-more/Tests/Interactive/Element/Element.Position_(scrolled).html +47 -0
  638. data/Packages/mootools-more/Tests/Interactive/Element/Element.Position_(scrolled).yml +2 -0
  639. data/Packages/mootools-more/Tests/Interactive/Element/Element.Position_(scrolling).html +46 -0
  640. data/Packages/mootools-more/Tests/Interactive/Element/Element.Position_(scrolling).yml +2 -0
  641. data/Packages/mootools-more/Tests/Interactive/Element/Element.Shortcuts.html +171 -0
  642. data/Packages/mootools-more/Tests/Interactive/Element/Element.Shortcuts.yml +2 -0
  643. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Request.Append.html +29 -0
  644. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Request.Append.yml +3 -0
  645. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Request.html +49 -0
  646. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Request.yml +2 -0
  647. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Extras.html +88 -0
  648. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Extras.yml +3 -0
  649. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Extras_(data-).html +87 -0
  650. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Extras_(data-).yml +3 -0
  651. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline.html +54 -0
  652. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline.yml +3 -0
  653. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(data-).html +54 -0
  654. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(data-).yml +3 -0
  655. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(data-warnings).html +42 -0
  656. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(data-warnings).yml +3 -0
  657. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(onBlur).html +60 -0
  658. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(onBlur).yml +3 -0
  659. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(onChange).html +68 -0
  660. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(onChange).yml +3 -0
  661. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(single_input).html +33 -0
  662. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(single_input).yml +3 -0
  663. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(warnings).html +42 -0
  664. data/Packages/mootools-more/Tests/Interactive/Forms/Form.Validator.Inline_(warnings).yml +3 -0
  665. data/Packages/mootools-more/Tests/Interactive/Forms/OverText.html +116 -0
  666. data/Packages/mootools-more/Tests/Interactive/Forms/OverText.yml +2 -0
  667. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Accordion.html +152 -0
  668. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Accordion.yml +2 -0
  669. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Elements.html +34 -0
  670. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Elements.yml +2 -0
  671. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Move.html +91 -0
  672. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Move.yml +2 -0
  673. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Reveal.html +42 -0
  674. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Reveal.yml +2 -0
  675. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Scroll_(element).html +107 -0
  676. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Scroll_(element).yml +2 -0
  677. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Scroll_(window).html +88 -0
  678. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Scroll_(window).yml +2 -0
  679. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Slide.html +63 -0
  680. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Slide.yml +2 -0
  681. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.SmoothScroll.html +77 -0
  682. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.SmoothScroll.yml +3 -0
  683. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Sort.html +100 -0
  684. data/Packages/mootools-more/Tests/Interactive/Fx/Fx.Sort.yml +2 -0
  685. data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable.Select.html +109 -0
  686. data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable.Select.yml +3 -0
  687. data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable.html +46 -0
  688. data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable.yml +2 -0
  689. data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(empty_and_refill).html +46 -0
  690. data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(empty_and_refill).yml +2 -0
  691. data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(id).html +43 -0
  692. data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(id).yml +2 -0
  693. data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(sortable).html +256 -0
  694. data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(sortable).yml +3 -0
  695. data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(zebra).html +93 -0
  696. data/Packages/mootools-more/Tests/Interactive/Interface/HtmlTable_(zebra).yml +3 -0
  697. data/Packages/mootools-more/Tests/Interactive/Interface/Keyboard_(nested).html +129 -0
  698. data/Packages/mootools-more/Tests/Interactive/Interface/Keyboard_(nested).yml +2 -0
  699. data/Packages/mootools-more/Tests/Interactive/Interface/Keyboard_(single).html +93 -0
  700. data/Packages/mootools-more/Tests/Interactive/Interface/Keyboard_(single).yml +2 -0
  701. data/Packages/mootools-more/Tests/Interactive/Interface/Mask.html +63 -0
  702. data/Packages/mootools-more/Tests/Interactive/Interface/Mask.yml +2 -0
  703. data/Packages/mootools-more/Tests/Interactive/Interface/Scroller.html +40 -0
  704. data/Packages/mootools-more/Tests/Interactive/Interface/Scroller.yml +2 -0
  705. data/Packages/mootools-more/Tests/Interactive/Interface/Scroller_(With_Drag).html +45 -0
  706. data/Packages/mootools-more/Tests/Interactive/Interface/Scroller_(With_Drag).yml +3 -0
  707. data/Packages/mootools-more/Tests/Interactive/Interface/Spinner.html +125 -0
  708. data/Packages/mootools-more/Tests/Interactive/Interface/Spinner.yml +3 -0
  709. data/Packages/mootools-more/Tests/Interactive/Interface/Tips.html +156 -0
  710. data/Packages/mootools-more/Tests/Interactive/Interface/Tips.yml +2 -0
  711. data/Packages/mootools-more/Tests/Interactive/Interface/Tips_(offset).html +64 -0
  712. data/Packages/mootools-more/Tests/Interactive/Interface/Tips_(offset).yml +3 -0
  713. data/Packages/mootools-more/Tests/Interactive/README.md +3 -0
  714. data/Packages/mootools-more/Tests/Interactive/Request/Request.JSONP.html +22 -0
  715. data/Packages/mootools-more/Tests/Interactive/Request/Request.JSONP.yml +2 -0
  716. data/Packages/mootools-more/Tests/Interactive/Request/Request.JSONP_(async).html +33 -0
  717. data/Packages/mootools-more/Tests/Interactive/Request/Request.JSONP_(async).yml +2 -0
  718. data/Packages/mootools-more/Tests/Interactive/Request/Request.JSONP_(timeout).html +46 -0
  719. data/Packages/mootools-more/Tests/Interactive/Request/Request.JSONP_(timeout).yml +2 -0
  720. data/Packages/mootools-more/Tests/Interactive/Request/Request.Periodical.html +38 -0
  721. data/Packages/mootools-more/Tests/Interactive/Request/Request.Periodical.yml +2 -0
  722. data/Packages/mootools-more/Tests/Interactive/Request/Request.Queue.html +42 -0
  723. data/Packages/mootools-more/Tests/Interactive/Request/Request.Queue.yml +2 -0
  724. data/Packages/mootools-more/Tests/Interactive/Utilities/Assets.html +78 -0
  725. data/Packages/mootools-more/Tests/Interactive/Utilities/Assets.yml +2 -0
  726. data/Packages/mootools-more/Tests/Interactive/Utilities/IframeShim.html +36 -0
  727. data/Packages/mootools-more/Tests/Interactive/Utilities/IframeShim.yml +2 -0
  728. data/Packages/mootools-more/Tests/Interactive/_assets/Assets.css.test.css +24 -0
  729. data/Packages/mootools-more/Tests/Interactive/_assets/Assets.js.test.js +3 -0
  730. data/Packages/mootools-more/Tests/Interactive/_assets/bullet_arrow_down.png +0 -0
  731. data/Packages/mootools-more/Tests/Interactive/_assets/bullet_arrow_up.png +0 -0
  732. data/Packages/mootools-more/Tests/Interactive/_assets/cow.png +0 -0
  733. data/Packages/mootools-more/Tests/Interactive/_assets/mask.css +8 -0
  734. data/Packages/mootools-more/Tests/Interactive/_assets/mediaplayer.swf +0 -0
  735. data/Packages/mootools-more/Tests/Interactive/_assets/mootools.png +0 -0
  736. data/Packages/mootools-more/Tests/Interactive/_assets/spinner.css +19 -0
  737. data/Packages/mootools-more/Tests/Interactive/_assets/spinner.gif +0 -0
  738. data/Packages/mootools-more/Tests/Interactive/_assets/video.flv +0 -0
  739. data/Packages/mootools-more/Tests/Specs/1.3/Class/Chain.Wait.js +74 -0
  740. data/Packages/mootools-more/Tests/Specs/1.3/Class/Class.Binds.js +91 -0
  741. data/Packages/mootools-more/Tests/Specs/1.3/Class/Class.Occlude.js +49 -0
  742. data/Packages/mootools-more/Tests/Specs/1.3/Class/Class.Refactor.js +103 -0
  743. data/Packages/mootools-more/Tests/Specs/1.3/Class/Events.Pseudos.js +367 -0
  744. data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Delegation.js +32 -0
  745. data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Event.Pseudos.Keys.js +33 -0
  746. data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Event.Pseudos.js +69 -0
  747. data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Forms.js +155 -0
  748. data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Measure.js +92 -0
  749. data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Pin.js +131 -0
  750. data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Position.js +181 -0
  751. data/Packages/mootools-more/Tests/Specs/1.3/Element/Element.Shortcuts.js +93 -0
  752. data/Packages/mootools-more/Tests/Specs/1.3/Element/Elements.From.js +22 -0
  753. data/Packages/mootools-more/Tests/Specs/1.3/Forms/Form.Validator.js +384 -0
  754. data/Packages/mootools-more/Tests/Specs/1.3/Fx/Fx.Reveal.js +24 -0
  755. data/Packages/mootools-more/Tests/Specs/1.3/Fx/Fx.Slide.js +21 -0
  756. data/Packages/mootools-more/Tests/Specs/1.3/Interface/HtmlTable.Select.js +153 -0
  757. data/Packages/mootools-more/Tests/Specs/1.3/Interface/HtmlTable.Sort.js +181 -0
  758. data/Packages/mootools-more/Tests/Specs/1.3/Interface/HtmlTable.Zebra.js +39 -0
  759. data/Packages/mootools-more/Tests/Specs/1.3/Interface/HtmlTable.js +153 -0
  760. data/Packages/mootools-more/Tests/Specs/1.3/Interface/Keyboard.js +130 -0
  761. data/Packages/mootools-more/Tests/Specs/1.3/Locale/Locale.js +104 -0
  762. data/Packages/mootools-more/Tests/Specs/1.3/Request/Request.JSONP.js +55 -0
  763. data/Packages/mootools-more/Tests/Specs/1.3/Types/Array.Extras.js +119 -0
  764. data/Packages/mootools-more/Tests/Specs/1.3/Types/Date.Extras.js +80 -0
  765. data/Packages/mootools-more/Tests/Specs/1.3/Types/Date.js +709 -0
  766. data/Packages/mootools-more/Tests/Specs/1.3/Types/Hash.Extras.js +21 -0
  767. data/Packages/mootools-more/Tests/Specs/1.3/Types/Hash.js +202 -0
  768. data/Packages/mootools-more/Tests/Specs/1.3/Types/Number.Format.js +90 -0
  769. data/Packages/mootools-more/Tests/Specs/1.3/Types/Object.Extras.js +105 -0
  770. data/Packages/mootools-more/Tests/Specs/1.3/Types/Object.Extras_client.js +17 -0
  771. data/Packages/mootools-more/Tests/Specs/1.3/Types/String.Extras.js +72 -0
  772. data/Packages/mootools-more/Tests/Specs/1.3/Types/String.QueryString.js +63 -0
  773. data/Packages/mootools-more/Tests/Specs/1.3/Types/URI.Relative.js +114 -0
  774. data/Packages/mootools-more/Tests/Specs/1.3/Types/URI.js +123 -0
  775. data/Packages/mootools-more/Tests/Specs/1.3/Utilities/Assets.js +211 -0
  776. data/Packages/mootools-more/Tests/Specs/1.3/Utilities/Color.js +78 -0
  777. data/Packages/mootools-more/Tests/Specs/1.3/Utilities/Group.js +25 -0
  778. data/Packages/mootools-more/Tests/Specs/1.3/Utilities/Hash.Cookie.js +50 -0
  779. data/Packages/mootools-more/Tests/Specs/1.3/Utilities/Table.js +56 -0
  780. data/Packages/mootools-more/Tests/Specs/Configuration.js +245 -0
  781. data/Packages/mootools-more/Tests/Specs/assets/Assets.css.test.css +24 -0
  782. data/Packages/mootools-more/Tests/Specs/assets/Assets.js.test.js +3 -0
  783. data/Packages/mootools-more/Tests/Specs/assets/cow.png +0 -0
  784. data/Packages/mootools-more/Tests/Specs/assets/jsonp.js +8 -0
  785. data/Packages/mootools-more/Tests/Specs/assets/mootools.png +0 -0
  786. data/Packages/mootools-more/Tests/Specs/index.html +26 -0
  787. data/Packages/mootools-more/Tests/Specs/package.yml +47 -0
  788. data/Packages/mootools-more/build +40 -0
  789. data/Packages/mootools-more/package.yml +145 -0
  790. data/Packages/mootools-resource/README.md +60 -0
  791. data/Packages/mootools-resource/Source/Resource.Collection.js +40 -0
  792. data/Packages/mootools-resource/Source/Resource.Model.Actions.js +98 -0
  793. data/Packages/mootools-resource/Source/Resource.Model.js +175 -0
  794. data/Packages/mootools-resource/Source/Resource.Parser.HTML.js +28 -0
  795. data/Packages/mootools-resource/Source/Resource.Parser.JSON.js +35 -0
  796. data/Packages/mootools-resource/Source/Resource.Parser.XML.js +31 -0
  797. data/Packages/mootools-resource/Source/Resource.Parser.js +50 -0
  798. data/Packages/mootools-resource/Source/Resource.js +282 -0
  799. data/Packages/mootools-resource/package.yml +18 -0
  800. data/Packages/mootools-speedups/README.md +10 -0
  801. data/Packages/mootools-speedups/Source/Core/Class.Extras.Speedups.js +14 -0
  802. data/Packages/mootools-speedups/Source/Core/Class.Speedups.js +129 -0
  803. data/Packages/mootools-speedups/Source/Core/Core.Speedups.js +89 -0
  804. data/Packages/mootools-speedups/Source/Types/Object.js +36 -0
  805. data/Packages/mootools-speedups/package.yml +19 -0
  806. data/Packages/mootools-string-inflections/README.md +292 -0
  807. data/Packages/mootools-string-inflections/Source/String.Inflections.js +230 -0
  808. data/Packages/mootools-string-inflections/TODO.md +2 -0
  809. data/Packages/mootools-string-inflections/Tests/index.html +12 -0
  810. data/Packages/mootools-string-inflections/Tests/test.js +95 -0
  811. data/Packages/mootools-string-inflections/package.yml +7 -0
  812. data/Packages/qfocuser/README +63 -0
  813. data/Packages/qfocuser/Source/QFocuser.js +278 -0
  814. data/Packages/qfocuser/package.yml +8 -0
  815. data/Packages/slick/Makefile +19 -0
  816. data/Packages/slick/README.md +127 -0
  817. data/Packages/slick/SlickSpec/Configuration.js +56 -0
  818. data/Packages/slick/SlickSpec/assets/JSSpecHelpers.js +187 -0
  819. data/Packages/slick/SlickSpec/assets/getgetter.js +65 -0
  820. data/Packages/slick/SlickSpec/assets/ie.css +37 -0
  821. data/Packages/slick/SlickSpec/assets/moobugger/bookmarklet.html +46 -0
  822. data/Packages/slick/SlickSpec/assets/moobugger/debugger-iframe.js +386 -0
  823. data/Packages/slick/SlickSpec/assets/moobugger/debugger.css +190 -0
  824. data/Packages/slick/SlickSpec/assets/moobugger/debugger.html +25 -0
  825. data/Packages/slick/SlickSpec/assets/moobugger/debugger.js +284 -0
  826. data/Packages/slick/SlickSpec/assets/moobugger/images/close.png +0 -0
  827. data/Packages/slick/SlickSpec/assets/moobugger/images/error.png +0 -0
  828. data/Packages/slick/SlickSpec/assets/moobugger/images/group-close.png +0 -0
  829. data/Packages/slick/SlickSpec/assets/moobugger/images/group-open.png +0 -0
  830. data/Packages/slick/SlickSpec/assets/moobugger/images/icon.png +0 -0
  831. data/Packages/slick/SlickSpec/assets/moobugger/images/info.png +0 -0
  832. data/Packages/slick/SlickSpec/assets/moobugger/images/lick.png +0 -0
  833. data/Packages/slick/SlickSpec/assets/moobugger/images/max.png +0 -0
  834. data/Packages/slick/SlickSpec/assets/moobugger/images/min.png +0 -0
  835. data/Packages/slick/SlickSpec/assets/moobugger/images/mootools.png +0 -0
  836. data/Packages/slick/SlickSpec/assets/moobugger/images/time.png +0 -0
  837. data/Packages/slick/SlickSpec/assets/moobugger/images/warning.png +0 -0
  838. data/Packages/slick/SlickSpec/assets/moobugger/mootools.js +57 -0
  839. data/Packages/slick/SlickSpec/assets/moobugger/test.html +88 -0
  840. data/Packages/slick/SlickSpec/assets/screen.css +259 -0
  841. data/Packages/slick/SlickSpec/assets/simple_request.js +67 -0
  842. data/Packages/slick/SlickSpec/assets/slickspec.css +366 -0
  843. data/Packages/slick/SlickSpec/bootstrap/moo12.slickspec.js +55 -0
  844. data/Packages/slick/SlickSpec/bootstrap/nwmatcher.slickspec.js +27 -0
  845. data/Packages/slick/SlickSpec/bootstrap/sizzle.slickspec.js +65 -0
  846. data/Packages/slick/SlickSpec/bootstrap/slick.slickspec.js +66 -0
  847. data/Packages/slick/SlickSpec/bootstrap/yui.slickspec.js +36 -0
  848. data/Packages/slick/SlickSpec/index.html +26 -0
  849. data/Packages/slick/SlickSpec/mocks/MooTools_Logo.svg +24 -0
  850. data/Packages/slick/SlickSpec/mocks/html5-shim.html +70 -0
  851. data/Packages/slick/SlickSpec/mocks/query_test-dojo.html +79 -0
  852. data/Packages/slick/SlickSpec/mocks/query_test-google_closure.html +72 -0
  853. data/Packages/slick/SlickSpec/mocks/query_test-jquery.html +213 -0
  854. data/Packages/slick/SlickSpec/mocks/query_test-prototype.html +95 -0
  855. data/Packages/slick/SlickSpec/mocks/query_test-slick.html +20 -0
  856. data/Packages/slick/SlickSpec/mocks/query_test-yui.html +88 -0
  857. data/Packages/slick/SlickSpec/mocks/template-almost.html +2932 -0
  858. data/Packages/slick/SlickSpec/mocks/template-chromeframe.html +2932 -0
  859. data/Packages/slick/SlickSpec/mocks/template-ie7.html +2932 -0
  860. data/Packages/slick/SlickSpec/mocks/template-quirks.html +2932 -0
  861. data/Packages/slick/SlickSpec/mocks/template-standard.html +2932 -0
  862. data/Packages/slick/SlickSpec/mocks/template-transitional.html +2932 -0
  863. data/Packages/slick/SlickSpec/mocks/template.xhtml +2476 -0
  864. data/Packages/slick/SlickSpec/mocks/template.xml +2475 -0
  865. data/Packages/slick/SlickSpec/mocks/xml.xml +21 -0
  866. data/Packages/slick/SlickSpec/select.html +107 -0
  867. data/Packages/slick/SlickSpec/setup.js +93 -0
  868. data/Packages/slick/SlickSpec/slickspec.html +261 -0
  869. data/Packages/slick/SlickSpec/specrunner_browser.html +69 -0
  870. data/Packages/slick/SlickSpec/specs/api.js +167 -0
  871. data/Packages/slick/SlickSpec/specs/browser_bugs.js +269 -0
  872. data/Packages/slick/SlickSpec/specs/dojo.js +260 -0
  873. data/Packages/slick/SlickSpec/specs/engine_bugs.js +388 -0
  874. data/Packages/slick/SlickSpec/specs/google_closure.js +176 -0
  875. data/Packages/slick/SlickSpec/specs/html.js +58 -0
  876. data/Packages/slick/SlickSpec/specs/html5.js +40 -0
  877. data/Packages/slick/SlickSpec/specs/isxml.js +24 -0
  878. data/Packages/slick/SlickSpec/specs/jquery.js +465 -0
  879. data/Packages/slick/SlickSpec/specs/match.js +139 -0
  880. data/Packages/slick/SlickSpec/specs/mock_template.js +360 -0
  881. data/Packages/slick/SlickSpec/specs/parser.js +409 -0
  882. data/Packages/slick/SlickSpec/specs/prototype.js +428 -0
  883. data/Packages/slick/SlickSpec/specs/select_exhaustive.js +84 -0
  884. data/Packages/slick/SlickSpec/specs/select_nth-child.js +64 -0
  885. data/Packages/slick/SlickSpec/specs/syntax.js +45 -0
  886. data/Packages/slick/SlickSpec/specs/unit.js +87 -0
  887. data/Packages/slick/SlickSpec/specs/xml.js +47 -0
  888. data/Packages/slick/SlickSpec/specs/yui.js +510 -0
  889. data/Packages/slick/SlickSpec/user-specs/pseudos.html +45 -0
  890. data/Packages/slick/Source/Slick.Finder.js +1012 -0
  891. data/Packages/slick/Source/Slick.Parser.js +231 -0
  892. data/Packages/slick/Source/slick.js +10 -0
  893. data/Packages/slick/package.json +12 -0
  894. data/Packages/slick/package.yml +19 -0
  895. data/Packages/slick/speed/frameworks/dojo-acme.js +1625 -0
  896. data/Packages/slick/speed/frameworks/dojo.js +16 -0
  897. data/Packages/slick/speed/frameworks/domass.js +1365 -0
  898. data/Packages/slick/speed/frameworks/jquery.js +4376 -0
  899. data/Packages/slick/speed/frameworks/mootools-core-1.3.js +5367 -0
  900. data/Packages/slick/speed/frameworks/mootools-slick.js +626 -0
  901. data/Packages/slick/speed/frameworks/mootools.js +4329 -0
  902. data/Packages/slick/speed/frameworks/native.js +0 -0
  903. data/Packages/slick/speed/frameworks/nwmatcher.js +1264 -0
  904. data/Packages/slick/speed/frameworks/prototype.js +4320 -0
  905. data/Packages/slick/speed/frameworks/sizzle.js +1102 -0
  906. data/Packages/slick/speed/frameworks/slick.js +1099 -0
  907. data/Packages/slick/speed/frameworks/sly.js +857 -0
  908. data/Packages/slick/speed/frameworks/yass.css3.js +490 -0
  909. data/Packages/slick/speed/jslitmus/JSLitmus.js +714 -0
  910. data/Packages/slick/speed/jslitmus/JSLitmusHelpers.js +3 -0
  911. data/Packages/slick/speed/jslitmus/bench_catch.html +49 -0
  912. data/Packages/slick/speed/jslitmus/bench_match.html +214 -0
  913. data/Packages/slick/speed/jslitmus/bench_match.js +98 -0
  914. data/Packages/slick/speed/jslitmus/bench_parse.html +161 -0
  915. data/Packages/slick/speed/jslitmus/bench_parse.js +68 -0
  916. data/Packages/slick/speed/jslitmus/bench_select.html +198 -0
  917. data/Packages/slick/speed/jslitmus/bench_select.js +106 -0
  918. data/Packages/slick/speed/jslitmus/bench_select2.js +106 -0
  919. data/Packages/slick/speed/jslitmus/bench_uidOf.html +121 -0
  920. data/Packages/slick/speed/jslitmus/closedNodes.html +92 -0
  921. data/Packages/slick/speed/jslitmus/demo.html +97 -0
  922. data/Packages/slick/speed/jslitmus/get_attribute.html +75 -0
  923. data/Packages/slick/speed/jslitmus/label_break-vs-fn_return.html +65 -0
  924. data/Packages/slick/speed/jslitmus/label_string-vs-var.html +94 -0
  925. data/Packages/slick/speed/jslitmus/method_vs_propfn.html +109 -0
  926. data/Packages/slick/speed/jslitmus/nodeListtoArray.html +89 -0
  927. data/Packages/slick/speed/jslitmus/parse_vs_clone.html +41 -0
  928. data/Packages/slick/speed/jslitmus/results.html +68 -0
  929. data/Packages/slick/speed/jslitmus/select.html +25 -0
  930. data/Packages/slick/speed/jslitmus/selectHTML.html +206 -0
  931. data/Packages/slick/speed/jslitmus/selectXML.html +140 -0
  932. data/Packages/slick/speed/jslitmus/select_class-doctypes.html +150 -0
  933. data/Packages/slick/speed/jslitmus/select_class.html +92 -0
  934. data/Packages/slick/speed/jslitmus/select_id.html +133 -0
  935. data/Packages/slick/speed/slickspeed/config.ini +54 -0
  936. data/Packages/slick/speed/slickspeed/footer.html +3 -0
  937. data/Packages/slick/speed/slickspeed/header.php +28 -0
  938. data/Packages/slick/speed/slickspeed/index.php +36 -0
  939. data/Packages/slick/speed/slickspeed/instructions.txt +4 -0
  940. data/Packages/slick/speed/slickspeed/logo.png +0 -0
  941. data/Packages/slick/speed/slickspeed/selectors.list.crazy.css +319 -0
  942. data/Packages/slick/speed/slickspeed/selectors.list.css +40 -0
  943. data/Packages/slick/speed/slickspeed/selectors.list.extended.css +81 -0
  944. data/Packages/slick/speed/slickspeed/selectors.list.mine.css +54 -0
  945. data/Packages/slick/speed/slickspeed/selectors.list.org.css +37 -0
  946. data/Packages/slick/speed/slickspeed/selectors.list.simple.css +105 -0
  947. data/Packages/slick/speed/slickspeed/selectors.list.sly.css +54 -0
  948. data/Packages/slick/speed/slickspeed/selectors.list.yahoo.css +33 -0
  949. data/Packages/slick/speed/slickspeed/style.css +197 -0
  950. data/Packages/slick/speed/slickspeed/system/index.php +172 -0
  951. data/Packages/slick/speed/slickspeed/system/slickspeed.js +162 -0
  952. data/Packages/slick/speed/slickspeed/system/template.php +154 -0
  953. data/Packages/slick/speed/slickspeed/system_slackerspeed/index.php +295 -0
  954. data/Packages/slick/speed/slickspeed/system_slackerspeed/slickspeed.js +147 -0
  955. data/Packages/slick/speed/slickspeed/system_slackerspeed/template.php +54 -0
  956. data/Packages/slick/speed/slickspeed/template.html +2921 -0
  957. data/Packages/slick/speed/slickspeed/template.yahoo.html +1 -0
  958. data/Packages/slick/speed/speedtests/deepmatch/index.html +294 -0
  959. data/Packages/slick/speed/speedtests/index.html +14 -0
  960. data/Packages/slick/speed/speedtests/setdocument/index.html +44 -0
  961. data/Packages/slick/speed/speedtests/setdocument/slow-document.js +69 -0
  962. data/Packages/slick/speed/subtleslickspeed/README.mdown +6 -0
  963. data/Packages/slick/speed/subtleslickspeed/lib/ie.css +26 -0
  964. data/Packages/slick/speed/subtleslickspeed/lib/jslib.js +389 -0
  965. data/Packages/slick/speed/subtleslickspeed/lib/own_tests/report_test.html +64 -0
  966. data/Packages/slick/speed/subtleslickspeed/lib/print.css +30 -0
  967. data/Packages/slick/speed/subtleslickspeed/lib/screen.css +251 -0
  968. data/Packages/slick/speed/subtleslickspeed/lib/subtlesandbox.js +174 -0
  969. data/Packages/slick/speed/subtleslickspeed/lib/subtlesandbox_strict.html +18 -0
  970. data/Packages/slick/speed/subtleslickspeed/lib/subtleslickspeed.js +290 -0
  971. data/Packages/slick/speed/subtleslickspeed/lib/subtleslickspeed.reports.js +87 -0
  972. data/Packages/slick/speed/subtleslickspeed/lib/subtleslickspeed.reports.table.js +353 -0
  973. data/Packages/slick/speed/subtleslickspeed/lib/table_report.css +241 -0
  974. data/Packages/slick/speed/subtleslickspeed/selectors.html +156 -0
  975. data/Packages/slick/speed/subtleslickspeed/string_replace.html +2998 -0
  976. data/Packages/slick/speed/subtleslickspeed/tests/selectors/template.html +14 -0
  977. data/Packages/slick/speed/subtleslickspeed/tests/selectors/template.js +2924 -0
  978. data/Packages/slick/speed/subtleslickspeed/tests/selectors/tests.js +177 -0
  979. data/lib/lsd/helper.rb +12 -0
  980. data/lib/lsd/packages.rb +25 -0
  981. data/lib/lsd/railtie.rb +33 -0
  982. data/lib/lsd/source.rb +37 -0
  983. data/lib/lsd/widget_generator.rb +24 -0
  984. data/lib/lsd.rake +17 -0
  985. data/lib/lsd.rb +20 -0
  986. data/lib/templates/Application.js +37 -0
  987. data/lib/templates/Widget.js +25 -0
  988. data/lib/templates/app_name.js +18 -0
  989. data/lib/templates/new_widget.js +25 -0
  990. data/lib/templates/package.yml +18 -0
  991. metadata +1053 -0
@@ -0,0 +1,1924 @@
1
+ Type: Window {#Window}
2
+ ======================
3
+
4
+ The following functions are treated as Window methods.
5
+
6
+ Function: document.id {#Window:document-id}
7
+ -------------------------------------------
8
+
9
+ The document.id function has a dual purpose: Getting the element by its id, and making an element in Internet Explorer "grab" all the [Element][] methods.
10
+
11
+ ### Syntax:
12
+
13
+ var myElement = document.id(el);
14
+
15
+ ### Arguments:
16
+
17
+ 1. el - The Element to be extended. Can be one of the following types:
18
+ * (*element*) The element will be extended if it is not already.
19
+ * (*string*) A string containing the id of the DOM element desired.
20
+ * (*object*) If the object has a toElement method, toElement will be called to get the Element.
21
+
22
+ ### Returns:
23
+
24
+ * (*element*) A DOM element.
25
+ * (*null*) Null if no matching id was found or if toElement did not return an element.
26
+
27
+ ### Examples:
28
+
29
+ #### Get a DOM Element by ID:
30
+
31
+ var myElement = document.id('myElement');
32
+
33
+ #### Get a DOM Element by reference:
34
+
35
+ var div = document.getElementById('myElement');
36
+ div = document.id(div); // the element with all the Element methods applied.
37
+
38
+ ### Notes:
39
+
40
+ - This method is useful when it's unclear if working with an actual element or an id. It also serves as a shorthand for document.getElementById().
41
+ - In Internet Explorer, the [Element][] is extended the first time document.id is called on it, and all the [Element][] Methods become available.
42
+ - Browsers with native HTMLElement support, such as Safari, Firefox, and Opera, apply all the [Element][] Methods to every DOM element automatically.
43
+ - Because MooTools detects if an element needs to be extended or not, this function may be called on the same Element many times with no ill effects.
44
+
45
+
46
+ Function: $ {#Window:dollar}
47
+ ----------------------------
48
+
49
+ The dollar function is an alias for [document:id][] if the $ variable is not set already.
50
+ However it is not recommended to use more frameworks, the $ variable can be set by another framework or script. MooTools will detect this and determine if it will set the $ function so it will not be overwritten.
51
+
52
+ ### Examples:
53
+
54
+ var myElement = $('myElement');
55
+ var myElement2 = document.id('myElement');
56
+
57
+ myElement == myElement2; // returns true
58
+
59
+
60
+ (function($){
61
+
62
+ // Now you can use $ safely in this closure
63
+
64
+ })(document.id)
65
+
66
+
67
+ ### See Also:
68
+ - MooTools Blogpost: [The Dollar Save Mode][]
69
+
70
+
71
+ Function: $$ {#Window:dollars}
72
+ ------------------------------
73
+
74
+ Selects and extends DOM elements. Return an Elements instance.
75
+ The Element instance returned is an array-like object, supporting every [Array][] method and every [Element][] method.
76
+
77
+ ### Syntax:
78
+
79
+ var myElements = $$(argument);
80
+
81
+ ### Arguments:
82
+
83
+ * selector - (*string*) A CSS selector
84
+ * elements - (*elements*), (*collection*) or (*array*) An enumerable list of elements
85
+ * element, element - (*element*) any number of elements as arguments
86
+
87
+ ### Returns:
88
+
89
+ * (*elements*) - An array-like Elements collection of all the DOM elements matched, extended with [document:id][].
90
+
91
+ ### Examples:
92
+
93
+ #### Get Elements by Their Tag Names:
94
+
95
+ $$('a'); // returns all anchor elements in the page.
96
+
97
+ #### Get an Elements instance by passing multiple elements:
98
+
99
+ $$(element1, element2, element3); // returns an Elements instance containing these 3 elements.
100
+
101
+ #### Convert any array or collection of elements to an Elements instance:
102
+
103
+ $$([element1, element2, element3]); // returns an Elements instance containing these 3 elements.
104
+ $$(document.getElementsByTagName('a')); // returns an Elements instance containing the result of the getElementsByTagName call.
105
+
106
+ #### Using CSS Selectors:
107
+
108
+ $$('#myElement'); // returns an Elements instance containing only the element with the id 'myElement'.
109
+ $$('#myElement a.myClass'); // returns an Elements instance of all anchor tags with the class 'myClass' within the DOM element with id 'myElement'.
110
+ $$('a, b'); // returns an array of all anchor and bold elements in the page.
111
+
112
+ ### Notes:
113
+
114
+ - Since MooTools 1.3 this function does not accept multiple collections or multiple strings as arguments.
115
+ - If an expression doesn't find any elements, an empty Elements instance will be returned.
116
+ - The return type of element methods run through [$$][] is always an Elements instance, regardless of the amount of results.
117
+ - Default Selectors supported are the same as you can find on [W3C CSS3 selectors](http://www.w3.org/TR/css3-selectors/#selectors).
118
+
119
+
120
+ Type: Element {#Element}
121
+ ========================
122
+
123
+ Custom Type to allow all of its methods to be used with any extended DOM Element.
124
+
125
+
126
+
127
+ Element Method: constructor {#Element:constructor}
128
+ --------------------------------------------------
129
+
130
+ Creates a new Element of the type passed in.
131
+
132
+ ### Syntax:
133
+
134
+ var myEl = new Element(element[, properties]);
135
+
136
+ ### Arguments:
137
+
138
+ 1. element - (*mixed*) The tag name for the Element to be created or an actual DOM element or a CSS selector.
139
+ 2. properties - (*object*, optional) Calls the Single Argument version of [Element:set][] with the properties object passed in.
140
+
141
+ ### Returns:
142
+
143
+ * (*element*) A new MooTools extended HTML Element.
144
+
145
+ ### Examples:
146
+
147
+ // Creating an new anchor with an Object
148
+ var myAnchor = new Element('a', {
149
+ href: 'http://mootools.net',
150
+ 'class': 'myClass',
151
+ html: 'Click me!',
152
+ styles: {
153
+ display: 'block',
154
+ border: '1px solid black'
155
+ },
156
+ events: {
157
+ click: function(){
158
+ alert('clicked');
159
+ },
160
+ mouseover: function(){
161
+ alert('mouseovered');
162
+ }
163
+ }
164
+ });
165
+
166
+ // Using Selectors
167
+ var myNewElement = new Element('a.myClass');
168
+
169
+ ### Note:
170
+
171
+ Because the element name is parsed as a CSS selector, colons in namespaced tags have to be escaped. So `new Element('fb\:name)` becomes `<fb:name>`.
172
+
173
+ ### See Also:
174
+
175
+ - [$][], [Element:set][]
176
+
177
+
178
+
179
+ Element Method: getElement {#Element:getElement}
180
+ ------------------------------------------------
181
+
182
+ Gets the first descendant element whose tag name matches the tag provided. CSS selectors may also be passed.
183
+
184
+ ### Syntax:
185
+
186
+ var myElement = myElement.getElement(tag);
187
+
188
+ ### Arguments:
189
+
190
+ 1. tag - (*string*) Tag name of the element to find or a CSS Selector.
191
+
192
+ ### Returns:
193
+
194
+ * (*mixed*) If a match is found, the Element will be returned. Otherwise, returns null.
195
+
196
+ ### Examples:
197
+
198
+ var firstDiv = $(document.body).getElement('div');
199
+
200
+ ### Notes:
201
+
202
+ - This method is also available for Document instances.
203
+ - Default Selectors supported are the same as you can find on [W3C CSS3 selectors](http://www.w3.org/TR/css3-selectors/#selectors).
204
+
205
+
206
+
207
+ Element Method: getElements {#Element:getElements}
208
+ --------------------------------------------------
209
+
210
+ Collects all decedent elements whose tag name matches the tag provided. CSS selectors may also be passed.
211
+
212
+ ### Syntax:
213
+
214
+ var myElements = myElement.getElements(tag);
215
+
216
+ ### Arguments:
217
+
218
+ 1. tag - (*string*) String of the tag to match or a CSS Selector.
219
+
220
+ ### Returns:
221
+
222
+ * (*array*) An [Elements][] array of all matched Elements.
223
+
224
+ ### Examples:
225
+
226
+ var allAnchors = $(document.body).getElements('a');
227
+
228
+ ### Notes:
229
+
230
+ - This method is also available for Document instances.
231
+ - Default Selectors supported are the same as you can find on [W3C CSS3 selectors](http://www.w3.org/TR/css3-selectors/#selectors).
232
+
233
+
234
+
235
+ Element Method: getElementById {#Element:getElementById}
236
+ --------------------------------------------------------
237
+
238
+ Gets the element with the specified id found inside the current Element.
239
+
240
+ ### Syntax:
241
+
242
+ var myElement = anElement.getElementById(id);
243
+
244
+ ### Arguments:
245
+
246
+ 1. id - (*string*) The ID of the Element to find.
247
+
248
+ ### Returns:
249
+
250
+ * (*mixed*) If a match is found, returns that Element. Otherwise, returns null.
251
+
252
+ ### Examples:
253
+
254
+ var myChild = $('myParent').getElementById('myChild');
255
+
256
+ ### Notes:
257
+
258
+ - This method is not provided for Document instances as document.getElementById is provided natively.
259
+
260
+
261
+
262
+ Element Method: set {#Element:set}
263
+ ----------------------------
264
+
265
+ This is a "dynamic arguments" method. Properties passed in can be any of the 'set' properties in the [Element.Properties][] Object.
266
+
267
+ ### Syntax:
268
+
269
+ myElement.set(arguments);
270
+
271
+ ### Arguments:
272
+
273
+ - Two Arguments (property, value)
274
+ 1. property - (*string*) The string key from the [Element.Properties][] Object representing the property to set.
275
+ 2. value - (*mixed*) The value to set for the specified property.
276
+ - One Argument (properties)
277
+ 1. properties - (*object*) Object with its keys/value pairs representing the properties and values to set for the Element (as described below).
278
+
279
+ ### Returns:
280
+
281
+ * (*element*) This Element.
282
+
283
+ ### Examples:
284
+
285
+ #### With Property and Value:
286
+
287
+ $('myElement').set('text', 'text goes here');
288
+ $('myElement').set('class', 'active');
289
+ // the 'styles' property passes the object to Element:setStyles.
290
+ var body = $(document.body).set('styles', {
291
+ font: '12px Arial',
292
+ color: 'blue'
293
+ });
294
+
295
+ #### With an Object:
296
+
297
+ var myElement = $('myElement').set({
298
+ // the 'styles' property passes the object to Element:setStyles.
299
+ styles: {
300
+ font: '12px Arial',
301
+ color: 'blue',
302
+ border: '1px solid #f00'
303
+ },
304
+ // the 'events' property passes the object to Element:addEvents.
305
+ events: {
306
+ click: function(){ alert('click'); },
307
+ mouseover: function(){ this.addClass('over') }
308
+ },
309
+ //Any other property uses Element:setProperty.
310
+ id: 'documentBody'
311
+ });
312
+
313
+ ### Notes:
314
+
315
+ - All the property arguments are passed to the corresponding method of the [Element.Properties][] Object.
316
+ - If no matching property is found in [Element.Properties][], it falls back to [Element:setProperty][].
317
+ - Whenever using [Element:setProperty][] to set an attribute, pass in the lowercase, simplified form of the property. For example:
318
+ - use 'for', not 'htmlFor',
319
+ - use 'class', not 'className'
320
+ - use 'frameborder', not 'frameBorder'
321
+ - etc.
322
+
323
+
324
+ ### See Also:
325
+
326
+ - [Element][], [Element.Properties][], [Element:setProperty][], [Element:addEvents][], [Element:setStyles][]
327
+
328
+
329
+
330
+ Element Method: get {#Element:get}
331
+ ----------------------------------
332
+
333
+ This is a "dynamic arguments" method. Properties passed in can be any of the 'get' properties in the [Element.Properties][] Object.
334
+
335
+ ### Syntax:
336
+
337
+ myElement.get(property);
338
+
339
+ ### Arguments:
340
+
341
+ 1. property - (*string*) The string key from the [Element.Properties][] Object representing the property to get.
342
+
343
+ ### Returns:
344
+
345
+ * (*mixed*) The result of calling the corresponding 'get' function in the [Element.Properties][] Object.
346
+
347
+ ### Examples:
348
+
349
+ #### Using Custom Getters:
350
+
351
+ var tag = $('myDiv').get('tag'); // returns "div".
352
+
353
+ #### Fallback to Element Attributes:
354
+
355
+ var id = $('myDiv').get('id'); // returns "myDiv".
356
+ var value = $('myInput').get('value'); // returns the myInput element's value.
357
+
358
+ ### Notes:
359
+
360
+ - If the corresponding accessor doesn't exist in the [Element.Properties][] Object, the result of [Element:getProperty][] on the property passed in is returned.
361
+
362
+ ### See Also:
363
+
364
+ - [Element][], [Element.Properties][], [Element:getProperty][]
365
+
366
+
367
+
368
+ Element Method: erase {#Element:erase}
369
+ --------------------------------------
370
+
371
+ This is a "dynamic arguments" method. Properties passed in can be any of the 'erase' properties in the [Element.Properties][] Object.
372
+
373
+ ### Syntax:
374
+
375
+ myElement.erase(property);
376
+
377
+ ### Arguments:
378
+
379
+ 1. property - (*string*) The string key from the [Element.Properties][] Object representing the property to erase.
380
+
381
+ ### Returns:
382
+
383
+ * (*mixed*) The result of calling the corresponding 'erase' function in the [Element.Properties][] Object.
384
+
385
+ ### Examples:
386
+
387
+ $('myDiv').erase('id'); //Removes the id from myDiv.
388
+ $('myDiv').erase('class'); //myDiv element no longer has any class names set.
389
+
390
+ ### Note:
391
+
392
+ - If the corresponding eraser doesn't exist in the [Element.Properties][] Object, [Element:removeProperty][] is called with the property passed in.
393
+
394
+ ### See Also:
395
+
396
+ - [Element][], [Element.Properties][], [Element:removeProperty][]
397
+
398
+
399
+
400
+ Element Method: match {#Element:match}
401
+ --------------------------------------
402
+
403
+ Tests this Element to see if it matches the argument passed in.
404
+
405
+ ### Syntax:
406
+
407
+ myElement.match(match);
408
+
409
+ ### Arguments:
410
+
411
+ 1. match - can be a string or element
412
+ - (*string*) The tag name to test against this element. Any single CSS selectors may also be passed.
413
+ - (*element*) An element to match; returns true if this is the actual element passed in.
414
+
415
+ ### Returns:
416
+
417
+ * (*boolean*) If the element matched, returns true. Otherwise, returns false.
418
+
419
+ ### Examples:
420
+
421
+ #### Using a Tag Name:
422
+
423
+ // returns true if #myDiv is a div.
424
+ $('myDiv').match('div');
425
+
426
+ #### Using a CSS Selector:
427
+
428
+ // returns true if #myDiv has the class foo and is named "bar"
429
+ $('myDiv').match('.foo[name=bar]');
430
+
431
+ #### Using an Element:
432
+
433
+ var el = $('myDiv');
434
+ $('myDiv').match(el); // returns true
435
+ $('otherElement').match(el); // returns false
436
+
437
+
438
+
439
+ Element Method: contains {#Element:contains}
440
+ --------------------------------------------
441
+
442
+ Checks all descendants of this Element for a match.
443
+
444
+
445
+ ### Syntax:
446
+
447
+ var result = myElement.contains(el);
448
+
449
+ ### Arguments:
450
+
451
+ 1. el - (*mixed*) Can be an Element reference or string id.
452
+
453
+ ### Returns:
454
+
455
+ * (*boolean*) Returns true if the element contains passed in Element is a child, otherwise false.
456
+
457
+ ### Examples:
458
+
459
+ ##### HTML
460
+
461
+ <div id="Darth_Vader">
462
+ <div id="Luke"></div>
463
+ </div>
464
+
465
+ ##### JavaScript
466
+
467
+ if ($('Darth_Vader').contains('Luke')) alert('Luke, I am your father.'); //tan tan tannn...
468
+
469
+
470
+
471
+ Element Method: inject {#Element:inject}
472
+ ----------------------------------------
473
+
474
+ Injects, or inserts, the Element at a particular place relative to the Element's children (specified by the second the argument).
475
+
476
+ ### Syntax:
477
+
478
+ myElement.inject(el[, where]);
479
+
480
+ ### Arguments:
481
+
482
+ 1. el - (*mixed*) el can be the id of an element or an element.
483
+ 2. where - (*string*, optional: defaults to 'bottom') The place to inject this Element. Can be 'top', 'bottom', 'after', or 'before'.
484
+
485
+ ### Returns:
486
+
487
+ * (*element*) This Element.
488
+
489
+ ### Examples:
490
+
491
+ ##### JavaScript
492
+
493
+ var myFirstElement = new Element('div', {id: 'myFirstElement'});
494
+ var mySecondElement = new Element('div', {id: 'mySecondElement'});
495
+ var myThirdElement = new Element('div', {id: 'myThirdElement'});
496
+
497
+ ##### Resulting HTML
498
+
499
+ <div id="myFirstElement"></div>
500
+ <div id="mySecondElement"></div>
501
+ <div id="myThirdElement"></div>
502
+
503
+ #### Inject to the bottom:
504
+
505
+ ##### JavaScript
506
+
507
+ myFirstElement.inject(mySecondElement);
508
+
509
+ ##### Resulting HTML
510
+
511
+ <div id="mySecondElement">
512
+ <div id="myFirstElement"></div>
513
+ </div>
514
+
515
+ #### Inject to the top:
516
+
517
+ ##### JavaScript
518
+
519
+ myThirdElement.inject(mySecondElement, 'top');
520
+
521
+ ##### Resulting HTML
522
+
523
+ <div id="mySecondElement">
524
+ <div id="myThirdElement"></div>
525
+ <div id="myFirstElement"></div>
526
+ </div>
527
+
528
+ #### Inject before:
529
+
530
+ ##### JavaScript
531
+
532
+ myFirstElement.inject(mySecondElement, 'before');
533
+
534
+ ##### Resulting HTML
535
+
536
+ <div id="myFirstElement"></div>
537
+ <div id="mySecondElement"></div>
538
+
539
+ #### Inject After:
540
+
541
+ ##### JavaScript
542
+
543
+ myFirstElement.inject(mySecondElement, 'after');
544
+
545
+ ##### Resulting HTML
546
+
547
+ <div id="mySecondElement"></div>
548
+ <div id="myFirstElement"></div>
549
+
550
+ ### See Also:
551
+
552
+ [Element:adopt](#Element:adopt), [Element:grab](#Element:grab), [Element:wraps](#Element:wraps)
553
+
554
+
555
+
556
+ Element Method: grab {#Element:grab}
557
+ ------------------------------------
558
+
559
+ Works as [Element:inject](#Element:inject), but in reverse.
560
+
561
+ Appends the Element at a particular place relative to the Element's children (specified by the where parameter).
562
+
563
+ ### Syntax:
564
+
565
+ myElement.grab(el[, where]);
566
+
567
+ ### Arguments:
568
+
569
+ 1. el - (*mixed*) el can be the id of an element or an Element.
570
+ 2. where - (*string*, optional: default 'bottom') The place to append this Element. Can be 'top', 'bottom', 'before' or 'after'.
571
+
572
+ ### Returns:
573
+
574
+ * (*element*) This Element.
575
+
576
+ ### Examples:
577
+
578
+ ##### HTML
579
+
580
+ <div id="first">
581
+ <div id="child"></div>
582
+ </div>
583
+
584
+ ##### JavaScript
585
+
586
+ var mySecondElement = new Element('div#second');
587
+ $('first').grab(mySecondElement);
588
+
589
+ ##### Resulting HTML
590
+
591
+ <div id="first">
592
+ <div id="child"></div>
593
+ <div id="second"></div>
594
+ </div>
595
+
596
+ ##### JavaScript
597
+
598
+ var mySecondElement = new Element('div#second');
599
+ myFirstElement.grab(mySecondElement, 'top');
600
+
601
+ ##### Resulting HTML
602
+
603
+ <div id="first">
604
+ <div id="second"></div>
605
+ <div id="child"></div>
606
+ </div>
607
+
608
+ ### See Also:
609
+
610
+ [Element:adopt](#Element:adopt), [Element:inject](#Element:inject), [Element:wraps](#Element:wraps)
611
+
612
+
613
+
614
+ Element Method: adopt {#Element:adopt}
615
+ --------------------------------------
616
+
617
+ Works like [Element:grab](#Element:grab), but allows multiple elements to be adopted and only appended at the bottom.
618
+
619
+ Inserts the passed element(s) inside the Element (which will then become the parent element).
620
+
621
+ ### Syntax:
622
+
623
+ myParent.adopt(el[, others]);
624
+
625
+ ### Arguments:
626
+
627
+ 1. el - (*mixed*) The id of an element, an Element, or an array of elements.
628
+ 2. others - (*mixed*, optional) One or more additional Elements separated by a comma or as an array.
629
+
630
+ ### Returns:
631
+
632
+ * (*element*) This Element.
633
+
634
+ ### Examples:
635
+
636
+ ##### JavaScript
637
+
638
+ var myFirstElement = new Element('div#first');
639
+ var mySecondElement = new Element('p#second');
640
+ var myThirdElement = new Element('ul#third');
641
+ var myFourthElement = new Element('a#fourth');
642
+
643
+ var myParentElement = new Element('div#parent');
644
+
645
+ myFirstElement.adopt(mySecondElement);
646
+ mySecondElement.adopt('third', myFourthElement);
647
+
648
+ myParent3.adopt([myFirstElement, new Element('span#another')]);
649
+
650
+ ##### Resulting HTML
651
+
652
+ <div id="parent">
653
+ <p id="second">
654
+ <ul id="third"></ul>
655
+ <a id="fourth"></a>
656
+ </p>
657
+ <span id="another"></span>
658
+ </div>
659
+
660
+ ### See Also:
661
+
662
+ [Element:grab](#Element:grab), [Element:inject](#Element:inject), [Element:wraps](#Element:wraps)
663
+
664
+
665
+
666
+ Element Method: wraps {#Element:wraps}
667
+ --------------------------------------
668
+
669
+ Works like [Element:grab](#Element:grab), but replaces the element in its place, and then appends the replaced element in the location specified inside the this element.
670
+
671
+ ### Syntax:
672
+
673
+ myParent.wraps(el[, where]);
674
+
675
+ ### Arguments:
676
+
677
+ 1. el - (*mixed*) The id of an element or an Element.
678
+ 2. where - (*string*, optional: default 'bottom') The place to insert the passed in element. Can be 'top' or 'bottom'.
679
+
680
+ ### Returns:
681
+
682
+ * (*element*) This Element.
683
+
684
+ ### Examples:
685
+
686
+ ##### HTML
687
+
688
+ <div id="first"></div>
689
+
690
+ ##### JavaScript
691
+
692
+ var mySecondElement = new Element('div#second').wraps('first');
693
+
694
+ ##### Resulting HTML
695
+
696
+ <div id="second">
697
+ <div id="first"></div>
698
+ </div>
699
+
700
+ ##### HTML
701
+
702
+ <div id="first"></div>
703
+ <div id="second">
704
+ <div id="child"></div>
705
+ </div>
706
+
707
+ ##### JavaScript
708
+
709
+ $('second').wraps('first');
710
+
711
+ ##### Resulting HTML
712
+
713
+ <div id="second">
714
+ <div id="child"></div>
715
+ <div id="first"></div>
716
+ </div>
717
+
718
+ ##### JavaScript
719
+
720
+ $('second').wraps('first', 'top');
721
+
722
+ ##### Resulting HTML
723
+
724
+ <div id="second">
725
+ <div id="first"></div>
726
+ <div id="child"></div>
727
+ </div>
728
+
729
+ Element Method: appendText {#Element:appendText}
730
+ ------------------------------------------------
731
+
732
+ Works like [Element:grab](#Element:grab), but instead of accepting an id or an element, it only accepts text.
733
+ A text node will be created inside this Element, in either the top or bottom position.
734
+
735
+ ### Syntax:
736
+
737
+ myElement.appendText(text[, where]);
738
+
739
+ ### Arguments:
740
+
741
+ 1. text - (*string*) The text to append.
742
+ 1. where - (*string*, optional: default 'bottom') The position to inject the text to. Values accepted are 'top', 'bottom', 'before' and 'after'.
743
+
744
+ ### Returns:
745
+
746
+ * (*element*) The current Element instance.
747
+
748
+ ### Examples:
749
+
750
+ ##### HTML
751
+
752
+ <div id="myElement">Hey.</div>
753
+
754
+ ##### JavaScript
755
+
756
+ $('myElement').appendText(' Howdy.');
757
+
758
+ ##### Resulting HTML
759
+
760
+ <div id="myElement">Hey. Howdy.</div>
761
+
762
+
763
+
764
+ Element Method: dispose {#Element:dispose}
765
+ ------------------------------------------
766
+
767
+ Removes the Element from the DOM.
768
+
769
+
770
+ ### Syntax:
771
+
772
+ var removedElement = myElement.dispose();
773
+
774
+ ### Returns:
775
+
776
+ * (*element*) This Element. Useful to always grab the return from this function, as the element could be [injected](#Element:inject) back.
777
+
778
+ ### Examples:
779
+
780
+ ##### HTML
781
+
782
+ <div id="myElement"></div>
783
+ <div id="mySecondElement"></div>
784
+
785
+ ##### JavaScript
786
+
787
+ $('myElement').dispose();
788
+
789
+ ##### Resulting HTML
790
+
791
+ <div id="mySecondElement"></div>
792
+
793
+ ### See Also:
794
+
795
+ - [MDC Element:removeChild][]
796
+
797
+
798
+
799
+ Element Method: clone {#Element:clone}
800
+ --------------------------------------
801
+
802
+ Clones the Element and returns the cloned one.
803
+
804
+
805
+ ### Syntax:
806
+
807
+ var copy = myElement.clone([contents, keepid]);
808
+
809
+ ### Arguments:
810
+
811
+ 1. contents - (*boolean*, optional: defaults to true) When set to false the Element's contents are not cloned.
812
+ 2. keepid - (*boolean*, optional: defaults to false) When true the cloned Element keeps the id attribute, if present. Same goes for any of the cloned childNodes.
813
+
814
+
815
+ ### Returns:
816
+
817
+ * (*element*) The cloned Element.
818
+
819
+ ### Examples:
820
+
821
+ ##### HTML
822
+
823
+ <div id="myElement"></div>
824
+
825
+ ##### JavaScript
826
+
827
+ // clones the Element and appends the clone after the Element.
828
+ var clone = $('myElement').clone().inject('myElement','after');
829
+
830
+ ##### Resulting HTML
831
+
832
+ <div id="myElement">ciao</div>
833
+ <div>ciao</div>
834
+
835
+ ### Note:
836
+
837
+ - The returned Element does not have attached events. To clone the events use [Element:cloneEvents](/Element/Element.Event#Element:cloneEvents).
838
+ - Values stored in Element.Storage are not cloned.
839
+ - The clone element and its children are stripped of ids, unless otherwise specified by the keepid parameter.
840
+
841
+ ### See Also:
842
+
843
+ - [Element:cloneEvents](/Element/Element.Event#Element:cloneEvents).
844
+
845
+
846
+
847
+ Element Method: replaces {#Element:replaces}
848
+ --------------------------------------------------
849
+
850
+ Replaces the passed Element with Element.
851
+
852
+ ### Syntax:
853
+
854
+ var element = myElement.replaces(el);
855
+
856
+ ### Arguments:
857
+
858
+ 1. el - (*mixed*) A string id representing the Element to be replaced, or an Element reference.
859
+
860
+ ### Returns:
861
+
862
+ * (*element*) This Element.
863
+
864
+ ### Examples:
865
+
866
+ $('myNewElement').replaces($('myOldElement'));
867
+ //$('myOldElement') is gone, and $('myNewElement') is in its place.
868
+
869
+ ### See Also:
870
+
871
+ - [MDC Element:replaceChild][]
872
+
873
+
874
+
875
+ Element Method: hasClass {#Element:hasClass}
876
+ --------------------------------------------
877
+
878
+ Tests the Element to see if it has the passed in className.
879
+
880
+ ### Syntax:
881
+
882
+ var result = myElement.hasClass(className);
883
+
884
+ ### Arguments:
885
+
886
+ 1. className - (*string*) The class name to test.
887
+
888
+ ### Returns:
889
+
890
+ * (*boolean*) Returns true if the Element has the class, otherwise false.
891
+
892
+ ### Examples:
893
+
894
+ ##### HTML
895
+
896
+ <div id="myElement" class="testClass"></div>
897
+
898
+ ##### JavaScript
899
+
900
+ $('myElement').hasClass('testClass'); // returns true
901
+
902
+
903
+
904
+ Element Method: addClass {#Element:addClass}
905
+ --------------------------------------------
906
+
907
+ Adds the passed in class to the Element, if the Element doesnt already have it.
908
+
909
+ ### Syntax:
910
+
911
+ myElement.addClass(className);
912
+
913
+ ### Arguments:
914
+
915
+ 1. className - (*string*) The class name to add.
916
+
917
+ ### Returns:
918
+
919
+ * (*element*) This Element.
920
+
921
+ ### Examples:
922
+
923
+ ##### HTML
924
+
925
+ <div id="myElement" class="testClass"></div>
926
+
927
+ ##### JavaScript
928
+
929
+ $('myElement').addClass('newClass');
930
+
931
+ ##### Resulting HTML
932
+
933
+ <div id="myElement" class="testClass newClass"></div>
934
+
935
+
936
+
937
+ Element Method: removeClass {#Element:removeClass}
938
+ ----------------------------
939
+
940
+ Works like [Element:addClass](#Element:addClass), but removes the class from the Element.
941
+
942
+
943
+ ### Syntax:
944
+
945
+ myElement.removeClass(className);
946
+
947
+ ### Arguments:
948
+
949
+ 1. className - (*string*) The class name to remove.
950
+
951
+ ### Returns:
952
+
953
+ * (*element*) This Element.
954
+
955
+ ### Examples:
956
+
957
+ ##### HTML
958
+
959
+ <div id="myElement" class="testClass newClass"></div>
960
+
961
+ ##### JavaScript
962
+
963
+ $('myElement').removeClass('newClass');
964
+
965
+ ##### Resulting HTML
966
+
967
+ <div id="myElement" class="testClass"></div>
968
+
969
+
970
+
971
+ Element Method: toggleClass {#Element:toggleClass}
972
+ --------------------------------------------------
973
+
974
+ Adds or removes the passed in class name to the Element, depending on whether or not it's already present.
975
+
976
+ ### Syntax:
977
+
978
+ myElement.toggleClass(className, force);
979
+
980
+ ### Arguments:
981
+
982
+ 1. className - (*string*) The class to add or remove.
983
+ 2. force - (*boolean*, optional) Force the class to be either added or removed
984
+
985
+ ### Returns:
986
+
987
+ * (*element*) This Element.
988
+
989
+ ### Examples:
990
+
991
+ ##### HTML
992
+
993
+ <div id="myElement" class="myClass"></div>
994
+
995
+ ##### JavaScript
996
+
997
+ $('myElement').toggleClass('myClass');
998
+
999
+ ##### Resulting HTML
1000
+
1001
+ <div id="myElement" class=""></div>
1002
+
1003
+ ##### JavaScript
1004
+
1005
+ $('myElement').toggleClass('myClass');
1006
+
1007
+ ##### Resulting HTML
1008
+
1009
+ <div id="myElement" class="myClass"></div>
1010
+
1011
+
1012
+
1013
+ Element Method: getPrevious {#Element:getPrevious}
1014
+ --------------------------------------------------
1015
+
1016
+ Returns the previousSibling of the Element (excluding text nodes).
1017
+
1018
+ ### Syntax:
1019
+
1020
+ var previousSibling = myElement.getPrevious([match]);
1021
+
1022
+ ### Arguments:
1023
+
1024
+ 1. match - (*string*, optional): A tag name to match the the found element(s) with. A full CSS selector can be passed.
1025
+
1026
+ ### Returns:
1027
+
1028
+ * (*mixed*) The previous sibling Element or null if none found.
1029
+
1030
+
1031
+
1032
+ Element Method: getAllPrevious {#Element:getAllPrevious}
1033
+ --------------------------------------------------------
1034
+
1035
+ Like [Element:getPrevious][], but returns a collection of all the matched previousSiblings.
1036
+
1037
+
1038
+
1039
+ Element Method: getNext {#Element:getNext}
1040
+ ------------------------------------------
1041
+
1042
+ As [Element:getPrevious][], but tries to find the nextSibling (excluding text nodes).
1043
+
1044
+
1045
+ ### Syntax:
1046
+
1047
+ var nextSibling = myElement.getNext([match]);
1048
+
1049
+ ### Arguments:
1050
+
1051
+ 1. match - (*string*, optional): A comma seperated list of tag names to match the found element(s) with. A full CSS selector can be passed.
1052
+
1053
+ ### Returns:
1054
+
1055
+ * (*mixed*) The next sibling Element or null if none found.
1056
+
1057
+
1058
+ Element Method: getAllNext {#Element:getAllNext}
1059
+ ------------------------------------------------
1060
+
1061
+ Like Element.getNext, but returns a collection of all the matched nextSiblings.
1062
+
1063
+
1064
+
1065
+ Element Method: getFirst {#Element:getFirst}
1066
+ --------------------------------------------
1067
+
1068
+ Gets the first element that matches the passed in expression.
1069
+
1070
+
1071
+ ### Syntax:
1072
+
1073
+ var firstElement = myElement.getFirst([match]);
1074
+
1075
+ ### Arguments:
1076
+
1077
+ 1. match - (*string*, optional): A full CSS selector to match the found element(s) with.
1078
+
1079
+ ### Returns:
1080
+
1081
+ * (*mixed*) The first found element or null if none found.
1082
+
1083
+
1084
+
1085
+ Element Method: getLast {#Element:getLast}
1086
+ ------------------------------------------
1087
+
1088
+ Gets the last element that matches the passed in expression.
1089
+
1090
+ ### Syntax:
1091
+
1092
+ var lastElement = myElement.getLast([match]);
1093
+
1094
+ ### Arguments:
1095
+
1096
+ 1. match - (*string*, optional): A full CSS selector to match the found element(s) with.
1097
+
1098
+ ### Returns:
1099
+
1100
+ * (*mixed*) The last found element, or returns null if none found.
1101
+
1102
+
1103
+
1104
+ Element Method: getParent {#Element:getParent}
1105
+ ----------------------------------------------
1106
+
1107
+ Works as [Element:getPrevious][], but tries to find the parentNode.
1108
+
1109
+
1110
+ ### Syntax:
1111
+
1112
+ var parent = myElement.getParent([match]);
1113
+
1114
+ ### Arguments:
1115
+
1116
+ 1. match - (*string*, optional): A tag name to match the found element(s) with. A full CSS selector can be passed.
1117
+
1118
+ ### Returns:
1119
+
1120
+ * (*mixed*) The target Element's parent or null if no matching parent is found.
1121
+
1122
+
1123
+
1124
+ Element Method: getParents {#Element:getParents}
1125
+ ------------------------------------------------
1126
+
1127
+ Like [Element:getParent](#Element:getParent), but returns a collection of all the matched parentNodes up the tree.
1128
+
1129
+
1130
+
1131
+ Element Method: getSiblings {#Element:getSiblings}
1132
+ --------------------------------------------------
1133
+
1134
+ Like [Element:getAllPrevious][] but returns all Element's previous and next siblings (excluding text nodes). Returns as [Elements][].
1135
+
1136
+
1137
+ ### Syntax:
1138
+
1139
+ var siblings = myElement.getSiblings([match]);
1140
+
1141
+ ### Arguments:
1142
+
1143
+ 1. match - (*string*, optional): A tag name to match the found element(s) with. A full CSS selector can be passed.
1144
+
1145
+ ### Returns:
1146
+
1147
+ * (*array*) A [Elements](#Elements) array with all of the Element's siblings, except the text nodes.
1148
+
1149
+
1150
+
1151
+ Element Method: getChildren {#Element:getChildren}
1152
+ --------------------------------------------------
1153
+
1154
+ Returns all the Element's children (excluding text nodes). Returns as [Elements][].
1155
+
1156
+
1157
+ ### Syntax:
1158
+
1159
+ var children = myElement.getChildren([match]);
1160
+
1161
+ ### Arguments:
1162
+
1163
+ 1. match - (*string*, optional): A tag name to match the found element(s) with. A full CSS selector can be passed.
1164
+
1165
+ ### Returns:
1166
+
1167
+ * (*array*) A [Elements](#Elements) array with all of the Element's children, except the text nodes.
1168
+
1169
+ ### Note:
1170
+
1171
+ The difference between the methods *getChildren* and *getElements* is that getChildren will only return its direct children while getElements searches for all the Elements in any depth.
1172
+
1173
+ Element Method: empty {#Element:empty}
1174
+ --------------------------------------
1175
+
1176
+ Empties an Element of all its children.
1177
+
1178
+
1179
+ ### Syntax:
1180
+
1181
+ myElement.empty();
1182
+
1183
+ ### Returns:
1184
+
1185
+ * (*element*) This Element.
1186
+
1187
+ ### Examples:
1188
+
1189
+ ##### HTML
1190
+
1191
+ <div id="myElement">
1192
+ <p></p>
1193
+ <span></span>
1194
+ </div>
1195
+
1196
+ ##### JavaScript
1197
+
1198
+ $('myElement').empty();
1199
+
1200
+ ##### Resulting HTML
1201
+
1202
+ <div id="myElement"></div>
1203
+
1204
+
1205
+
1206
+ Element Method: destroy {#Element:destroy}
1207
+ ------------------------------------------
1208
+
1209
+ Removes the Element and its children from the DOM and prepares them for garbage collection.
1210
+
1211
+ ### Syntax:
1212
+
1213
+ myElement.destroy();
1214
+
1215
+ ### Returns:
1216
+
1217
+ * (*null*)
1218
+
1219
+
1220
+
1221
+ Element Method: toQueryString {#Element:toQueryString}
1222
+ ------------------------------------------------------
1223
+
1224
+ Reads the child inputs of the Element and generates a query string based on their values.
1225
+
1226
+
1227
+ ### Syntax:
1228
+
1229
+ var query = myElement.toQueryString();
1230
+
1231
+ ### Returns:
1232
+
1233
+ * (*string*) A string representation of a all the input Elements' names and values.
1234
+
1235
+ ### Examples:
1236
+
1237
+ ##### HTML
1238
+
1239
+ <form id="myForm" action="submit.php">
1240
+ <input name="email" value="bob@bob.com" />
1241
+ <input name="zipCode" value="90210" />
1242
+ </form>
1243
+
1244
+ ##### JavaScript
1245
+
1246
+ $('myForm').toQueryString(); // returns "email=bob@bob.com&zipCode=90210".
1247
+
1248
+
1249
+ Element Method: getSelected {#Element:getSelected}
1250
+ --------------------------------------------------
1251
+
1252
+ Returns the selected options of a select element.
1253
+
1254
+
1255
+ ### Syntax:
1256
+
1257
+ var selected = mySelect.getSelected();
1258
+
1259
+ ### Returns:
1260
+
1261
+ * (*array*) An array of the selected elements.
1262
+
1263
+ ### Examples:
1264
+
1265
+ ##### HTML
1266
+
1267
+ <select id="country-select" name="country">
1268
+ <option value="US">United States</option
1269
+ <option value ="IT">Italy</option>
1270
+ </select>
1271
+
1272
+ ##### JavaScript
1273
+
1274
+ $('country-select').getSelected(); // returns whatever the user selected.
1275
+
1276
+ ### Note:
1277
+
1278
+ This method returns an array, regardless of the multiple attribute of the select element.
1279
+ If the select is single, it will return an array with only one item.
1280
+
1281
+
1282
+
1283
+ Element Method: getProperty {#Element:getProperty}
1284
+ --------------------------------------------------
1285
+
1286
+ Returns a single element attribute.
1287
+
1288
+ ### Syntax:
1289
+
1290
+ var myProp = myElement.getProperty(property);
1291
+
1292
+ ### Arguments:
1293
+
1294
+ * property - (*string*) The property to be retrieved.
1295
+
1296
+ ### Returns:
1297
+
1298
+ * (*string*) A string containing the Element's requested property.
1299
+
1300
+ ### Examples:
1301
+
1302
+ ##### HTML
1303
+
1304
+ <img id="myImage" src="mootools.png" title="MooTools, the compact JavaScript framework" alt="" />
1305
+
1306
+ ##### JavaScript
1307
+
1308
+ var imgProps = $('myImage').getProperty('src'); // returns: 'mootools.png'.
1309
+
1310
+
1311
+
1312
+ Element Method: getProperties {#Element:getProperties}
1313
+ ------------------------------------------------------
1314
+
1315
+ Gets multiple element attributes.
1316
+
1317
+ ### Syntax:
1318
+
1319
+ var myProps = myElement.getProperties(properties);
1320
+
1321
+ ### Arguments:
1322
+
1323
+ * properties - (*strings*) Any number of properties to be retrieved.
1324
+
1325
+ ### Returns:
1326
+
1327
+ * (*object*) An object containing all of the Element's requested properties.
1328
+
1329
+ ### Examples:
1330
+
1331
+ ##### HTML
1332
+
1333
+ <img id="myImage" src="mootools.png" title="MooTools, the compact JavaScript framework" alt="" />
1334
+
1335
+ ##### JavaScript
1336
+
1337
+ var imgProps = $('myImage').getProperties('id', 'src', 'title', 'alt');
1338
+ // returns: { id: 'myImage', src: 'mootools.png', title: 'MooTools, the compact JavaScript framework', alt: '' }
1339
+
1340
+
1341
+
1342
+ Element Method: setProperty {#Element:setProperty}
1343
+ --------------------------------------------------
1344
+
1345
+ Sets an attribute or special property for this Element.
1346
+
1347
+
1348
+ ### Arguments:
1349
+
1350
+ 1. property - (*string*) The property to assign the value passed in.
1351
+ 2. value - (*mixed*) The value to assign to the property passed in.
1352
+
1353
+ ### Returns:
1354
+
1355
+ * (*element*) - This Element.
1356
+
1357
+ ### Examples:
1358
+
1359
+ ##### HTML
1360
+
1361
+ <img id="myImage" />
1362
+
1363
+ ##### JavaScript
1364
+
1365
+ $('myImage').setProperty('src', 'mootools.png');
1366
+
1367
+ ##### Resulting HTML
1368
+
1369
+ <img id="myImage" src="mootools.png" />
1370
+
1371
+ ### Note
1372
+
1373
+ - Whenever using [Element:setProperty][] to set an attribute, pass in the lowercase, simplified form of the property. For example:
1374
+ - use 'for', not 'htmlFor',
1375
+ - use 'class', not 'className'
1376
+ - use 'frameborder', not 'frameBorder'
1377
+ - etc.
1378
+
1379
+
1380
+ Element Method: setProperties {#Element:setProperties}
1381
+ ------------------------------------------------------
1382
+
1383
+ Sets numerous attributes for the Element.
1384
+
1385
+
1386
+ ### Arguments:
1387
+
1388
+ 1. properties - (*object*) An object with key/value pairs.
1389
+
1390
+ ### Returns:
1391
+
1392
+ * (*element*) This Element.
1393
+
1394
+ ### Examples:
1395
+
1396
+ ##### HTML
1397
+
1398
+ <img id="myImage" />
1399
+
1400
+ ##### JavaScript
1401
+
1402
+ $('myImage').setProperties({
1403
+ src: 'whatever.gif',
1404
+ alt: 'whatever dude'
1405
+ });
1406
+
1407
+ ##### Resulting HTML
1408
+
1409
+ <img id="myImage" src="whatever.gif" alt="whatever dude" />
1410
+
1411
+
1412
+
1413
+ Element Method: removeProperty {#Element:removeProperty}
1414
+ --------------------------------------------------------
1415
+
1416
+ Removes an attribute from the Element.
1417
+
1418
+
1419
+ ### Syntax:
1420
+
1421
+ myElement.removeProperty(property);
1422
+
1423
+ ### Arguments:
1424
+
1425
+ 1. property - (*string*) The attribute to remove.
1426
+
1427
+ ### Returns:
1428
+
1429
+ * (*element*) This Element.
1430
+
1431
+ ### Examples:
1432
+
1433
+ ##### HTML
1434
+
1435
+ <a id="myAnchor" href="#" onmousedown="alert('click');"></a>
1436
+
1437
+ ##### JavaScript
1438
+
1439
+ //Eww... inline JavaScript is bad! Let's get rid of it.
1440
+ $('myAnchor').removeProperty('onmousedown');
1441
+
1442
+ ##### Resulting HTML
1443
+
1444
+ <a id="myAnchor" href="#"></a>
1445
+
1446
+
1447
+
1448
+ Element Method: removeProperties {#Element:removeProperties}
1449
+ ------------------------------------------------------------
1450
+
1451
+ Removes numerous attributes from the Element.
1452
+
1453
+
1454
+ ### Syntax:
1455
+
1456
+ myElement.removeProperties(properties);
1457
+
1458
+ ### Arguments:
1459
+
1460
+ 1. properties - (*strings*) The attributes to remove, separated by comma.
1461
+
1462
+ ### Returns:
1463
+
1464
+ * (*element*) This Element.
1465
+
1466
+ ### Examples:
1467
+
1468
+ ##### HTML
1469
+
1470
+ <a id="myAnchor" href="#" title="hello world"></a>
1471
+
1472
+ ##### JavaScript
1473
+
1474
+ $('myAnchor').removeProperties('id', 'href', 'title');
1475
+
1476
+ ##### Resulting HTML
1477
+
1478
+ <a></a>
1479
+
1480
+
1481
+ Element Method: store {#Element:store}
1482
+ --------------------------------------
1483
+
1484
+ Stores an item in the Elements Storage, linked to this Element.
1485
+
1486
+
1487
+ ### Syntax:
1488
+
1489
+ myElement.store(key, value);
1490
+
1491
+ ### Arguments:
1492
+
1493
+ 1. key - (*string*) The key you want to assign to the stored value.
1494
+ 2. value - (*mixed*) Any value you want to store.
1495
+
1496
+ ### Returns:
1497
+
1498
+ * (*element*) This Element.
1499
+
1500
+ ### Example:
1501
+
1502
+ $('element').store('someProperty', someValue);
1503
+
1504
+
1505
+ Element Method: retrieve {#Element:retrieve}
1506
+ --------------------------------------------
1507
+
1508
+ Retrieves a value from the Elements storage.
1509
+
1510
+
1511
+ ### Syntax:
1512
+
1513
+ myElement.retrieve(key[, default]);
1514
+
1515
+ ### Arguments:
1516
+
1517
+ 1. key - (*string*) The key you want to retrieve from the storage.
1518
+ 2. default - (*mixed*, optional) Default value to store and return if no value is stored.
1519
+
1520
+ ### Returns:
1521
+
1522
+ * (*mixed*) The value linked to the key.
1523
+
1524
+ ### Example:
1525
+
1526
+ $('element').retrieve('someProperty'); // returns someValue (see example above)
1527
+
1528
+
1529
+ Element Method: eliminate {#Element:eliminate}
1530
+ --------------------------------------------
1531
+
1532
+ Eliminates a key from the Elements storage.
1533
+
1534
+
1535
+ ### Syntax:
1536
+
1537
+ myElement.eliminate(key);
1538
+
1539
+ ### Arguments:
1540
+
1541
+ 1. key - (*string*) The key you want to eliminate from the storage.
1542
+
1543
+ ### Returns:
1544
+
1545
+ * (*mixed*) The element/window/document.
1546
+
1547
+ ### Example:
1548
+
1549
+ $('element').eliminate('someProperty');
1550
+
1551
+
1552
+
1553
+
1554
+
1555
+ Object: Element.Properties {#Element-Properties}
1556
+ ==============================================
1557
+
1558
+ This Object contains the functions that respond to the first argument passed in [Element:get][], [Element:set][] and [Element:erase][].
1559
+
1560
+ ### Adding a Custom Element Property
1561
+
1562
+ Element.Properties.disabled = {
1563
+
1564
+ get: function(){
1565
+ return this.disabled;
1566
+ },
1567
+
1568
+ set: function(value){
1569
+ this.disabled = !!value;
1570
+ this.setAttribute('disabled', !!value);
1571
+ }
1572
+
1573
+ };
1574
+
1575
+ ### Using a Custom Element Property
1576
+
1577
+ // gets the "disabled" property
1578
+ $(element).get('disabled');
1579
+ // sets the "disabled" property to true, along with the attribute
1580
+ $(element).set('disabled', true);
1581
+
1582
+
1583
+ ### Using an Object:
1584
+
1585
+ Additionally, you can access these custom getters and setters using an object as the parameter for the [set](#Element:set) method.
1586
+
1587
+ #### Example:
1588
+
1589
+ // using set:
1590
+ $(divElement).set({html: '<p>Hello <em>People</em>!</p>', style: 'background:red'});
1591
+
1592
+ // for new Elements (works the same as set):
1593
+ new Element('input', {type: 'checkbox', checked: true, disabled: true});
1594
+
1595
+
1596
+ ### Notes:
1597
+
1598
+ - Automatically returns the element for setters.
1599
+ - Since MooTools 1.3 this is a native JavaScript Object and not an instance of the deprecated Hash
1600
+
1601
+
1602
+
1603
+ Element Property: html {#Element-Properties:html}
1604
+ -------------------------------------------------
1605
+
1606
+ ### Setter:
1607
+
1608
+ Sets the innerHTML of the Element.
1609
+
1610
+ #### Syntax:
1611
+
1612
+ myElement.set('html', [htmlString[, htmlString2[, htmlString3[, ..]]]);
1613
+
1614
+ #### Arguments:
1615
+
1616
+ 1. Any number of string parameters with HTML.
1617
+
1618
+ #### Returns:
1619
+
1620
+ * (*element*) This Element.
1621
+
1622
+ #### Examples:
1623
+
1624
+ ##### HTML
1625
+
1626
+ <div id="myElement"></div>
1627
+
1628
+ ##### JavaScript
1629
+
1630
+ $('myElement').set('html', '<div></div>', '<p></p>');
1631
+
1632
+ ##### Resulting HTML
1633
+
1634
+ <div id="myElement">
1635
+ <div></div>
1636
+ <p></p>
1637
+ </div>
1638
+
1639
+ ### Getter:
1640
+
1641
+ Returns the inner HTML of the Element.
1642
+
1643
+ #### Syntax:
1644
+
1645
+ myElement.get('html');
1646
+
1647
+ #### Returns:
1648
+
1649
+ * (*text*) This Element's innerHTML.
1650
+
1651
+
1652
+
1653
+ Element Property: text {#Element-Properties:text}
1654
+ -------------------------------------------------
1655
+
1656
+ ### Setter:
1657
+
1658
+ Sets the inner text of the Element.
1659
+
1660
+ #### Syntax:
1661
+
1662
+ myElement.set('text', text);
1663
+
1664
+ #### Arguments:
1665
+
1666
+ 1. text - (*string*) The new text content for the Element.
1667
+
1668
+ #### Returns:
1669
+
1670
+ * (*element*) This Element.
1671
+
1672
+ #### Examples:
1673
+
1674
+ ##### HTML
1675
+
1676
+ <div id="myElement"></div>
1677
+
1678
+ ##### JavaScript
1679
+
1680
+ $('myElement').set('text', 'some text');
1681
+ // the text of myElement is now 'some text'.
1682
+
1683
+ ##### Resulting HTML
1684
+
1685
+ <div id="myElement">some text</div>
1686
+
1687
+ ### Getter:
1688
+
1689
+ Gets the inner text of the Element.
1690
+
1691
+ #### Syntax:
1692
+
1693
+ var myText = myElement.get('text');
1694
+
1695
+ #### Returns:
1696
+
1697
+ * (*string*) The text of the Element.
1698
+
1699
+ #### Examples:
1700
+
1701
+ ##### HTML
1702
+
1703
+ <div id="myElement">my text</div>
1704
+
1705
+ ##### JavaScript
1706
+
1707
+ var myText = $('myElement').get('text'); // myText = 'my text'.
1708
+
1709
+
1710
+
1711
+ Element Property: tag {#Element-Properties:tag}
1712
+ -----------------------------------------------
1713
+
1714
+ ### Getter:
1715
+
1716
+ Returns the tag name of the Element in lower case.
1717
+
1718
+ #### Syntax:
1719
+
1720
+ var myTag = myElement.get('tag');
1721
+
1722
+ #### Returns:
1723
+
1724
+ * (*string*) The tag name in lower case.
1725
+
1726
+ #### Examples:
1727
+
1728
+ ##### HTML
1729
+
1730
+ <img id="myImage" />
1731
+
1732
+ ##### JavaScript
1733
+
1734
+ var myTag = $('myImage').get('tag'); // myTag = 'img'
1735
+
1736
+
1737
+
1738
+ Type: IFrame {#IFrame}
1739
+ ========================
1740
+
1741
+ Custom Type to create and easily work with IFrames.
1742
+
1743
+
1744
+
1745
+ IFrame Method: constructor {#IFrame:constructor}
1746
+ ------------------------------------------------
1747
+
1748
+ Creates an IFrame HTML Element and extends its window and document with MooTools.
1749
+
1750
+
1751
+ ### Syntax:
1752
+
1753
+ var myIFrame = new IFrame([el][, props]);
1754
+
1755
+ ### Arguments:
1756
+
1757
+ 1. el - (*mixed*, optional) The id of the IFrame to be converted, or the actual IFrame element. If its not passed, a new IFrame will be created (default).
1758
+ 2. props - (*object*, optional) The properties to be applied to the new IFrame. Same as [Element:constructor](#Element:constructor) props argument.
1759
+
1760
+ ### Returns:
1761
+
1762
+ * (*element*) A new IFrame HTML Element.
1763
+
1764
+ ### Examples:
1765
+
1766
+ var myIFrame = new IFrame({
1767
+
1768
+ src: 'http://mootools.net/',
1769
+
1770
+ styles: {
1771
+ width: 800,
1772
+ height: 600,
1773
+ border: '1px solid #ccc'
1774
+ },
1775
+
1776
+ events: {
1777
+
1778
+ mouseenter: function(){
1779
+ alert('Welcome aboard.');
1780
+ },
1781
+
1782
+ mouseleave: function(){
1783
+ alert('Goodbye!');
1784
+ },
1785
+
1786
+ load: function(){
1787
+ alert('The iframe has finished loading.');
1788
+ }
1789
+
1790
+ }
1791
+
1792
+ });
1793
+
1794
+
1795
+ ### Notes:
1796
+
1797
+ - If the IFrame already exists and has a different name than id, the name will be made the same as the id.
1798
+ - An IFrame's window and document will not be extended with MooTools methods.
1799
+
1800
+
1801
+
1802
+ Type: Elements {#Elements}
1803
+ ============================
1804
+
1805
+ The Elements class allows [Element][] methods to work on an [Elements][] array, as well as [Array][] Methods.
1806
+
1807
+
1808
+
1809
+ Elements Method: constructor {#Elements:constructor}
1810
+ ----------------------------------------------------
1811
+
1812
+
1813
+ ### Syntax:
1814
+
1815
+ var myElements = new Elements(elements[, options]);
1816
+
1817
+ ### Arguments:
1818
+
1819
+ 1. elements - (*mixed*) An array of elements or an HTMLCollection Object.
1820
+
1821
+ ### Returns:
1822
+
1823
+ * (*array*) An array-like Elements collection with the [Element][], [Elements][] and [Array][] methods.
1824
+
1825
+ ### Examples:
1826
+
1827
+ #### Set Every Paragraph's Color to Red:
1828
+
1829
+ $$('p').each(function(el){
1830
+ el.setStyle('color', 'red');
1831
+ });
1832
+
1833
+ // Because $$('myselector') also accepts Element methods, the below
1834
+ // example has the same effect as the one above.
1835
+ $$('p').setStyle('color', 'red');
1836
+
1837
+
1838
+ #### Create Elements From an Array:
1839
+
1840
+ var myElements = new Elements(['myElementID', $('myElement'), 'myElementID2', document.getElementById('myElementID3')]);
1841
+
1842
+
1843
+ ### Notes:
1844
+
1845
+ - In MooTools, every DOM function which returns a collection of nodes (such as [$$][]) returns the nodes as instances of Elements.
1846
+ - Because Elements is an array-like-object, it accepts all the [Array][] methods, while giving precedence to [Element][] and [Elements][] methods.
1847
+ - Every node of the Elements instance has all the [Element][] methods.
1848
+
1849
+ ### See Also:
1850
+
1851
+ - [$$][], [$][], [Element][], [Elements][], [Array][]
1852
+
1853
+
1854
+
1855
+ Elements Method: filter {#Elements:filter}
1856
+ ----------------------------------------------
1857
+
1858
+ Filters a collection of elements by a given tag name. This method will be able to filter by any selector.
1859
+ It also works like [Array:filter][], by filtering collection of elements with a function.
1860
+
1861
+
1862
+ ### Syntax:
1863
+
1864
+ var filteredElements = elements.filter(selector);
1865
+
1866
+ ### Arguments:
1867
+
1868
+ 1. selector - (*mixed*) A single CSS selector.
1869
+
1870
+ ### Returns:
1871
+
1872
+ * (*array*) A subset of this [Elements][] instance.
1873
+
1874
+
1875
+ Deprecated Functions {#Deprecated-Functions}
1876
+ ============================================
1877
+
1878
+ Element Method: hasChild {#Deprecated-Functions:hasChild}
1879
+ ---------------------------------------------------------
1880
+
1881
+ This method has been deprecated. Use [Element:contains][] instead.
1882
+
1883
+ ### Example:
1884
+
1885
+ var myElement = document.id('element1');
1886
+ var myElement2 = document.id('element2');
1887
+ myElement !== myElement2 && myElement.contains(element2);
1888
+
1889
+ // could be implemented as:
1890
+ Element.implement('hasChild', function(element){
1891
+ return this !== element && this.contains(element);
1892
+ });
1893
+
1894
+
1895
+
1896
+ [document:id]: #Window:document-id
1897
+ [$]: #Window:dollar
1898
+ [$$]: #Window:dollars
1899
+
1900
+ [Array]: /core/Types/Array
1901
+ [Array:filter]: /core/Types/Array#Array:filter
1902
+
1903
+ [Element]: #Element
1904
+ [Elements]: #Elements
1905
+ [Element:set]: #Element:set
1906
+ [Element:get]: #Element:get
1907
+ [Element:erase]: #Element:erase
1908
+ [Element:setProperty]: #Element:setProperty
1909
+ [Element:getProperty]: #Element:getProperty
1910
+ [Element:removeProperty]: #Element:removeProperty
1911
+ [Element:getElement]: #Element:getElement
1912
+ [Element:getElements]: #Element:getElements
1913
+ [Element.Properties]: #Element-Properties
1914
+ [Element:getPrevious]: #Element:getPrevious
1915
+ [Element:getAllPrevious]: #Element:getAllPrevious
1916
+ [Element:contains]: #Element:contains
1917
+
1918
+ [Element:addEvents]: /core/Element/Element.Event#Element:addEvents
1919
+ [Element:setStyles]: /core/Element/Element.Style#Element:setStyles
1920
+
1921
+ [The Dollar Save Mode]: http://mootools.net/blog/2009/06/22/the-dollar-safe-mode/
1922
+
1923
+ [MDC Element:removeChild]: https://developer.mozilla.org/En/DOM/Node.removeChild
1924
+ [MDC Element:replaceChild]: https://developer.mozilla.org/En/DOM/Node.replaceChild