Apply the automatic bindings
@param {aria.widgets.CfgBeans:InputCfg|aria.widgets.CfgBeans:ActionWidgetCfg} cfg
@protected
18635
function (cfg) {
            var metaDataObject, localMetaDataObject, localMetaParam;
            var toBind = this.automaticallyBindedProperties;
            var value = null;
            if (cfg) {
                if (cfg.bind) {
                    value = cfg.bind.value; // get any binding on the value
                    // property
                }
            }

            if (value && value.inside) { // only add the meta data convention
                // if a value property has been
                // bound
                metaDataObject = ariaUtilsData._getMeta(value.inside, value.to, false);
                if (!cfg.bind.error) {
                    cfg.bind.error = {
                        "inside" : metaDataObject,
                        "to" : "error"
                    };
                }
                if (!cfg.bind.errorMessages) {
                    cfg.bind.errorMessages = {
                        "inside" : metaDataObject,
                        "to" : "errorMessages"
                    };
                }
                // TODO: need a separation of each widget instances
                // formatErrorMessages,
                // currently no way to reference a widget after it has been
                // disposed.
                // Once this has been resolved then the widget instance
                // reference can be used to create special meta to
                // separate each widgets formatErrorMessages.
                if (!cfg.bind.formatErrorMessages) {
                    cfg.bind.formatErrorMessages = {
                        "inside" : metaDataObject,
                        "to" : "formatErrorMessages"
                    };
                }
                if (!cfg.bind.requireFocus) {
                    cfg.bind.requireFocus = {
                        "inside" : metaDataObject,
                        "to" : "requireFocus"
                    };
                }

                if (cfg.inputMetaData) { // check to see if the inputMetaData
                    // convention is needed, then add
                    // the meta
                    // data for the rest of the automatic bindings
                    localMetaParam = "local:" + cfg.inputMetaData;
                    localMetaDataObject = metaDataObject[localMetaParam];
                    if (localMetaDataObject == null) {
                        localMetaDataObject = {};
                        metaDataObject[localMetaParam] = localMetaDataObject;
                    }

                    for (var i = 0; i < toBind.length; i++) {
                        if (!cfg.bind[toBind[i]]) { // only add a binding if one
                            // doesn't exist
                            cfg.bind[toBind[i]] = {
                                "inside" : localMetaDataObject,
                                "to" : toBind[i]
                            };
                        }
                    }
                }
            }
        }
603091
function (cfg) {
                this.style.transform = (_.isStrictlyObject (cfg) && (
                                            (cfg.translate ? ('translate(' + cfg.translate.x.toFixed (0) + 'px,' + cfg.translate.y.toFixed (0) + 'px) ') : '') +
                                            (cfg.rotate ? ('rotate(' + cfg.rotate + 'rad) ') : '') +
                                            (cfg.scale ? ('scale(' + (new Vec2 (cfg.scale).separatedWith (',')) + ')') : ''))) || '' }
709851
function(cfg, callback) {
  // Input files
  var files = cfg.input_files;

  if (files.length > 0) {
    new gear.Queue({registry: taskRegistry}) // register tasks
    .log(formatLog('Removing files:', files))
    .removeFiles({input: files}, callback)
    .run(callback);
  } else {
    callback();
  }
}
1257205
function (cfg) {

            var jsonValidator = ariaCoreJsonValidator;
            this._cfgOk = jsonValidator.validateCfg("aria.html.beans.TemplateCfg.Properties", cfg);
            if (this._needCreatingModuleCtrl) {
                this._cfgOk = this._cfgOk
                && jsonValidator.validateCfg("aria.templates.CfgBeans.InitModuleCtrl", cfg.moduleCtrl);
            }
        }
175623
function addBindings() {
		function clickHandler(e) {
			// ignore non-left-mouse-clicks and clicks modified with ctrl / command, shift, or alt.
			// See: http://jacklmoore.com/notes/click-events/
			if (!(e.which > 1 || e.shiftKey || e.altKey || e.metaKey || e.ctrlKey)) {
				e.preventDefault();
				launch(this);
			}
		}

		if ($box) {
			if (!init) {
				init = true;

				// Anonymous functions here keep the public method from being cached, thereby allowing them to be redefined on the fly.
				$next.click(function () {
					publicMethod.next();
				});
				$prev.click(function () {
					publicMethod.prev();
				});
				$close.click(function () {
					publicMethod.close();
				});
				$overlay.click(function () {
					if (settings.overlayClose) {
						publicMethod.close();
					}
				});
				
				// Key Bindings
				$(document).bind('keydown.' + prefix, function (e) {
					var key = e.keyCode;
					if (open && settings.escKey && key === 27) {
						e.preventDefault();
						publicMethod.close();
					}
					if (open && settings.arrowKey && $related[1] && !e.altKey) {
						if (key === 37) {
							e.preventDefault();
							$prev.click();
						} else if (key === 39) {
							e.preventDefault();
							$next.click();
						}
					}
				});

				if ($.isFunction($.fn.on)) {
					// For jQuery 1.7+
					$(document).on('click.'+prefix, '.'+boxElement, clickHandler);
				} else {
					// For jQuery 1.3.x -> 1.6.x
					// This code is never reached in jQuery 1.9, so do not contact me about 'live' being removed.
					// This is not here for jQuery 1.9, it's here for legacy users.
					$('.'+boxElement).live('click.'+prefix, clickHandler);
				}
			}
			return true;
		}
		return false;
	}
