Class: CUI

Defined in: base/CUI.coffee

Variables Summary

__readyFuncs =
[]
__themes =
[]
__ng__ =
true
defaults =
{
  FileUpload: {
    name: "files[]"
  },
  debug: true,
  asserts: true,
  asserts_alert: 'js',
  "class": {}
}
__timeouts =
[]
__timeoutCallbacks =
[]

list of function which we need to call if the timeouts counter changes

__scheduledCallbacks =
[]
__storage =
{
  localStorage: null,
  sessionStorage: null
}

Class Method Summary

Class Method Details

. (void) start()

. (void) getPathToScript()

. (void) ready(func)

. (void) resolvedPromise()

Returns a resolved CUI.Promise.

. (void) rejectedPromise()

Returns a rejected CUI.Promise.

. (void) chainedCall()

calls the as arguments passed functions in order of appearance. if a function returns a deferred or promise, the next function waits for that function to complete the promise if the argument is a value or a promise it is used the same way returns a promise which resolve when all functions resolve or the first doesnt

. (void) chunkWork(_opts = {})

Executes 'call' function in batches of 'chunk_size' for all the 'items'. It must be called with '.call(this, opts)'

. (void) chunkWorkOLD(objects, chunkSize = 10, timeout = 0)

returns a Deferred, the Deferred notifies the worker for each object

. (void) proxyMethods(target, source, methods)

proxy methods

. (void) __callTimeoutChangeCallbacks()

. (void) __removeTimeout(timeout)

. (void) __getTimeoutById(timeoutID, ignoreNotFound = false)

. (void) resetTimeout(timeoutID)

. (void) registerTimeoutChangeCallback(cb)

. (void) setTimeout(_func, ms = 0, track)

. (void) scheduleCallback(_opts)

schedules to run a function after a timeout has occurred. does not schedule the same function a second time returns a deferred, which resolves when the callback is done

. (void) scheduleCallbackCancel(_opts)

call: function callback to cancel return: true if found, false if not

. (void) utf8ArrayBufferToString(arrayBuffer)

. (void) __startTimeout(timeout)

. (void) countTimeouts()

. (void) clearTimeout(timeoutID)

. (void) isTimeoutRunning(timeoutID)

. (void) setInterval(func, ms)

. (void) clearInterval(interval)

. (void) startWebdriverTest()

. (void) getParameterByName(name, search = document.location.search)

. (void) setSessionStorage(key, value)

. (void) getSessionStorage(key = null)

. (void) clearSessionStorage()

. (void) setLocalStorage(key, value)

. (void) getLocalStorage(key = null)

. (void) clearLocalStorage()

. (void) __setStorage(skey, key, value)

. (void) __getStorage(skey, key = null)

. (void) __clearStorage(skey)

. (void) encodeUrlData(params, replacer = null, connect = "&", connect_pair = "=")

. (void) encodeURIComponentNicely(str = "")

. (void) decodeURIComponentNicely(v)

. (void) decodeUrlData(url, replacer = null, connect = "&", connect_pair = "=", use_array = false)

. (void) decodeUrlDataArray(url, replace_map = null, connect = "&", connect_pair = "=")

. (void) mergeMap(targetMap, mergeMap)

Deprecated -> Use CUI.util

. (void) revertMap(map)

Deprecated -> Use CUI.util

. (void) stringMapReplace(s, map)

Deprecated -> Use CUI.util

. (void) isFunction(v)

Deprecated -> Use CUI.util

. (void) isPlainObject(v)

Deprecated -> Use CUI.util

. (void) isEmptyObject(v)

Deprecated -> Use CUI.util

. (void) isMap(v)

Deprecated -> Use CUI.util

. (void) isArray(v)

Deprecated -> Use CUI.util

. (void) inArray(value, array)

Deprecated -> Use CUI.util

. (void) isString(s)

Deprecated -> Use CUI.util

. (void) downloadData(data, fileName)

. (void) evalCode(code)

. (void) appendToUrl(url, data)

. (void) parseLocation(url)

. (void) escapeAttribute(data)

    Quickly fuzzy find classes, mixins, methods, file:

    Control the navigation frame:

    You can focus and blur the search input: