1AjaxControlToolkit.FloatingBehavior = function(element) { 2AjaxControlToolkit.FloatingBehavior.initializeBase(this,[element]);var _handle;var _location;var _dragStartLocation;var _profileProperty;var _profileComponent;var _mouseDownHandler = Function.createDelegate(this, mouseDownHandler);this.add_move = function(handler) { 3this.get_events().addHandler('move', handler);} 4this.remove_move = function(handler) { 5this.get_events().removeHandler('move', handler);} 6this.get_handle = function() { 7return _handle;} 8this.set_handle = function(value) { 9if (_handle != null) { 10$removeHandler(_handle, "mousedown", _mouseDownHandler);} 11_handle = value;$addHandler(_handle, "mousedown", _mouseDownHandler);} 12this.get_profileProperty = function() { 13return _profileProperty;} 14this.set_profileProperty = function(value) { 15_profileProperty = value;} 16this.get_profileComponent = function() { 17return _profileComponent;} 18this.set_profileComponent = function(value) { 19_profileComponent = value;} 20this.get_location = function() { 21return _location;} 22this.set_location = function(value) { 23if (_location != value) { 24_location = value;if (this.get_isInitialized()) { 25$common.setLocation(this.get_element(), _location);} 26this.raisePropertyChanged('location');} 27} 28this.initialize = function() { 29AjaxControlToolkit.FloatingBehavior.callBaseMethod(this, 'initialize');AjaxControlToolkit.DragDropManager.registerDropTarget(this);var el = this.get_element();if (!_location) { 30_location = $common.getLocation(el);} 31el.style.position = "fixed";$common.setLocation(el, _location);} 32this.dispose = function() { 33AjaxControlToolkit.DragDropManager.unregisterDropTarget(this);if (_handle && _mouseDownHandler) { 34$removeHandler(_handle, "mousedown", _mouseDownHandler);} 35_mouseDownHandler = null;AjaxControlToolkit.FloatingBehavior.callBaseMethod(this, 'dispose');} 36this.checkCanDrag = function(element) { 37var undraggableTagNames = ["input", "button", "select", "textarea", "label"];var tagName = element.tagName;if ((tagName.toLowerCase() == "a") && (element.href != null) && (element.href.length > 0)) { 38return false;} 39if (Array.indexOf(undraggableTagNames, tagName.toLowerCase()) > -1) { 40return false;} 41return true;} 42function mouseDownHandler(ev) { 43window._event = ev;var el = this.get_element();if (this.checkCanDrag(ev.target)) { 44_dragStartLocation = $common.getLocation(el);ev.preventDefault();this.startDragDrop(el);} 45} 46this.get_dragDataType = function() { 47return "_floatingObject";} 48this.getDragData = function(context) { 49return null;} 50this.get_dragMode = function() { 51return AjaxControlToolkit.DragMode.Move;} 52this.onDragStart = function() { } 53this.onDrag = function() { } 54this.onDragEnd = function(canceled) { 55if (!canceled) { 56var handler = this.get_events().getHandler('move');if(handler) { 57var cancelArgs = new Sys.CancelEventArgs();handler(this, cancelArgs);canceled = cancelArgs.get_cancel();} 58} 59var el = this.get_element();if (canceled) { 60$common.setLocation(el, _dragStartLocation);} else { 61_location = $common.getLocation(el);this.raisePropertyChanged('location');} 62} 63this.startDragDrop = function(dragVisual) { 64AjaxControlToolkit.DragDropManager.startDragDrop(this, dragVisual, null);} 65this.get_dropTargetElement = function() { 66return document.body;} 67this.canDrop = function(dragMode, dataType, data) { 68return (dataType == "_floatingObject");} 69this.drop = function(dragMode, dataType, data) {} 70this.onDragEnterTarget = function(dragMode, dataType, data) {} 71this.onDragLeaveTarget = function(dragMode, dataType, data) {} 72this.onDragInTarget = function(dragMode, dataType, data) {} 73} 74AjaxControlToolkit.FloatingBehavior.registerClass('AjaxControlToolkit.FloatingBehavior', AjaxControlToolkit.BehaviorBase, AjaxControlToolkit.IDragSource, AjaxControlToolkit.IDropTarget, Sys.IDisposable);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.