Thomas Aylott edited this page Jun 21, 2011 · 1 revision

---- 1.11 => 1.2 ----

1.2 (June 10, 2008)

ADD: New pseudo selector :children  (ibolmo) 
ADD: Added Element::update, updates the content of the element with an ajax get request (digitarald)
ADD: Completely refactored Sortables, allowing multiple lists and new options
ADD: Added Element::destroy and Element::empty, to garbage collect elements and removing them
ADD: Selectors with support for multiple classes/pseudos/attributes (e.g. "a.classX.classY") (digitarald)
ADD: Faster, enhanced Selectors: >, ~, +, more attribute selectors, extendable pseudo selectors
ADD: Added Compatibility folder for DEPRECATED functions. (kamicane)
ADD: Added Client object, with detected (former window) properties for Platform, Engine and Features (kamicane)
ADD: Added Fx.Morph to animate an Element via classnames (kamicane)
ADD: Added $splat function, to arrayze anything (kamicane)
ADD: Added $try function, for a slightly more elegant try catch. (kamicane)
ADD: Automatic Event instantiation in addEvent for native events (kamicane)

CHG: Elements uniques and Garbage elements are now handled with an UID (unique id) for faster execution. (kamicane)
CHG: Added a $family prototype for Natives for faster $type checks (kamicane)
CHG: Element::$tmp is now $attributes (kamicane) 
CHG: Added request method to XHR, as request in Ajax. Moved getHeader from Ajax to XHR. (kamicane) 
CHG: String/Number::toInt now has an optional base argument (default 10, like before) (JanK)
CHG: Number::times now has bind argument like Array iterators (digitarald)
CHG: Now Class::addEvent accepts a third parameter, to flag the event as internal, so it wont be removed by removeEvent / events. (kamicane)
CHG: DEPRECATED: Moved Window size methods to Client (kamicane)
CHG: Flexible arguments for Ajax/XHR/Accordion using Array::link
CHG: Added infinite-numbers-check to $type, now NaN and infinite numbers return false. (digitarald)
CHG: DEPRECATED: Json.evaluate/toString renamed to decode/encode
CHG: Updated the json validation according to the latest version of json.js by Douglas Crockford / Tobie Langel. Thanks Tobie for letting us know :)
CHG: Added a default domready event, that sets Client.loaded to true. (kamicane)
CHG: Added support for arrays as arguments in Group (w00fz)
CHG: Now Class initializer doesnt get fired when $empty is passed (kamicane)
CHG: $pick now accepts an arbitrary number of arguments (kamicane)
CHG: Added onException to XHR, that fires when setting a request header failed (digitarald)
CHG: DEPRECATED: $ES removed, $E is now a shortcut for document.getElement (no second argument) (kamicane)
CHG: Element.Selectors.js is now Selectors.js (kamicane)
CHG: Default-return null instead of false for: Array::getLast/getRandom, Json::decode
CHG: Function::create has now an option "event", to prepend the event to the function arguments. (kamicane)
CHG: DEPRECATED: Hash::keys and values renamed to getKeys and getValues (tomocchino)
CHG: DEPRECATED: Moved browser-detection properties (e.g. to new Client object (kamicane)
CHG: DEPRECATED: Class.empty is now $empty (kamicane)
CHG: removed Function::bindAsEventListener, since its all now automatic, use bindWithEvent (kamicane)

FIX: Added fontWeight to styles that allow number value for Element.setStyle (digitarald)
FIX: Drag.Move now fires 'leave' on every droppable onstart to avoid a problem occurring when leaving the dropped element too fast. (kamicane)
FIX: Fixed Json to encode special characters and to ignore invalid object types like functions etc. (closes #312, #137) (digitarald)
FIX: Now readystatechange is addEvent based. Other than making the new script work, it will allow the event detachment on window unload to clear even more memory. (kamicane)
FIX: Now its safe to call domready even if the window is already loaded. the function will fire immediately. (kamicane)
FIX: Fixed Firefox exception for Element::setText in Firefox (#293)
FIX: Fixed errors when trying to trash embeds/objects (#295)
FIX: Added length check for Json.decode, fixes failed evaluation for empty strings (digitarald)
FIX: Fixed selector for "tag#id" (kamicane)

1.11 (June 04, 2007)

ADD: Added Element::getText and setText, to set the inner text. Support for script and style tags (removed from Element::appendText) (kamicane)
CHG: Removed Fx.Utils from the trunk repository (kamicane)
CHG: $ returns null now if the element is not found (digitarald)
CHG: Improvements to the documentation. Specified the difference between Events and Options, and the inheritance of the various classes.
CHG: Fx.Slide: Fix for safari and new "open" property (kamicane)
CHG: Array::getLast and getRandom now return null if they dont find the array element (kamicane)
CHG: Json.evaluate also returns null (aaron)
CHG: Added wheelStops option in Fx.Scroll (defaults to true) (kamicane)
CHG: Element.htmlElement is now an empty function instead of "true", so its not treated anymore as attribute in ie.
CHG: Added IE-fix in Element::getProperty for src and href. (digitarald)
CHG: Added optional converter callback for Sortable::serialize 
FIX: Drag.Move, fix for elements with fixed positions (atany, digitarald)
FIX: Fixed Garbage Collector bug, where not all the elements were cleared from the browser's memory. (kamicane)
FIX: Fixed an event related memory leak in internet explorer.
FIX: Added documentation for Fx.Base onCancel (kamicane)
FIX: Minor syntax changes to make lint not throw warnings (kamicane)
FIX: Fixed Json handling for numbers and undefined values (digitarald)
FIX: Added frameBorder and selected to special properties (digitarald)
FIX: Added missing Array.each generic (digitarald)

1.1 (May 07, 2007)

ADD: Added Number.js, with Number::times, ::limit, ::round and Number prototypes from String.js (jank, tomocchino, kamicane)
ADD: Added generics for native objects, Element and Elements (digitarald)
ADD: Added Element::cloneEvents to copy events from another element (digitarald)
ADD: Dom.js Filters made Public, as Elements Methods (Elements::filterByTag, filterByClass, filterById, filterByAttribute) (kamicane)
ADD: Added $defined to Core.js, returns true for objects that are not null/undefined (digitarald)
ADD: Added offset option to Fx.Scroll, also used in SmoothScroll (w00fz)
ADD: Added delay argument to Element::fireEvent
ADD: Added Hash::merge, merges objects into the Hash (kamicane, aaron)
ADD: Added Hash.Cookie, extends Hash to save/load a Hash via Json to/from a cookie, with autoSave or manual. (aaron, digitarald, kamicane)
ADD: Added window.webkit419 and window.webkit420 to differentiate between current safari and newer builds of webkit. (kamicane)
ADD: Added secure option for Json.evaluate, used in Hash.Cookie and in options for Json.Remote (aaron)
ADD: Added document.head to hold a shortcut to the <head> element (kamicane)
ADD: Fx.Transitions allows now configurable transitions parameters for effects (kamicane)
ADD: Added Element::injectTop to inject Elements as first child (digitarald)
ADD: Added String::contains, which checks occurence of string, second parameter is an optional seperator. (kamicane)
ADD: Added String::escapeRegExp, escapes expression characters in string (digitarald)
ADD: Added Cookie option: secure for secure connections (digitarald)
ADD: Added Element::empty, trashes all child elements and sets innerHTML to '' (aaron)
ADD: Drag.Base grid option, for snap-to-grid movement, also accepts an object with the usual x/y values. (kamicane)
ADD: Slider with offset option for exact knob position (kamicane)
ADD: Added Element::removeProperty (kamicane)
ADD: Element::getStyle: Full paddings/margins/borders support, correct width/height for ie. (kamicane)
ADD: Added simple Abstract, to automatically add .extend to objects. Converted singletons to Abstract (Inviz)
ADD: Added global MooTools object, with version property
ADD: Added Array::getLast and getRandom (digitarald, kamicane)
ADD: Accordion now allows you to add elements to it after its creation (addSection) (aaron)
ADD: Added Group class to collect events from several class instances (kamicane)
ADD: Garbage.trash automatically cleans up the internal $tmp property for elements and fires 'trash' before cleaning elements
ADD: Implemented custom events, with some defaults as mouseenter, mouseleave and converted domready to a custom event (kamicane)
ADD: Added Array::merge and Array::include (similar to extend/push but with duplicate check) (kamicane)
ADD: Ajax::evalScripts with global eval and automated eval for javascript response, can be forced with evalResponse , added Ajax::getHeader (digitarald)
ADD: XHR now has a 'cancel' method, the option 'autoCancel' and the running property for active requests (digitarald, kamicane)
ADD: UrlEncoding moved from Ajax to XHR to allow get/post encoding for Xhr/Json.Request (digitarald, kamicane)
ADD: Added Element::hasChild() (kamicane)
ADD: DEPRECATED: Ajax: postBody renamed in data. It now works also with method=get. Compatibility is kept until v1.2 (kamicane)
ADD: Added $time (Utility.js) to return the current timestamp [#90] (Inviz)
ADD: Dom.js now uses Xpath if supported (window.xpath property), including selector caching and duplicate check
ADD: setOptions accepts now any number of arguments, this.options holds the default values (Inviz, kamicane)
ADD: f1-f12 keys for Event.key [#70] (Inviz)
ADD: Added Element::set, Element constructor now takes this argument, an object for setting 'styles', 'properties' and 'events' (ibolmo)
ADD: Added $merge, merging objects recursively (aaron)
ADD: Added Element::getStyles() (aaron)
ADD: $each iterates objects and arrays (aaron)

CHG: Fx.Scroll now stops if there's a scroll on the entire document, instead of the relevant element as before. (kamicane)
CHG: Class::implement now takes multiple arguments. (kamicane)
CHG: Merged Moo.js and Utility.js, now the file is Called Core.js, and does not contain Class. Class.js has now its own file, renamed Common.js in Class.Extras.js. (kamicane)
CHG: Added Elements contstructor to avoid directly calling $extend. (kamicane)
CHG: Splitted Dom.js in Element.Selectors and Element.Filters. Removed Dom.js (kamicane)
CHG: Garbage.trash event is now added beforeunload event to ensure its the last unload event to be called. (kamicane)
CHG: Elements methods overridden from Array methods in $$ are now added back with "Elements" appended to the name (e.g. Elements::removeElement, Elements::getLastElements). (kamicane)
CHG: Optimized Fx.Base to take advantage of the new Transition system so the transitions calculation is made only once per cycle, no matter the properties (tomocchino)
CHG: Refactord over-checks for Drag::Move, fires over/drop now only for the last element on the stack, not for all hovered elements (digitarald)
CHG: API CHANGE window.khtml to window.webkit. window.khtml is still kept for compatibility until 1.2.
CHG: String::capitalize doesn't force the string to lowerCase anymore. (kamicane)
CHG: API CHANGE: Completely refractored Fx.Transitions and changed API. It's now better, cleaner, smaller, more modular and a bit faster. Also added the set property, to allow configurable transitions parameters for effects. Refer to the docs to see how it works. Old transition syntax is kept until v1.2 (blame kamicane)
CHG: Refractored Element::getStyle. Now smaller, safer, better, up to 40% faster. (kamicane)
CHG: API CHANGE Array::test is now Array::contains. Compatibility is kept till 1.2 (kamicane)
CHG: API CHANGE: Hash::empty now clears the Hash values (kamicane)
CHG: Drag.Base, return this to Drag::attach/detach (kamicane)
CHG: Behavior of fixed tooltips is different, is not anymore relative to the mouse position, but to the element position.
CHG: Element::inject allows 'top' (digitarald)
CHG: $type does now recognize 'regexp', 'collection', 'arguments', 'class' [#163] (kamicane, digitarald)
CHG: API CHANGE: Hash::each callback arguments are now (value, key) to be consistent with all each's (blame digitarald)
CHG: API CHANGE: Object.extend is now $extend, compatible till v1.2
CHG: API CHANGE: Object.native is now $native, compatible till 1.2
CHG: Renamed internal element properties with prepended $ ($events, $included) (digitarald)
CHG: Cookie.remove with paths and domains [#127] (kamicane)
CHG: Added $pick to bind argument in Function::create, to allow null binds (kamicane)
CHG: Added set and get Property cases for the attribute 'for' [#48] (kamicane)
CHG: Event.js mouse events now respond also to menu types and all click types (including dblclick) (kamicane)
CHG: Moved Event.js to Element.Event.js (kamicane)
CHG: Splitted Element.js in Element, Element.Dimensions and Element.Form, moved Files from Addons to Core/Native/Plugins (kamicane)
CHG: Fast Element.walk for getNext/Previous/Last/First (Inviz)
CHG: onProgress of Asset.Images is now binded to the current image and the index is passed. (kamicane)
CHG: In Event class keys are now only computed for 'keydown' (kamicane)
CHG: Element::setStyle does not require anymore "+ 'px'", automatically added to number values (kamicane)
CHG: API CHANGE window.onDomReady is no more. use window.addEvent('domready', fn). Compatible till 1.2
CHG: Window.Base.js renamed to Window.DomReady.js
CHG: Tips now use 'mouseenter' and 'mouseleave' instead of 'mouseover' and 'mouseout' (kamicane)
CHG: Moved 'get' fallback from Ajax to XHR (kamicane)
CHG: Garbage.trash now take as input an array of elements (kamicane)
CHG: Event onStateChange in XHR is gone (kamicane)
CHG: Garbage.unload is now Garbage.empty (kamicane)
CHG: Hash.remove now use delete operator, and Hash.each uses $each (digitarald)
CHG: Cookie has now Cookie.options, duration is false by default [for sessions] (digitarald)
CHG: Sortables are now independent from Drag.Base, also have their own ghosting behaviour (kamicane)
CHG: Element.setStyle also supports float now (kamicane)
CHG: Fx.Slide allows borders and margins. Positioning is now possible. (kamicane)
CHG: Ajax.request can take data as first argument to override options [#69] (Inviz)
CHG: Element.adopt allows multiple arguments including element collections [#71] (Inviz)
CHG: API CHANGE ? Removed new Element in adopt, inject and replaceWith, now only id's and element references are allowed (kamicane)
CHG: Fixed Element.getValue/Element.toQueryString with support for multiple-selects (digitarald)

FIX: WONTFIX: The Event::wheel is inverted for all opera version prior to 9.20, blame opera for their crazy idea
FIX: Fixed event conditions for out cases in Drag::Move, now 'emptydrop' is also called for draggables dropped outside of the container (digitarald)
FIX: Small fixes to Drag.Move, when position of element is absolute inside relative or absolutely relative. (kamicane)
FIX: IE-fix for Element::getProperty, so it does not return properties instead of attributes anymore (digitarald)
FIX: Fixed Element::clone to remove events from elements cloned with IE (digitarald)
FIX: Now XHR reinstantiates its transport when canceled, to avoid the delay in request. (kamicane)
FIX: Element::getStyle fixes for internet explorer, when it returned "medium" or "auto" on margins and paddings when not defined.  (kamicane)
FIX: Added nullification of elements in Garbage.trash (digitarald)
FIX: Fixed mozilla bug that throws exceptions with input / textarea elements and Event related Targets. (fix by atany)
FIX: Pixel properties are now rounded in Effects, for a (slightly) better display. (kamicane)
FIX: String-type check for Json.evaluate, returns false for non-string parameters now (digitarald)
FIX: Fixed SmoothScroll and Window.Size to support newer builds of webkit. (kamicane)
FIX: Array::remove now also works with null/undefined/0
FIX: Fixed several bugs with Assets.image and Assets.images, cleaner and better behaviour (digitarald)
FIX: Better behvaiour for Fx.Scroll::toElement [#169] (Yuffster)
FIX: Couple of fixes to the Color class, now it also carries hex values. (kamicane)
FIX: String::toInt fixed [#125]
FIX: SmoothScroll now sets hash, not href [#149] (digitarald)
FIX: Fixed the drag bug about the element getting stuck to the cursor when right-clicking or clicking outside of the window [#84] (kamicane)
FIX: little fix for $each, provided default binding (kamicane)
FIX: Fixed domready problem in secure sites [#139]
FIX: Element::setOpacity with opacity/clear-type workaround for ie, when you are too lazy to put a bg-color (digitarald)
FIX: Fixed Safari relatedTarget for Text Nodes issue (kamicane)
FIX: Event.keyCode can also be 0 (kamicane)
FIX: Element::toQueryString takes empty values into account [#105] (kamicane)
FIX: Fixed a bug in Asset.image, the property to the object and only once (kamicane)
FIX: Fixed a bug in Element::getElements to avoid potentially return of duplicates (kamicane)
FIX: Fixed a possible warning in Array::remove (kamicane)
FIX: Fixed flickering in Sortables (kamicane)
FIX: $$ does not returns duplicate entries anymore (kamicane)
FIX: Exposed HTMLElement in safari, everything is now a lot faster (kamicane)
FIX: Array iterations in Array.js optimized (digitarald)
FIX: Accordion now resets paddings and margins (kamicane)
FIX: Optional isSuccess in XHR with correct this (kamicane)
FIX: Element was not extended in SmoothScroll [#45] (chris)
FIX: Fixed a bug in Fx.Slide() causing an error in Safari when first calling show() or hide() (Chris)
FIX: Fixed object key names not encoded correctly if they contained the " or \ special characters, in Json.toString (Chris)
FIX: PERL-Syntax for regexp in Json.toString for better perfomance (Chris)
FIX: Fixed Array methods behaviour [#43] (Chris)
FIX: Several minor documentation errors fixed and more examples
FIX: Several missing dependancies fixed

1.0 (January 29, 2007)

0.87 (December 12, 2006)