function (control, controlProperty) {
				var bindingContext = control.getBinding(controlProperty);
				var bindingContextModel = bindingContext.getModel();
				var bindingInfoParts = (control.getBindingInfo(controlProperty).parts) ? control.getBindingInfo(controlProperty).parts : [];
				var modelNames = [];

				for (var i = 0; i < bindingInfoParts.length; i++) {
					modelNames.push(bindingInfoParts[i].model);
				}

				var model = {
					names: modelNames,
					path: bindingContext.getPath()
				};

				if (bindingContextModel) {
					model.mode = bindingContextModel.getDefaultBindingMode();
					model.type = bindingContextModel.getMetadata().getName();
					model.data = bindingContextModel.getData ? bindingContextModel.getData('/') : undefined;
				}

				return model;
			}
function (control, controlProperty) {
				var bindingContext = control.getBinding(controlProperty);
				var bindingContextModel = bindingContext.getModel();
				var bindingInfoParts = (control.getBindingInfo(controlProperty).parts) ? control.getBindingInfo(controlProperty).parts : [];
				var modelNames = [];

				for (var i = 0; i < bindingInfoParts.length; i++) {
					modelNames.push(bindingInfoParts[i].model);
				}

				var model = {
					names: modelNames,
					path: bindingContext.getPath()
				};

				if (bindingContextModel) {
					model.mode = bindingContextModel.getDefaultBindingMode();
					model.type = bindingContextModel.getMetadata().getName();
					model.data = bindingContextModel.getData ? bindingContextModel.getData('/') : undefined;
				}

				return model;
			}
function ( control , controlProperty ) { var bindingContext = control . getBinding ( controlProperty ) ; var bindingContextModel = bindingContext . getModel ( ) ; var bindingInfoParts = ( control . getBindingInfo ( controlProperty ) . parts ) ? control . getBindingInfo ( controlProperty ) . parts : [ ] ; var modelNames = [ ] ; for ( var i = 0 ; i < bindingInfoParts . length ; i ++ ) { modelNames . push ( bindingInfoParts [ i ] . model ) ; } var model = { names : modelNames , path : bindingContext . getPath ( ) } ; if ( bindingContextModel ) { model . mode = bindingContextModel . getDefaultBindingMode ( ) ; model . type = bindingContextModel . getMetadata ( ) . getName ( ) ; model . data = bindingContextModel . getData ? bindingContextModel . getData ( '/' ) : undefined ; } return model ; }
Binding Info ================================================================================ 
Creates an object with the context model of a UI5 control.
@param {Object} control
@param {string} controlProperty
@returns {Object}
@private
Binding Info ================================================================================ Creates an object with the context model of a UI5 control .
Returns the model object for a given control property