durandal.js: added interface to deffered object #442

wants to merge 3 commits into


None yet

2 participants

Added interface for deferred object, returned from event subscription.

export var on: (events: string, callback: Function, context?) => IEventSubscription;

interface IEventSubscription
      * This function adding callback to event subscription
    then(thenCallback: any): void;

      * This function removing current subscription from event handlers
     off(): void;

Additional commit is adding new requirejs declared variables

declare var requirejs: Require;
declare var req: Require;
Diullei commented Apr 3, 2013

I sent a pullrequest #451 to facilitate understanding of this changes.

@Diullei Diullei closed this Apr 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment