Permalink
Switch branches/tags
Nothing to show
Commits on Dec 7, 2009
  1. * Specs revision

    cpojer committed Dec 7, 2009
  2. * Adding $name property to figure out the name of a Type

    cpojer committed Dec 7, 2009
    * overloadSetter fixes
Commits on Dec 6, 2009
  1. * Fixing link to submodule

    cpojer committed Dec 6, 2009
Commits on Dec 3, 2009
  1. - reworked overloads to a "key / value to object" and "value to arra…

    kamicane committed Dec 3, 2009
    …y" model again.
    
     - force method is private again
Commits on Oct 6, 2009
Commits on Sep 23, 2009
  1. I'm not crazy about it, but removeClass should run String.clean() if …

    appden committed Sep 23, 2009
    …addClass does, that's for consistency. Another option I'm thinking of is running clean() only on Element.get('class'), that seems to make sense to me!
  2. No more slice argument for Array.from. It's not being used and makes …

    appden committed Sep 23, 2009
    …the code much harder than it needs to be for the HTMLCollection case, Fabio proved that. So if you wanna slice, then call slice after you've made your array.
Commits on Sep 21, 2009
  1. * Possible fix for Array.from for HTMLCollection in IE. This needs te…

    cpojer committed Sep 21, 2009
    …sting once the Moo2 API is final.
Commits on Sep 15, 2009
  1. Putting clean() back into addClass in case the user wants to check th…

    appden committed Sep 15, 2009
    …is.className == 'myclass'
  2. Caching regex for 300% performance gain in removeClass. Also using re…

    appden committed Sep 15, 2009
    …gex in hasClass to be more correct because before it failed with tab separated classes, which I added a spec for. hasClass is about twice as slow on the first call when the regex is built, but after that is it around 25% faster since it is cached. I removed the clean() call from addClass as it is unnecessary now and needlessly slows down the method.
  3. Element.removeClass needs to escape the input for the regular express…

    appden committed Sep 15, 2009
    …ion. Classes can contain special characters. Added a spec to test this.
  4. -Implemented Type.protect to allow protection of later defined Types'…

    appden committed Sep 15, 2009
    … native methods
    
    - This enabled protecting Element.contains, and implementing in other browsers using Slick
    - Added document.contains to check if element is in DOM
    - Fixed and added Specs for these things
Commits on Sep 14, 2009
  1. Fix some typos in Element.js

    appden committed Sep 14, 2009
  2. Revert "Array.clean uses nil." That was a mistake :-)

    appden committed Sep 14, 2009
    This reverts commit 8340aa4.
Commits on Sep 9, 2009
  1. Modernized JSON. Now should be quicker, more secure, and more flexibl…

    appden committed Sep 9, 2009
    …e with support for toJSON.
  2. Array.clean uses nil.

    appden committed Sep 9, 2009
Commits on Sep 4, 2009
  1. * Multiple var statements ftl.

    cpojer committed Sep 4, 2009
  2. * Fixing removeEvent and fireEvent to behave like dom events. See htt…

    cpojer committed Sep 4, 2009
    …p://mooshell.net/9CX5f/ for more information. This also removes the *ugly* (sorry Scott) way to use unshift for Array.include and makes it possible to use eventsOf everywhere again!
  3. * Changing specs to run once for the Events class and once for Elemen…

    cpojer committed Sep 4, 2009
    …t.Events. Both APIs should work exactly the same and therefore should be in sync, any specialities should tested outside of this. Also, cleaning up those ugly bastards!
  4. "Queue" domready events that are added after the browser has loaded. …

    appden committed Sep 4, 2009
    …This is essential for dynamically loaded scripts that have domready events added then fired before the rest of the script is loaded.
  5. Added a spec for removing a Class event during firing and cleaned up …

    appden committed Sep 4, 2009
    …Events Class specs to not inspect internal properties.
  6. As Steida reported in #455, removing a Class event while being fired …

    appden committed Sep 4, 2009
    …screws up the iteration. His solution was optimal, to store the events in reverse order and iterate backwards, however to do that I needed to add an unshift option to Array:include. Done and done.
  7. Conforming forEach to the same behavior as the native method in Firef…

    appden committed Sep 4, 2009
    …ox and Safari, which skips deleted or never-defined items. Also allowing Array:each to chain, this is consistent with the rest of the Array methods, and is consistent with other Frameworks, as well as being very helpful when using Elements, which this also affects.
  8. As Steida reported in #539, insertBefore automatically calls appendCh…

    appden committed Sep 4, 2009
    …ild if the second argument is null. I double checked this and it works. Cleaner code FTW!
Commits on Sep 3, 2009
  1. Tiny cleanups on Event and String. Added toInt and toFloat back in, a…

    appden committed Sep 3, 2009
    …s discussed with kamicane.
Commits on Sep 1, 2009
  1. Fixes #739. Older versions of Microsoft XP only include msxml.dll and…

    appden committed Sep 1, 2009
    … not msxml2.dll, there the progid of Microsoft.XMLHTTP is required. That progid should still work and point to the newer XMLHttpRequest object, but that namespace has been deprecated and *may* be dropped in the future. Please see discussion on the ticket for more info.
Commits on Aug 31, 2009
Commits on Aug 28, 2009
  1. Removed unnecessary argument.

    appden committed Aug 28, 2009