mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Updated according to changes in Flight 1.1.4.
This commit is contained in:
19
flight/flight.d.ts
vendored
19
flight/flight.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
|
||||
// Type definitions for Flight 1.1.1
|
||||
// Type definitions for Flight 1.1.4
|
||||
// Project: http://flightjs.github.com/flight/
|
||||
// Definitions by: Jonathan Hedrén <https://github.com/jonathanhedren/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -9,10 +9,26 @@ declare module Flight {
|
||||
|
||||
export interface Base {
|
||||
|
||||
/**
|
||||
* Most Components and Mixins need to define attributes. In Flight,
|
||||
* default values are assigned by passing an object to the attributes
|
||||
* function.
|
||||
*
|
||||
* NOTE: this.attributes replaces the now deprecated this.defaultAttrs.
|
||||
* However, for backwards compatibility, if you are using this.defaultAttrs
|
||||
* then all the old attribute behavior remains in place.
|
||||
*/
|
||||
attributes(obj: Object): void;
|
||||
|
||||
|
||||
/**
|
||||
* Most Components and Mixins need to define attributes. In Flight,
|
||||
* default values are assigned by passing an object to the defaultAttrs
|
||||
* function.
|
||||
*
|
||||
* NOTE: this.attributes replaces the now deprecated this.defaultAttrs.
|
||||
* However, for backwards compatibility, if you are using this.defaultAttrs
|
||||
* then all the old attribute behavior remains in place.
|
||||
*/
|
||||
defaultAttrs(obj: Object): void;
|
||||
|
||||
@@ -181,7 +197,6 @@ declare module Flight {
|
||||
$node: JQuery;
|
||||
}
|
||||
|
||||
|
||||
export interface AdviceStatic {
|
||||
withAdvice(): Function;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user