Try loading as AMD module or fall back to default loading
The actual plugin class
Attach functions to the JS library
Set global settings
Initializing stuff for the GUID
The javascript namespace for the library
The css namespace for the library
getGUID
Get a new GUID, adding the desired prefix.
prefix
String: an optional prefix for the hashreturns the GUID as a String
getScript Loads the specified script.
url
String: the url to the scriptsuccess
Function: an optional success callback functionerror
Function: an optional error callback functiongetStyle
Loads the specified css style sheet.
url
String: the url to the style sheetreturn the added link tag as an Object
getInstance
Get the widget instance for the specified element.
element
Object: the element to get the widget forwidget
String or String[]: the widget type, can be specified as a comma-separated list, or an array.
Will continue searching for each type
until an instance is found.
returns the widget instance as an Object
allowAnimation
Enable/disable all automatic animations for the library.
status
Boolean: optional status to setreturns the animation status
Instantiate the library and add it to the global scope
Core
The
UILib
class defines the core of the UI library.author: Julien Ramboz
version: 1.0
requires: jQuery or Zepto DOM library