Permalink
Browse files

tagging 1.2 beta 2

git-svn-id: http://svn.mootools.net/tags/1-2b2@1345 4db308c1-fb21-0410-9919-de62e267375e
  • Loading branch information...
0 parents commit 8668de448efa16a5d3e92e5f602e9072161be9d0 kamicane committed Jan 16, 2008
Showing with 24,403 additions and 0 deletions.
  1. +1 −0 Compatibility/Class/Class.js
  2. +8 −0 Compatibility/Core/Browser.js
  3. +18 −0 Compatibility/Core/Core.js
  4. +1 −0 Compatibility/Drag/Drag.js
  5. +1 −0 Compatibility/Element/Element.Event.js
  6. +7 −0 Compatibility/Element/Element.Style.js
  7. +29 −0 Compatibility/Element/Element.js
  8. +1 −0 Compatibility/Fx/Fx.Morph.js
  9. +7 −0 Compatibility/Fx/Fx.Scroll.js
  10. +1 −0 Compatibility/Fx/Fx.Tween.js
  11. +13 −0 Compatibility/Fx/Fx.js
  12. +7 −0 Compatibility/Native/Array.js
  13. +9 −0 Compatibility/Native/Function.js
  14. +2 −0 Compatibility/Native/Hash.js
  15. +24 −0 Compatibility/Request/Request.JSON.js
  16. +37 −0 Compatibility/Request/Request.js
  17. +39 −0 Compatibility/Selectors/Selectors.js
  18. 0 Compatibility/Utilities/Dimensions.js
  19. +4 −0 Compatibility/Utilities/JSON.js
  20. +393 −0 Docs/Class/Class.Extras.md
  21. +125 −0 Docs/Class/Class.md
  22. +33 −0 Docs/Core/Browser.md
  23. +430 −0 Docs/Core/Core.md
  24. +150 −0 Docs/Drag/Drag.Move.md
  25. +188 −0 Docs/Drag/Drag.md
  26. +209 −0 Docs/Element/Element.Dimensions.md
  27. +305 −0 Docs/Element/Element.Event.md
  28. +122 −0 Docs/Element/Element.Style.md
  29. +1,692 −0 Docs/Element/Element.md
  30. +12 −0 Docs/Fx/Fx.CSS.md
  31. +213 −0 Docs/Fx/Fx.Morph.md
  32. +233 −0 Docs/Fx/Fx.Scroll.md
  33. +271 −0 Docs/Fx/Fx.Slide.md
  34. +147 −0 Docs/Fx/Fx.Transitions.md
  35. +262 −0 Docs/Fx/Fx.Tween.md
  36. +168 −0 Docs/Fx/Fx.md
  37. +609 −0 Docs/Native/Array.md
  38. +180 −0 Docs/Native/Event.md
  39. +297 −0 Docs/Native/Function.md
  40. +609 −0 Docs/Native/Hash.md
  41. +135 −0 Docs/Native/Number.md
  42. +330 −0 Docs/Native/String.md
  43. +144 −0 Docs/Plugins/Accordion.md
  44. +136 −0 Docs/Plugins/Assets.md
  45. +114 −0 Docs/Plugins/Fx.Elements.md
  46. +113 −0 Docs/Plugins/Hash.Cookie.md
  47. +92 −0 Docs/Plugins/Scroller.md
  48. +118 −0 Docs/Plugins/Selectors.Children.md
  49. +142 −0 Docs/Plugins/Slider.md
  50. +44 −0 Docs/Plugins/SmoothScroll.md
  51. +95 −0 Docs/Plugins/Sortables.md
  52. +92 −0 Docs/Plugins/Tips.md
  53. +176 −0 Docs/Request/Request.HTML.md
  54. +47 −0 Docs/Request/Request.JSON.md
  55. +288 −0 Docs/Request/Request.md
  56. +172 −0 Docs/Selectors/Selectors.Pseudo.md
  57. +117 −0 Docs/Selectors/Selectors.md
  58. +274 −0 Docs/Utilities/Color.md
  59. +116 −0 Docs/Utilities/Cookie.md
  60. +69 −0 Docs/Utilities/Group.md
  61. +57 −0 Docs/Utilities/JSON.md
  62. +108 −0 Docs/Utilities/Swiff.md
  63. +134 −0 Docs/assets/docs.js
  64. BIN Docs/assets/images/Back.png
  65. BIN Docs/assets/images/Bounce.png
  66. BIN Docs/assets/images/Circ.png
  67. BIN Docs/assets/images/Cubic.png
  68. BIN Docs/assets/images/Elastic.png
  69. BIN Docs/assets/images/Expo.png
  70. BIN Docs/assets/images/Linear.png
  71. BIN Docs/assets/images/Quad.png
  72. BIN Docs/assets/images/Quart.png
  73. BIN Docs/assets/images/Quint.png
  74. BIN Docs/assets/images/Sine.png
  75. +1,296 −0 Docs/assets/showdown.js
  76. +293 −0 Docs/assets/style.css
  77. +54 −0 Docs/index.html
  78. +8 −0 Docs/license.md
  79. +83 −0 Source/Class/Class.Extras.js
  80. +89 −0 Source/Class/Class.js
  81. +89 −0 Source/Core/Browser.js
  82. +277 −0 Source/Core/Core.js
  83. +85 −0 Source/Drag/Drag.Move.js
  84. +137 −0 Source/Drag/Drag.js
  85. +162 −0 Source/Element/Element.Dimensions.js
  86. +150 −0 Source/Element/Element.Event.js
  87. +140 −0 Source/Element/Element.Style.js
  88. +663 −0 Source/Element/Element.js
  89. +139 −0 Source/Fx/Fx.CSS.js
  90. +70 −0 Source/Fx/Fx.Morph.js
  91. +86 −0 Source/Fx/Fx.Scroll.js
  92. +135 −0 Source/Fx/Fx.Slide.js
  93. +98 −0 Source/Fx/Fx.Transitions.js
  94. +87 −0 Source/Fx/Fx.Tween.js
  95. +124 −0 Source/Fx/Fx.js
  96. +140 −0 Source/Native/Array.js
  97. +110 −0 Source/Native/Event.js
  98. +61 −0 Source/Native/Function.js
  99. +123 −0 Source/Native/Hash.js
  100. +44 −0 Source/Native/Number.js
  101. +78 −0 Source/Native/String.js
  102. +103 −0 Source/Plugins/Accordion.js
  103. +95 −0 Source/Plugins/Assets.js
  104. +49 −0 Source/Plugins/Fx.Elements.js
  105. +49 −0 Source/Plugins/Hash.Cookie.js
  106. +57 −0 Source/Plugins/Scroller.js
  107. +69 −0 Source/Plugins/Selectors.Children.js
  108. +138 −0 Source/Plugins/Slider.js
  109. +40 −0 Source/Plugins/SmoothScroll.js
  110. +178 −0 Source/Plugins/Sortables.js
  111. +124 −0 Source/Plugins/Tips.js
  112. +63 −0 Source/Request/Request.HTML.js
  113. +27 −0 Source/Request/Request.JSON.js
  114. +209 −0 Source/Request/Request.js
  115. +168 −0 Source/Selectors/Selectors.Pseudo.js
  116. +240 −0 Source/Selectors/Selectors.js
  117. +141 −0 Source/Utilities/Color.js
  118. +65 −0 Source/Utilities/Cookie.js
  119. +62 −0 Source/Utilities/DomReady.js
  120. +40 −0 Source/Utilities/Group.js
  121. +53 −0 Source/Utilities/JSON.js
  122. +96 −0 Source/Utilities/Swiff.js
  123. +102 −0 Specs/Builder.js
  124. +194 −0 Specs/Class/Class.Extras.js
  125. +130 −0 Specs/Class/Class.js
  126. +40 −0 Specs/Core/Browser.js
  127. +411 −0 Specs/Core/Core.js
  128. +73 −0 Specs/Element/Element.Style.js
  129. +1,443 −0 Specs/Element/Element.js
  130. +231 −0 Specs/Native/Array.js
  131. +163 −0 Specs/Native/Function.js
  132. +229 −0 Specs/Native/Hash.js
  133. +167 −0 Specs/Native/Number.js
  134. +145 −0 Specs/Native/String.js
  135. +61 −0 Specs/Plugins/Selectors.Children.js
  136. +8 −0 Specs/Selectors/Selectors.js
  137. +17 −0 Specs/Selectors/index.html
  138. +62 −0 Specs/Utilities/Color.js
  139. +1,807 −0 Specs/assets/DiffMatchPatch.js
  140. +1,512 −0 Specs/assets/JSSpec.js
  141. +140 −0 Specs/assets/JSSpecSpecs.js
  142. +297 −0 Specs/assets/Style.css
  143. +13 −0 Specs/demo.html
  144. +17 −0 Specs/index.html
  145. +21 −0 license.txt
  146. +263 −0 scripts.json
