Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • The decription formatting is broken.

  • Stuck on this error ' should be able to subscribe and unsubscribe in handler code' and getting three fails
    Could anyone explain me, I am sure missing something in instruction et the description above !!

  • Add random tests :)

  • That's an issue.

  • This comment is hidden because it contains spoiler information about the solution

  • The description is perfectly clear; even without reading the JS-specific notes you can learn how Event should work. If you don't understand something, ask a question.

  • The description for this kata makes no sense. Full of jargon that is not explained anywhere, no examples of what is expected. I don't see how it's even possible to work with this.

    (Python version, btw)

  • I get these erros:
    first handler calls - Expected: 1, instead got: undefined

    first handler arguments - Expected: '[1, 2, 3, 'first', undefined, false]', instead got: 'undefined'
    I can't understand it because when I log the handler function it shows that its args property has the correct values inside an array and its call property is 1.

  • What a dummy description about emit context? Why just don't show at least one test case?

    For others - it requires make possible change context for calling .emit method, and use this context for calling all the handlers.

    event.subscribe(function() { console.log('this:', this); });
    event.emit.call({name: 'bob'}); // should give `this: { name: bob }`
    

    Hanlding this takes a moment, while realising the task takes an hours

  • Ah well, if you put it this way :P
    And aren't there wsay to adjust the level anyway?

  • old kata == easy kata

  • Nice kata but I think it shouldn't be 5 kyu, at least for Python/Ruby... 6 kyu would be more appropriate

  • this.handlers[func]

    What is the key?

  • This comment is hidden because it contains spoiler information about the solution

  • Hi! I'm not sure what you mean by 'equal function'. Should the string representation of the functions be same to be considered equal function? Or view them as objects and do deep equality?

  • Loading more items...