1Type.registerNamespace("Telerik.Web.UI"); 2Telerik.Web.UI.ScrollerOrientation=function(){}; 3Telerik.Web.UI.ScrollerOrientation.prototype={Vertical:0,Horizontal:1}; 4Telerik.Web.UI.ScrollerOrientation.registerEnum("Telerik.Web.UI.ScrollerOrientation"); 5Telerik.Web.UI.ScrollerSpeed=function(){}; 6Telerik.Web.UI.ScrollerSpeed.prototype={Invalid:0,Slow:1,Medium:2,Fast:3,MousewheelDefault:12}; 7Telerik.Web.UI.ScrollerSpeed.registerEnum("Telerik.Web.UI.ScrollerSpeed"); 8Telerik.Web.UI.ArrowPosition=function(){}; 9Telerik.Web.UI.ArrowPosition.prototype={Top:0,Bottom:1,Left:2,Right:3}; 10Telerik.Web.UI.ArrowPosition.registerEnum("Telerik.Web.UI.ArrowPosition"); 11Telerik.Web.UI.Scroller=function(c,a,b){this._timerInterval=10; 12this._scrolledElement=c; 13this._element=a; 14this._orientation=b; 15this._minPosition=0; 16this._maxPosition=null; 17this._currentPosition=0; 18this._speed=Telerik.Web.UI.ScrollerSpeed.Invalid; 19this._direction=0; 20this._events=null; 21this._timer=null; 22this._onTickDelegate=null; 23}; 24Telerik.Web.UI.Scroller.prototype={initialize:function(){this._onTickDelegate=Function.createDelegate(this,this._onTick); 25this._timer=new Telerik.Web.Timer(); 26this._timer.set_interval(this._timerInterval); 27this._timer.add_tick(this._onTickDelegate); 28},dispose:function(){if(this._timer){this._timer.dispose(); 29}this._onTickDelegate=null; 30this._events=null; 31},get_element:function(){return this._element; 32},get_events:function(){if(!this._events){this._events=new Sys.EventHandlerList(); 33}return this._events; 34},add_positionChanged:function(a){this.get_events().addHandler("positionChanged",a); 35},remove_positionChanged:function(a){this.get_events().removeHandler("positionChanged",a); 36},setScrollingLimits:function(b,a){this._minPosition=b; 37this._maxPosition=Math.min(this._getElementSize(),a); 38},isAtMinPosition:function(){return this._currentPosition<=this._minPosition; 39},isAtMaxPosition:function(){return this._currentPosition>=this._maxPosition; 40},resetState:function(){this._resetOverflowStyle(); 41this._scrollTo(0); 42},startScroll:function(b,a){this._speed=b; 43this._direction=a; 44this._timer.set_enabled(true); 45},changeScrollSpeed:function(a){this._speed=a; 46},stopScroll:function(){this._speed=Telerik.Web.UI.ScrollerSpeed.Invalid; 47this._direction=0; 48this._timer.set_enabled(false); 49},scrollToMaxPosition:function(){this._scrollTo(this._maxPosition); 50},_onTick:function(){var a=this._currentPosition+(this._direction*this._speed); 51a=Math.max(a,this._minPosition); 52a=Math.min(a,this._maxPosition); 53this._scrollTo(a); 54if(a==this._minPosition||a==this._maxPosition){this.stopScroll(); 55}},_scrollTo:function(a){var b="left"; 56if(this._orientation==Telerik.Web.UI.ScrollerOrientation.Vertical){b="top"; 57}this._currentPosition=a; 58this._scrolledElement.style[b]=-a+"px"; 59this._raiseEvent("positionChanged",Sys.EventArgs.Empty); 60},_resetOverflowStyle:function(){if($telerik.isIE){this._element.style.overflow="visible"; 61if(this._orientation==Telerik.Web.UI.ItemFlow.Vertical){this._element.style.overflowX="visible"; 62this._element.style.overflowY="hidden"; 63}else{this._element.style.overflowX="hidden"; 64this._element.style.overflowY="hidden"; 65}}else{this._element.style.overflow="hidden"; 66}},_getElementSize:function(){if(this._orientation==Telerik.Web.UI.ScrollerOrientation.Vertical){return this._scrolledElement.offsetHeight; 67}else{return this._scrolledElement.offsetWidth; 68}},_raiseEvent:function(b,a){var c=this.get_events().getHandler(b); 69if(c){if(!a){a=Sys.EventArgs.Empty; 70}c(this,a); 71}}}; 72Telerik.Web.UI.Scroller.registerClass("Telerik.Web.UI.Scroller",null,Sys.IDisposable); 73 74if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();
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.