mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-28 09:25:50 +08:00
Add delegate and undelegate methods to View
Backbone allows delegating and undelegating single events on view classes as stated in the [annotated source](http://backbonejs.org/docs/backbone.html#section-163). This pull requests add the two methods to the View class.
This commit is contained in:
2
backbone/backbone-global.d.ts
vendored
2
backbone/backbone-global.d.ts
vendored
@@ -367,7 +367,9 @@ declare module Backbone {
|
||||
remove(): View<TModel>;
|
||||
make(tagName: any, attributes?: any, content?: any): any;
|
||||
delegateEvents(events?: EventsHash): any;
|
||||
delegate(eventName: string, selector: string, listener: Function): View<TModel>;
|
||||
undelegateEvents(): any;
|
||||
undelegate(eventName: string, selector?: string, listener?: Function): View<TModel>;
|
||||
|
||||
_ensureElement(): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user