Namespace: block

ns.page. block

Module to add checkers and block proceed to another URL.

Methods

staticns.page.block.add(fn){ns.page.block}

ns.page.block.js, line 23

Функция блокировки должна вернуть false, если переход нельзя осуществить.

Name Type Description
fn function

staticns.page.block.check(url){Boolean}

ns.page.block.js, line 59

Detect if possible to go to the url. You can add your own checkers with ns.page.block.add(checkerFn)

Name Type Description
url string

URL to go.

staticns.page.block.clear(){ns.page.block}

ns.page.block.js, line 48

Очищает все функции блокировки.

staticns.page.block.remove(fn){ns.page.block}

ns.page.block.js, line 34

Remove function to check.

Name Type Description
fn function
comments powered by Disqus