kafe

Class

Version 3.2.10

kafe core

Source: dist/kafe.js

Properties

chaje

Object

Versions of dependencies / kafe modules

dependencies.jQuery

Object

local jQuery copy ref: http://jquery.com/

env.ie

Number

Internet Explorer version

env.lang

String

Current lang

PARAN

String

kafe author

VESYON

String

kafe version

Methods

bonify

Add module to core

bonify
  • options

Parameters:

  • options Object

    The options

    • name String

      The module name

    • version String

      The module version

    • obj Object

      The module itself

error

Throw kafe errors

error
  • error
Error

Parameters:

  • error Error

    The error with description

Returns:

Error

error The error

Example:

kafe.error(new Error('barf'));

fn.createInstantiableObject

Create a instantiable object By John Resig (MIT Licensed) ref: http://ejohn.org/blog/simple-class-instantiation/

fn.createInstantiableObject (  ) Object

Returns:

Object

The instantiable object

fn.deleteVar

Delete the variable (patch for ie8)

fn.deleteVar
  • name

Parameters:

  • name String

    Name of the variable to delete

fn.lang

Return the language if available or else 'en'

fn.lang
  • dict
  • lang
String

Parameters:

  • dict Object

    The dictionary to check against

  • lang String

    The language to check

Returns:

String

The available language

fn.plugIntojQuery

Add method as jQuery plugin

fn.plugIntojQuery
  • name
  • methods

Parameters:

  • name String

    The jQuery plugin name

  • methods Object[Function]

    Action:Method hash