Interface MQuery

Index

Call signatures

Methods

Call signatures

(selector: string, context?: any): MQueryResultSetElements

Parameters

  • selector: string
  • context?: any optional

Returns

MQueryResultSetElements

(element: HTMLElement): MQueryResultSetElements

Parameters

  • element: HTMLElement

Returns

MQueryResultSetElements

(object: MQueryResultSetElements): MQueryResultSetElements

Parameters

Returns

MQueryResultSetElements

(object: MQueryResultSet): MQueryResultSet

Parameters

Returns

MQueryResultSet

(object: T): MQueryResultSet

Parameters

  • object: T

Returns

MQueryResultSet

(elementArray: Array<HTMLElement>): MQueryResultSetElements

Parameters

  • elementArray: Array<HTMLElement>

Returns

MQueryResultSetElements

(array: Array<T>): MQueryResultSet

Parameters

  • array: Array<T>

Returns

MQueryResultSet

(): MQueryResultSet

Returns

MQueryResultSet

Methods

public contains(container: HTMLElement, contained: HTMLElement): boolean

Parameters

  • container: HTMLElement
  • contained: HTMLElement

Returns

boolean

public data(element: HTMLElement, key: string, value: any): any

Parameters

  • element: HTMLElement
  • key: string
  • value: any

Returns

any

public data(element: HTMLElement, key: string): any

Parameters

  • element: HTMLElement
  • key: string

Returns

any

public data(element: HTMLElement): any

Parameters

  • element: HTMLElement

Returns

any

public every(obj: Array<T>, fn: (elementOfArray: T, indexInArray: number) => boolean, context?: any): boolean

Parameters

  • obj: Array<T>
  • fn: (elementOfArray: T, indexInArray: number) => boolean
  • context?: any optional

Returns

boolean

public every(obj: MQueryResultSet, fn: (elementOfArray: T, indexInArray: number) => boolean, context?: any): boolean

Parameters

  • obj: MQueryResultSet
  • fn: (elementOfArray: T, indexInArray: number) => boolean
  • context?: any optional

Returns

boolean

public every(obj: Array<T>, fn: (elementOfArray: T) => boolean, context?: any): boolean

Parameters

  • obj: Array<T>
  • fn: (elementOfArray: T) => boolean
  • context?: any optional

Returns

boolean

public every(obj: MQueryResultSet, fn: (elementOfArray: any) => boolean, context?: any): boolean

Parameters

  • obj: MQueryResultSet
  • fn: (elementOfArray: any) => boolean
  • context?: any optional

Returns

boolean

public extend(target: any, objs?: Array<any>): Object

Parameters

  • target: any
  • objs?: Array<any> optional

Returns

Object

public extend(deep: boolean, target: any, objs?: Array<any>): Object

Parameters

  • deep: boolean
  • target: any
  • objs?: Array<any> optional

Returns

Object

public filter(obj: Array<T>, fn: (elementOfArray: T, indexInArray: number) => boolean, context?: any): Array<T>

Parameters

  • obj: Array<T>
  • fn: (elementOfArray: T, indexInArray: number) => boolean
  • context?: any optional

Returns

Array<T>

public filter(obj: MQueryResultSet, fn: (elementOfArray: T, indexInArray: number) => boolean, context?: any): MQueryResultSet

Parameters

  • obj: MQueryResultSet
  • fn: (elementOfArray: T, indexInArray: number) => boolean
  • context?: any optional

Returns

MQueryResultSet

public filter(obj: Array<T>, fn: (elementOfArray: T) => boolean, context?: any): Array<T>

Parameters

  • obj: Array<T>
  • fn: (elementOfArray: T) => boolean
  • context?: any optional

Returns

Array<T>

public filter(obj: MQueryResultSet, fn: (elementOfArray: T) => boolean, context?: any): MQueryResultSet

Parameters

  • obj: MQueryResultSet
  • fn: (elementOfArray: T) => boolean
  • context?: any optional

Returns

MQueryResultSet

public forEach(obj: Array<T>, fn: (elementOfArray: T, indexInArray: number) => void, context?: any)

Parameters

  • obj: Array<T>
  • fn: (elementOfArray: T, indexInArray: number) => void
  • context?: any optional

