src/aria/utils/dragdrop/Drag.js
function (logError) {
                var handle = this.handle;
                var cursor = this.cursor;
                var element;

                if (!handle) {
                    element = this.getElement(logError);
                } else {
                    var typeUtils = ariaUtilsType;

                    if (typeUtils.isString(handle)) {
                        handle = ariaUtilsDom.getElementById(handle);
                    }
                    if (typeUtils.isHTMLElement(handle)) {
                        this.handle = handle;
                        element = handle;
                    } else if (logError === true) {
                        this.$logError(this.INVALID_ATTRIBUTE, ["handle", "params"]);
                    }
                }
                if (element) {
                    if (cursor) {
                        if (this.originalCursor == null) {
                            this.originalCursor = element.style.cursor;
                        }
                        element.style.cursor = cursor;
                    }
                    return element;
                }

            }
function (logError) {
                var handle = this.handle;
                var cursor = this.cursor;
                var element;

                if (!handle) {
                    element = this.getElement(logError);
                } else {
                    var typeUtils = ariaUtilsType;

                    if (typeUtils.isString(handle)) {
                        handle = ariaUtilsDom.getElementById(handle);
                    }
                    if (typeUtils.isHTMLElement(handle)) {
                        this.handle = handle;
                        element = handle;
                    } else if (logError === true) {
                        this.$logError(this.INVALID_ATTRIBUTE, ["handle", "params"]);
                    }
                }
                if (element) {
                    if (cursor) {
                        if (this.originalCursor == null) {
                            this.originalCursor = element.style.cursor;
                        }
                        element.style.cursor = cursor;
                    }
                    return element;
                }

            }
function ( logError ) { var handle = this . handle ; var cursor = this . cursor ; var element ; if ( ! handle ) { element = this . getElement ( logError ) ; } else { var typeUtils = ariaUtilsType ; if ( typeUtils . isString ( handle ) ) { handle = ariaUtilsDom . getElementById ( handle ) ; } if ( typeUtils . isHTMLElement ( handle ) ) { this . handle = handle ; element = handle ; } else if ( logError === true ) { this . $logError ( this . INVALID_ATTRIBUTE , [ "handle" , "params" ] ) ; } } if ( element ) { if ( cursor ) { if ( this . originalCursor == null ) { this . originalCursor = element . style . cursor ; } element . style . cursor = cursor ; } return element ; } }
Get the element from which drag can start. This is the handle if specified or the draggable element
itself otherwise.
@param {Boolean} logError Whether an error should be logged when the draggable element is not found
@return {HTMLElement}
Get the element from which drag can start . This is the handle if specified or the draggable element itself otherwise .