Merge pull request #973 from areel/master

eventName should be an object to support multiple event names:  see code...
This commit is contained in:
Diullei Gomes
2013-09-02 13:13:36 -07:00
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ declare module Backbone {
}
class Events {
on(eventName: string, callback: (...args: any[]) => void , context?: any): any;
on(eventName: any, callback: (...args: any[]) => void , context?: any): any;
off(eventName?: string, callback?: (...args: any[]) => void , context?: any): any;
trigger(eventName: string, ...args: any[]): any;
bind(eventName: string, callback: (...args: any[]) => void , context?: any): any;
+2 -2
View File
@@ -77,7 +77,7 @@ declare module joint {
snapToGrid(p): { x: number; y: number; };
}
class ElementView {
class ElementView extends CellView {
scale(sx: number, sy: number);
}
class CellView extends Backbone.View {
@@ -110,6 +110,6 @@ declare module joint {
function mixin(objects: any[]): any;
function supplement(objects: any[]): any;
function deepMixin(objects: any[]): any;
function deepSupplement(objects: any[]): any;
function deepSupplement(objects: any[], defaultIndicator?: any): any;
}
}