From 6748bfa488509655fcf3b3504079cbf85eb15a1d Mon Sep 17 00:00:00 2001 From: Sebastian Lenz Date: Mon, 2 Nov 2015 22:38:51 +0100 Subject: [PATCH] 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. --- backbone/backbone-global.d.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backbone/backbone-global.d.ts b/backbone/backbone-global.d.ts index ae111aea0d..764aa83d75 100644 --- a/backbone/backbone-global.d.ts +++ b/backbone/backbone-global.d.ts @@ -367,7 +367,9 @@ declare module Backbone { remove(): View; make(tagName: any, attributes?: any, content?: any): any; delegateEvents(events?: EventsHash): any; + delegate(eventName: string, selector: string, listener: Function): View; undelegateEvents(): any; + undelegate(eventName: string, selector?: string, listener?: Function): View; _ensureElement(): void; }