Module Define

Index

Functions

Functions

define(name: string, deps: Array<string>, def: Function)

Parameters

  • name: string
  • deps: Array<string>
  • def: Function

loadScript(url: string, successCallback: () => void, errCallback: () => void): any

Parameters

  • url: string
  • successCallback: () => void
  • errCallback: () => void

Returns

any

require(req: string, callback: Function)

Loads script from _layouts/15/[req].js

Parameters

  • req: string
  • callback: Function

require(req: Array<string>, callback: Function)

Loads script from _layouts/15/[req].js

Parameters

  • req: Array<string>
  • callback: Function