579826
function parseBindings(bindings) {
        var config = {};

        switch (typeof bindings.value) {
            case 'string':
            case 'function':
                config.title = bindings.value;
                break
            case 'object':
                config = Object.assign({}, bindings.value);
        }

        // Parse args (eg: v-d-tooltip:my-container)
        if (bindings.arg) {
            config.container = "#" + (bindings.arg); // #my-container
        }

        // Parse modifiers. eg: v-d-tooltip.my-modifier
        Object.keys(bindings.modifiers).forEach(function (mod) {
            // Parse if the title allows HTML
            if (/^html$/.test(mod)) {
                config.html = true;

            // Parse animation
            } else if (/^nofade$/.test(mod)) {
                config.animation = false;

            // Parse placement
            } else if (/^(auto|top(left|right)?|bottom(left|right)?|left(top|bottom)?|right(top|bottom)?)$/.test(mod)) {
                config.placement = mod;

            // Parse boundary
            } else if (/^(window|viewport)$/.test(mod)) {
                config.boundary = mod;

            // Parse delay
            } else if (/^d\d+$/.test(mod)) {
                var delay = parseInt(mod.slice(1), 10) || 0;
                if (delay) {
                    config.delay = delay;
                }

            // Parse offset
            }  else if (/^o-?\d+$/.test(mod)) {
                var offset = parseInt(mod.slice(1), 10) || 0;
                if (offset) {
                    config.offset = offset;
                }
            }
        });

        // Parse selected triggers.
        var selectedTriggers = {};
        var triggers = typeof config.trigger === 'string' ? config.trigger.trim().split(/\s+/) : [];

        triggers.forEach(function (trigger) {
            if (validTriggers[trigger]) {
                selectedTriggers[trigger] = true;
            }
        });

        // Parse trigger modifiers. eg: v-d-tooltip.click
        Object.keys(validTriggers).forEach(function (trigger) {
            if (bindings.modifiers[trigger]) {
                selectedTriggers[trigger] = true;
            }
        });

        config.trigger = Object.keys(selectedTriggers).join(' ');

        // Convert `blur` to `focus`
        if (config.trigger === 'blur') {
            config.trigger = 'focus';
        }

        // If there's no trigger assigned, just delete the key.
        if (!config.trigger) {
            delete config.trigger;
        }

        return config
    }
573669
function applyBinds(fns, instance) {
        var i,
            current;

        for (i = fns.length - 1; i >= 0; i -= 1) {
            current = instance[fns[i]];
            instance[fns[i]] = bind(current, instance);
        }
    }
807543
function (cfg) {
            var hasChanged = false, prefName, newVal;
            var prefs = ['maxWidth', 'maxHeight', 'minWidth', 'width', 'height'];

            for (var i = 0, len = prefs.length; i < len; i++) {
                prefName = prefs[i];
                newVal = cfg[prefName];
                if (newVal && newVal != this._cfg[prefName]) {
                    this._cfg[prefName] = newVal;
                    hasChanged = true;
                }
            }

            if (cfg.maximized !== this._cfg.maximized) {
                this._cfg.maximized = cfg.maximized;
                hasChanged = true;
            }

            if (cfg.maximized) {
                this._cfg.widthMaximized = cfg.widthMaximized;
                this._cfg.heightMaximized = cfg.heightMaximized;
                hasChanged = true;
            } else {
                this._cfg.widthMaximized = null;
                this._cfg.heightMaximized = null;
            }

            if (hasChanged) {
                this.$Container._updateSize.call(this);
            }
        }
1126916
function (cfg) {
            if (cfg == null) {
                cfg = this._cfg;
            }

            var bind = cfg.bind;

            if (bind == null) {
                return null;
            }

            return bind.selectedTab;
        }
