Permalink
Commits on Nov 11, 2007
  1. fix Ebisu rutime bug in IE

    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@49 b19cb30a-9f2e-4084-8847-5e1a13269302
    hlb committed Nov 11, 2007
Commits on Oct 23, 2007
  1. Turn this example into a demo for pluggable design. Put "3d" in

    window.location to see a simple 3d effect. Like:
    
        chase2.html?3d
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@37 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Oct 23, 2007
  2. Spread chase2 example into different javascript files, each maintains

    a "behavioral group" of objects that emits / handles Ebisu events.
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@36 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Oct 23, 2007
Commits on Oct 20, 2007
  1. Another example to demo the ability to have two roles on DOM that

    acts differents on events.
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@35 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Oct 20, 2007
  2. An alternative implementation of chaser. This one a dot is chasing

    another dot, rather then everyone chasing the mouse cursor.
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@34 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Oct 20, 2007
  3. Emacs is complaining not recognizing 'utf8' :/

    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@33 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Oct 20, 2007
  4. Another new Ebisu toy.

    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@32 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Oct 20, 2007
  5. Minor refactoring, add spaces for making it more readible. Adding

    variables when accessing two-level array so it's more efficient
    (variables are cheaper then lookups)
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@31 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Oct 20, 2007
  6. Refine this. Stars goes grey instead of totally invisible when they

    are far away.
    
    Put the .css() call into a setTimeout(0) so it may be faster. (No
    benchmark, just a trick to let major thread gain more control)
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@30 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Oct 20, 2007
Commits on Oct 19, 2007
  1. Another example to use Ebisu to play like physical field.

    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@29 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Oct 19, 2007
  2. Learn from jQuery and YouHolder environment that !this.init is required

    for IE.
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@28 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Oct 19, 2007
Commits on Oct 3, 2007
  1. For all cases, never register two identical functions twice.

    Two functions are considered identical if they
    
     * compared with '==' operator and told to be eqaul
     * converted into string and are equal told by '==' operator
    
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@27 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Oct 3, 2007
Commits on Oct 2, 2007
  1. If the selector string is null, (the user does not invoke to() method),

    then assumed "window".
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@26 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Oct 2, 2007
Commits on Sep 27, 2007
  1. Put the private part of the library to the bottom.

    And this trick:
    
       var Foo = window.Foo = function() {... }
    
    can make js packer (specifically, dean edwards' packaer, and dojo's
    ShrinkSafe) very useful because all references to "Foo" inside the
    scope of this file can all be replaced with something like "f".
    Yet it is still a valid global namespace.
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@25 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 27, 2007
  2. The variable Ebisu.__registry is now a private variable named

    "registry" inside the scope of this file,  no way to access that
    outside.
    
    Implements regex Ebisu name. So you can subscribe to events with
    RegExps.  Like:
    
        Ebisu(/^chat\..*/).to("#chat").attach(...)
    
    To catch all event with name begining with "chat.".
    
    Notice that using lots of regex name is can be considerably slow.
    The search time grows linearly with the total number of regex
    names stored in registry.
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@24 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 27, 2007
  3. this is addicitive.

    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@23 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 27, 2007
  4. unbreak Safari / Webkit breakage due to list assignment.

    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@22 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 27, 2007
  5. minor refactor. Change

      return [left, top]
    
    to
    
      return {left:... , top:... }
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@21 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 27, 2007
  6. Fix the no_dollor test.

    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@20 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 27, 2007
  7. Turns out the better way to pass "what's been selected" to the callback,

    would be just to use the result of that selector, but not doing 
    special handling if that looks like an array.
    
    The reason is that, whoever use their own selector, can then
    have control of those selected elements in the way they've already know.
    
    So Ebisu.$ should be "independent" on this.
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@19 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 27, 2007
  8. Big change. Redfine the semantics because previous

    one has some ambiguity.
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@18 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 27, 2007
Commits on Sep 26, 2007
  1. Examples for using Ebisu.

    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@17 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 26, 2007
  2. Implement a primitive jquery plugin form of Ebisu.

    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@16 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 26, 2007
  3. Change the structure of Ebisu.__registry again. It's now a hash

    of array of array. Such that selector can be an HTMLElement.
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@15 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 26, 2007
  4. Sometimes there's no dollor-sign around. If so, use document.getEleme…

    …ntById
    
    by default.
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@14 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 26, 2007
  5. Implement the detach() method.

    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@13 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 26, 2007
Commits on Sep 25, 2007
  1. change the structure of Ebisu.__registry from a array of array

    to an hash of hash of array.
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@12 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 25, 2007
  2. r19064@GOP (orig r775): gugod | 2007-09-25 16:33:31 +0800

     Ebisu - Event based inter-serving units.
     
     r19065@GOP (orig r776):  gugod | 2007-09-25 18:16:03 +0800
     First simple test passed.
     
     r19066@GOP (orig r777):  gugod | 2007-09-25 22:00:01 +0800
     A new implementation. More like jQuery's style, looks like a DSL.
     
    
    
    git-svn-id: http://code.handlino.com/svn/Ebisu/javascript@11 b19cb30a-9f2e-4084-8847-5e1a13269302
    gugod committed Sep 25, 2007