@@ -0,0 +1 @@
+Class.empty = $empty;
@@ -0,0 +1,8 @@
+window.extend = document.extend = function(properties){
+ for (var property in properties) this[property] = properties[property];
+};
+window.extend(Browser.Engine);
+
+window.ie = window.trident;
+window.ie6 = window.trident4;
+window.ie7 = window.trident5;
@@ -0,0 +1,18 @@
+$A = function(iterable, start, length){
+ if (Browser.Engine.trident && $type(iterable) == 'collection'){
+ start = start || 0;
+ if (start < 0) start = iterable.length + start;
+ length = length || (iterable.length - start);
+ var array = [];
+ for (var i = 0; i < length; i++) array[i] = iterable[start++];
+ return array;
+ }
+ start = (start || 0) + ((start < 0) ? iterable.length : 0);
+ var end = ((!$chk(length)) ? iterable.length : length) + start;
+ return Array.prototype.slice.call(iterable, start, end);
+};
+
+(function(){
+ var natives = [Array, Function, String, RegExp, Number];
+ for (var i = 0, l = natives.length; i < l; i++) natives[i].extend = natives[i].implement;
+})();
@@ -0,0 +1 @@
+Drag.Base = Drag;
@@ -0,0 +1 @@
+Event.keys = Event.Keys;
@@ -0,0 +1,7 @@
+Element.implement({
+
+ setOpacity: function(op){
+ return this.set('opacity', op);
+ }
+
+});
@@ -0,0 +1,29 @@
+Element.extend = Element.implement;
+
+Elements.extend = Elements.implement;
+
+Element.implement({
+
+ getFormElements: function(){
+ return this.getElements('input, textarea, select');
+ },
+
+ replaceWith: function(el){
+ el = $(el);
+ this.parentNode.replaceChild(el, this);
+ return el;
+ },
+
+ removeElements: function(){
+ return this.dispose();
+ },
+
+ remove: function(){
+ return this.dispose();
+ },
+
+ getValue: function(){
+ return this.get('value');
+ }
+
+});
@@ -0,0 +1 @@
+Fx.Styles = Fx.Morph;
@@ -0,0 +1,7 @@
+Fx.Scroll.implement({
+
+ scrollTo: function(y, x){
+ return this.start(y, x);
+ }
+
+});
@@ -0,0 +1 @@
+Fx.Style = Fx.Tween;
@@ -0,0 +1,13 @@
+Fx.implement({
+
+ custom: function(from, to){
+ return this.start(from, to);
+ },
+
+ clearTimer: function(){
+ return this.cancel();
+ }
+
+});
+
+Fx.Base = Fx;
@@ -0,0 +1,7 @@
+Array.implement({
+
+ copy: function(start, length){
+ return $A(this, start, length);
+ }
+
+});
@@ -0,0 +1,9 @@
+Function.extend({
+
+ bindAsEventListener: function(bind, args){
+ return this.create({'bind': bind, 'event': true, 'arguments': args});
+ }
+
+});
+
+Function.empty = $empty;
@@ -0,0 +1,2 @@
+Hash.alias('getKeys', 'keys').alias('getValues', 'values').alias('has', 'hasKey');
+var Abstract = Hash;
@@ -0,0 +1,24 @@
+JSON.Remote = new Class({
+
+ options: {
+ key: 'json'
+ },
+
+ Extends: Request.JSON,
+
+ initialize: function(url, options){
+ arguments.callee.parent(options);
+ this.onComplete = $empty;
+ this.url = url;
+ },
+
+ send: function(data){
+ if (!this.check(data)) return this;
+ return arguments.callee.parent({url: this.url, data: {json: Json.encode(data)}});
+ },
+
+ failure: function(){
+ this.fireEvent('onFailure', this.xhr);
+ }
+
+});
@@ -0,0 +1,37 @@
+Object.toQueryString = Hash.toQueryString;
+
+var XHR = new Class({
+
+ Extends: Request,
+
+ options: {
+ update: false
+ },
+
+ initialize: function(url, options){
+ arguments.callee.parent(options);
+ this.url = url;
+ },
+
+ request: function(data){
+ return this.send(this.url, data || this.options.data);
+ },
+
+ send: function(url, data){
+ if (!this.check(url, data)) return this;
+ return arguments.callee.parent({url: url, data: data});
+ },
+
+ success: function(text, xml){
+ text = this.processScripts(text);
+ if (this.options.update) $(this.options.update).empty().set('html', text);
+ this.onSuccess(text, xml);
+ },
+
+ failure: function(){
+ this.fireEvent('onFailure', this.xhr);
+ }
+
+});
+
+var Ajax = XHR;
@@ -0,0 +1,39 @@
+Native.implement([Element, Document], {
+
+ getElementsByClassName: function(className){
+ return this.getElements('.' + className);
+ },
+
+ getElementsBySelector: function(selector){
+ return this.getElements(selector);
+ }
+
+});
+
+Elements.implement({
+
+ filterByTag: function(tag){
+ return this.filterBy(tag);
+ },
+
+ filterByClass: function(className){
+ return this.filterBy('.' + className);
+ },
+
+ filterById: function(id){
+ return this.filterBy('#' + id);
+ },
+
+ filterByAttribute: function(name, operator, value){
+ return this.filterBy('[' + name + (operator || '') + (value || '') + ']');
+ }
+
+});
+
+$E = function(selector, filter){
+ return ($(filter) || document).getElement(selector);
+};
+
+var $ES = function(selector, filter){
+ return ($(filter) || document).getElements(selector);
+};
No changes.
@@ -0,0 +1,4 @@
+var Json = JSON;
+
+JSON.toString = JSON.encode;
+JSON.evaluate = JSON.decode;
Oops, something went wrong.

0 comments on commit 8668de4

Please sign in to comment.