Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

durandal.js: added interface to deffered object #442

Closed
wants to merge 3 commits into from
Closed

durandal.js: added interface to deffered object #442

wants to merge 3 commits into from

Conversation

rnikitin
Copy link
Contributor

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;
 }

@rnikitin
Copy link
Contributor Author

Additional commit is adding new requirejs declared variables

declare var requirejs: Require;
declare var req: Require;

Diullei added a commit that referenced this pull request Apr 3, 2013
resolved conflicts to pullrequest #442
@Diullei
Copy link
Member

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants