Function
Static Public Summary | ||
public |
Request() |
|
public |
Returns a function, that, as long as it continues to be invoked, will not be triggered. |
|
public |
|
|
public |
error(args: ...*) |
|
public |
Method to track JS errors if your Google Analytics account. |
|
public |
info(args: ...*) |
|
public |
log(args: ...*) |
|
public |
Execute some polyfill for older and crappy browsers. |
|
public |
warn(args: ...*) |
Static Public
public debounce(func: Function, wait: Number, immediate: Boolean): * source
import debounce from 'starting-blocks/src/utils/debounce.js'
Returns a function, that, as long as it continues to be invoked, will not be triggered.
The function will be called after it stops being called for
N milliseconds. If immediate
is passed, trigger the function on the
leading edge, instead of the trailing.
Return:
* |
public debug(message: *, color: string) source
import {debug} from 'starting-blocks/src/utils/Logger.js'
Params:
Name | Type | Attribute | Description |
message | * | ||
color | string |
|
public error(args: ...*) source
import {error} from 'starting-blocks/src/utils/Logger.js'
Params:
Name | Type | Attribute | Description |
args | ...* |
public gaTrackErrors() source
import gaTrackErrors from 'starting-blocks/src/utils/gaTrackErrors.js'
Method to track JS errors if your Google Analytics account.
public info(args: ...*) source
import {info} from 'starting-blocks/src/utils/Logger.js'
Params:
Name | Type | Attribute | Description |
args | ...* |
public log(args: ...*) source
import {log} from 'starting-blocks/src/utils/Logger.js'
Params:
Name | Type | Attribute | Description |
args | ...* |
public polyfills() source
import polyfills from 'starting-blocks/src/utils/polyfills.js'
Execute some polyfill for older and crappy browsers.
- window.requestAnimFrame
- window.cancelAnimFrame
- Avoid
console
errors in browsers that lack a console.
public warn(args: ...*) source
import {warn} from 'starting-blocks/src/utils/Logger.js'
Params:
Name | Type | Attribute | Description |
args | ...* |