public forEach(obj: MQueryResultSet, fn: (elementOfArray: T, indexInArray: number) => void, context?: any)

Parameters

  • obj: MQueryResultSet
  • fn: (elementOfArray: T, indexInArray: number) => void
  • context?: any optional

public forEach(obj: Array<T>, fn: (elementOfArray: T) => void, context?: any)

Parameters

  • obj: Array<T>
  • fn: (elementOfArray: T) => void
  • context?: any optional

public forEach(obj: MQueryResultSet, fn: (elementOfArray: T) => void, context?: any)

Parameters

  • obj: MQueryResultSet
  • fn: (elementOfArray: T) => void
  • context?: any optional

public hasData(element: HTMLElement): boolean

Parameters

  • element: HTMLElement

Returns

boolean

public indexOf(obj: Array<T>, object: T, startIndex?: number): number

Parameters

  • obj: Array<T>
  • object: T
  • startIndex?: number optional

Returns

number

public isArray(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isBoolean(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isDefined(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isDefinedAndNotNull(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isElement(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isEmptyObject(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isFunction(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isMQueryResultSet(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isNode(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isNotNull(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isNull(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isNumber(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isObject(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isString(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isUndefined(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public isUndefinedOrNull(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public lastIndexOf(obj: Array<T>, object: T, startIndex?: number): number

Parameters

  • obj: Array<T>
  • object: T
  • startIndex?: number optional

Returns

number

public makeArray(obj: any): Array<any>

Parameters

  • obj: any

Returns

Array<any>

public map(array: Array<T>, callback: (elementOfArray: T, indexInArray: number) => U): Array<U>

Parameters

  • array: Array<T>
  • callback: (elementOfArray: T, indexInArray: number) => U

Returns

Array<U>

public map(array: MQueryResultSet, callback: (elementOfArray: T, indexInArray: number) => U): MQueryResultSet

Parameters

  • array: MQueryResultSet
  • callback: (elementOfArray: T, indexInArray: number) => U

Returns

MQueryResultSet

public map(array: Array<T>, callback: (elementOfArray: T) => U): Array<U>

Parameters

  • array: Array<T>
  • callback: (elementOfArray: T) => U

Returns

Array<U>

public map(array: MQueryResultSet, callback: (elementOfArray: T) => U): MQueryResultSet

Parameters

Returns

MQueryResultSet

public proxy(fn: (...args: any[]) => any, context: any, args?: Array<any>): Function

Parameters

  • fn: (...args: any[]) => any
  • context: any
  • args?: Array<any> optional

Returns

Function

public proxy(context: any, name: string, args?: Array<any>): any

Parameters

  • context: any
  • name: string
  • args?: Array<any> optional

Returns

any

public ready(callback: () => void)

Parameters

  • callback: () => void

public removeData(element: HTMLElement, name?: string): MQueryResultSetElements

Parameters

  • element: HTMLElement
  • name?: string optional

Returns

MQueryResultSetElements

public some(obj: Array<T>, fn: (elementOfArray: T, indexInArray: number) => boolean, context?: any): boolean

Parameters

  • obj: Array<T>
  • fn: (elementOfArray: T, indexInArray: number) => boolean
  • context?: any optional

Returns

boolean

public some(obj: MQueryResultSet, fn: (elementOfArray: T, indexInArray: number) => boolean, context?: any): boolean

Parameters

  • obj: MQueryResultSet
  • fn: (elementOfArray: T, indexInArray: number) => boolean
  • context?: any optional

Returns

boolean

public some(obj: Array<T>, fn: (elementOfArray: T) => boolean, context?: any): boolean

Parameters

  • obj: Array<T>
  • fn: (elementOfArray: T) => boolean
  • context?: any optional

Returns

boolean

public some(obj: MQueryResultSet, fn: (elementOfArray: T) => boolean, context?: any): boolean

Parameters

  • obj: MQueryResultSet
  • fn: (elementOfArray: T) => boolean
  • context?: any optional

Returns

boolean

public throttle(fn: Function, interval: number, shouldOverrideThrottle: boolean): Function

Parameters

  • fn: Function
  • interval: number
  • shouldOverrideThrottle: boolean

Returns

Function