Merge pull request #6575 from sebastian-lenz/patch-1

Add delegate and undelegate methods to View
This commit is contained in:
Masahiro Wakame
2015-11-04 20:29:46 +09:00
+2
View File
@@ -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;
}