1115714
function (cfg, context, lineNumber) {
        this.$BindableWidget.constructor.apply(this, arguments);

        this._cfgOk = ariaCoreJsonValidator.validateCfg(this.WIDGET_CFG, cfg);

        if (!this._cfgOk) {
            return;
        }

        this._registerBindings();

        /**
         * Id generated for the button DOM element of the slider.
         * @type String
         * @protected
         */
        this._domId = cfg.id ? context.$getId(cfg.id) : this._createDynamicId();

    }
1025121
function (cfg) {
        var skinObject = cfg.skinObject;

        this._baseId = cfg.id;

        this._skinObject = skinObject;
        this._stateName = cfg.state;

        this._iconsLeft = cfg.iconsLeft;
        this._iconsRight = cfg.iconsRight;

        this._icons = {};

        /**
         * Labels for the tooltips of active icon
         * @protected
         * @type Array
         */
        this._tooltipLabels = cfg.tooltipLabels;

        this._iconsAttributes = cfg.iconsAttributes;
        this._iconsWaiLabel = cfg.iconsWaiLabel;

        ariaUtilsArray.forEach(this._iconsLeft, this._initIcon, this);
        ariaUtilsArray.forEach(this._iconsRight, this._initIcon, this);

        this._outerWidth = cfg.width;
        this._outerHeight = cfg.height;

        this._updateIcons();
        this._updateFrameWidth();

        cfg.width = this._frameWidth;
        this._frame = ariaWidgetsFramesFrameFactory.createFrame(cfg);
        this.domElementNbr = this._frame.domElementNbr + this._iconsLeft.length + this._iconsRight.length;
        this.innerWidth = this._frame.innerWidth;
        this.innerHeight = this._frame.innerHeight;
    }
742042
function (propertyName, newValue) {
            if (!this._cfg) {
                return;
            }
            if (propertyName === "items" && this._cfg.bind.hasOwnProperty(propertyName)) {
                var oldValue = this.getProperty(propertyName);
                this._cfg[propertyName] = newValue;
                this._onBoundPropertyChange(propertyName, newValue, oldValue);
            } else {
                this.$TemplateBasedWidget.setWidgetProperty.apply(this, arguments);
            }
        }
687209
function (cfg) {
            var carousel = this;

            if (cfg.prev) {
                Event.on(cfg.prev, "click", scrollPageBackward, carousel);
            }
            if (cfg.next) {
                Event.on(cfg.next, "click", scrollPageForward, carousel);
            }
        }
293672
function(cfg) {
        if (! _engine) {
            if (! YL.isString(cfg.swfURL)) {cfg.swfURL = Y.StorageEngineSWF.SWFURL;}
            if (! cfg.containerID) {
                var bd = document.getElementsByTagName('body')[0],
                    container = bd.appendChild(document.createElement('div'));
                cfg.containerID = YD.generateId(container);
            }

            if (! cfg.attributes) {cfg.attributes  = {};}
            if (! cfg.attributes.flashVars) {cfg.attributes.flashVars = {};}
            cfg.attributes.flashVars.useCompression = 'true';
            cfg.attributes.version = 9.115;
            _engine = new YAHOO.widget.SWF(cfg.containerID, cfg.swfURL, cfg.attributes);
        }
    }
198383
function () {
            // this._cfg can be null due to the following execution chain: native focus -> native blur -> AutoComplete
            // bound value update in the data model -> bindRefreshTo section refresh
            if (this._firstFocus && this._cfg && this._cfg.autoselect) {
                // this allow to click again and put the cursor at a given position
                this._firstFocus = false;
                var field = this.getTextInputField();
                var start = 0;
                var end = (field.value.length) ? field.value.length : 0;
                if (end) {
                    this.setCaretPosition(start, end);
                }
            }
        }
978482
function (cfg) {
                var listeners = cfg.on;

                this._chainListener(listeners, "blur", {
                    fn : bidirectionalBlurBinding,
                    scope : this
                });

                if ((!_placeholderSupported && cfg.placeholder) || cfg.autoselect) {
                    this._chainListener(listeners, "focus", {
                        fn : focusBinding,
                        scope : this
                    });

                    this._chainListener(listeners, "click", {
                        fn : clickBinding,
                        scope : this
                    });

                    this._chainListener(listeners, "keydown", {
                        fn : keyDownCallback,
                        scope : this
                    });

                    this._chainListener(listeners, "type", {
                        fn : this._setPlaceholder,
                        scope : this
                    });
                }
            }
949209
function () {
            var binding = this._binding;
            if (binding) {
                ariaUtilsJson.setValue(binding.inside, binding.to, this._value, this._bindingCallback);
            }
        }