Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 06 2015 18:28

    marc-costello on implement_raise

    Setting this to be the element … Merge pull request #18 from mar… Basic outline in and 3 more (compare)

  • Sep 03 2015 12:14
    marc-costello opened #19
  • Sep 03 2015 12:14
    marc-costello labeled #19
  • Sep 01 2015 16:26
    marc-costello closed #17
  • Sep 01 2015 16:26
    marc-costello commented #17
  • Sep 01 2015 16:26

    marc-costello on call_on_handlers

    (compare)

  • Sep 01 2015 16:26

    marc-costello on master

    Setting this to be the element … Merge pull request #18 from mar… (compare)

  • Sep 01 2015 16:26
    marc-costello closed #18
  • Sep 01 2015 16:26
    marc-costello opened #18
  • Sep 01 2015 16:26

    marc-costello on call_on_handlers

    Setting this to be the element … (compare)

  • Sep 01 2015 16:13
    marc-costello assigned #17
  • Sep 01 2015 16:12
    marc-costello labeled #17
  • Sep 01 2015 16:12
    marc-costello opened #17
  • Aug 27 2015 16:28

    marc-costello on implement_raise

    Getting some boilerplate in and… (compare)

  • Aug 27 2015 16:14

    marc-costello on introducing_tests

    (compare)

  • Aug 27 2015 16:14

    marc-costello on master

    Adding mocha and chai Adding mocha and chai Moar tests and 4 more (compare)

  • Aug 27 2015 16:14
    marc-costello closed #16
  • Aug 27 2015 16:14
    marc-costello opened #16
  • Aug 27 2015 16:14

    marc-costello on introducing_tests

    completed cache tests (compare)

  • Aug 27 2015 12:07

    marc-costello on introducing_tests

    splitting out eventType and nam… added basic .on() functionality. Adding basic off while i'm here… and 20 more (compare)

Marc Costello
@marc-costello
Reckon it's worth doing some performance tests against each cache to see how costly the object (using map/reduce) vs array lookups are?
@richarddowson
Actually theres little point really. The array will be a stupid amount faster. I guess the question is, what benefit do we get from the object method, and is it worth it?
richarddowson
@richarddowson
It comes down to how to structure the object. Would it be an object per element token, with a collection of events, each event with a collection of handlers? That would be faster to get all the events for one element, but no good to get all the events for one namespace. Reality is that so long as we don't expose the actual data structure and provide suitable methods on the cache then we can swap it out at will if we feel the need.
Marc Costello
@marc-costello
Yea that's true. I've started to build the cache. I'll put a pull in tomorrow when I get time
Marc Costello
@marc-costello
@richarddowson Dude, I was thinking last night about this - Is document a DOM element?
richarddowson
@richarddowson
Er. No. It's not. Strictly, they both inherit from Node and implement the EventTarget interface. So... we will have to accommodate them as separate types
Marc Costello
@marc-costello
Bugger :(
Marc Costello
@marc-costello
@richarddowson Put in a pully for the cache, check it out please :)
richarddowson
@richarddowson
Notification test
@marc-costello test
Marc Costello
@marc-costello
@richarddowson
richarddowson
@richarddowson
@marc-costello
@marc-costello
Marc Costello
@marc-costello
@richarddowson did you manage to get any evt done?