[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/requirejs/ -> require.js (summary)

(no description)

File Size: 2147 lines (87 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 35 functions

  commentReplace()
  isFunction()
  isArray()
  each()
  eachReverse()
  hasProp()
  getOwn()
  eachProp()
  mixin()
  bind()
  scripts()
  defaultOnError()
  getGlobal()
  makeError()
  newContext()
  trimDots()
  normalize()
  removeScript()
  hasPathFallback()
  splitPrefix()
  makeModuleMap()
  getModule()
  on()
  onError()
  takeGlobalQueue()
  cleanRegistry()
  breakCycle()
  checkLoaded()
  callGetModule()
  removeListener()
  getScriptData()
  intakeDefines()
  fn()
  localRequire()
  getInteractiveScript()

Functions
Functions that are not part of a class:

commentReplace(match, multi, multiText, singlePrefix)   X-Ref
No description

isFunction(it)   X-Ref
No description

isArray(it)   X-Ref
No description

each(ary, func)   X-Ref
Helper function for iterating over an array. If the func returns
a true value, it will break out of the loop.


eachReverse(ary, func)   X-Ref
Helper function for iterating over an array backwards. If the func
returns a true value, it will break out of the loop.


hasProp(obj, prop)   X-Ref
No description

getOwn(obj, prop)   X-Ref
No description

eachProp(obj, func)   X-Ref
Cycles over properties in an object and calls a function for each
property value. If the function returns a truthy value, then the
iteration is stopped.


mixin(target, source, force, deepStringMixin)   X-Ref
Simple function to mix in properties from source into target,
but only if target does not already have a property of the same name.


bind(obj, fn)   X-Ref
No description

scripts()   X-Ref
No description

defaultOnError(err)   X-Ref
No description

getGlobal(value)   X-Ref
No description

makeError(id, msg, err, requireModules)   X-Ref
Constructs an error with a pointer to an URL with more information.

param: {String} id the error ID that maps to an ID on a web page.
param: {String} message human readable error.
param: {Error} [err] the original error, if there is one.
returns: {Error}

newContext(contextName)   X-Ref
No description

trimDots(ary)   X-Ref
Trims the . and .. from an array of path segments.
It will keep a leading path segment if a .. will become
the first path segment, to help with module name lookups,
which act like paths, but can be remapped. But the end result,
all paths that use this function should look normalized.
NOTE: this method MODIFIES the input array.

param: {Array} ary the array of path segments.

normalize(name, baseName, applyMap)   X-Ref
Given a relative module name, like ./something, normalize it to
a real name that can be mapped to a path.

param: {String} name the relative name
param: {String} baseName a real name that the name arg is relative
param: {Boolean} applyMap apply the map config to the value. Should
returns: {String} normalized name

removeScript(name)   X-Ref
No description

hasPathFallback(id)   X-Ref
No description

splitPrefix(name)   X-Ref
No description

makeModuleMap(name, parentModuleMap, isNormalized, applyMap)   X-Ref
Creates a module mapping that includes plugin prefix, module
name, and path. If parentModuleMap is provided it will
also normalize the name via require.normalize()

param: {String} name the module name
param: {String} [parentModuleMap] parent module map
param: {Boolean} isNormalized: is the ID already normalized.
param: {Boolean} applyMap: apply the map config to the ID.
returns: {Object}

getModule(depMap)   X-Ref
No description

on(depMap, name, fn)   X-Ref
No description

onError(err, errback)   X-Ref
No description

takeGlobalQueue()   X-Ref
Internal method to transfer globalQueue items to this context's
defQueue.


cleanRegistry(id)   X-Ref
No description

breakCycle(mod, traced, processed)   X-Ref
No description

checkLoaded()   X-Ref
No description

callGetModule(args)   X-Ref
No description

removeListener(node, func, name, ieName)   X-Ref
No description

getScriptData(evt)   X-Ref
Given an event from a script node, get the requirejs info from it,
and then removes the event listeners on the node.

param: {Event} evt
returns: {Object}

intakeDefines()   X-Ref
No description

fn()   X-Ref
No description

localRequire(deps, callback, errback)   X-Ref
No description

getInteractiveScript()   X-Ref
No description



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1