@@ -12,7 +12,8 @@ var methods = {
1212 var settings = {
1313 time : 3 /* time it will wait before moving to "timeout" after a move event */ ,
1414 initialTime : 8 /* time it will wait before first adding the "timeout" class */ ,
15- exceptionAreas : [ ] /* IDs of elements that, if the mouse is over them, will reset the timer */ ,
15+ exceptionAreas :
16+ [ ] /* IDs of elements that, if the mouse is over them, will reset the timer */ ,
1617 } ;
1718 return this . each ( function ( ) {
1819 var $this = $ ( this ) ,
@@ -156,43 +157,6 @@ $.extend($.expr[":"], {
156157 } ,
157158} ) ;
158159
159- // Make Visible in scroll
160- $ . fn . makeVisibleInScroll = function ( parent_id ) {
161- var absoluteParent = null ;
162- if ( typeof parent_id === "string" ) {
163- absoluteParent = $ ( "#" + parent_id ) ;
164- } else if ( parent_id ) {
165- absoluteParent = $ ( parent_id ) ;
166- }
167-
168- return this . each ( function ( ) {
169- var $this = $ ( this ) ,
170- parent ;
171- if ( ! absoluteParent ) {
172- parent = $this . parents ( ":scrollable" ) ;
173- if ( parent . length > 0 ) {
174- parent = $ ( parent [ 0 ] ) ;
175- } else {
176- parent = $ ( window ) ;
177- }
178- } else {
179- parent = absoluteParent ;
180- }
181-
182- var elemTop = $this . position ( ) . top ;
183- var elemBottom = $this . height ( ) + elemTop ;
184-
185- var viewTop = parent . scrollTop ( ) ;
186- var viewBottom = parent . height ( ) + viewTop ;
187-
188- if ( elemTop < viewTop ) {
189- parent . scrollTop ( elemTop ) ;
190- } else if ( elemBottom > viewBottom - parent . height ( ) / 2 ) {
191- parent . scrollTop ( elemTop - ( parent . height ( ) - $this . height ( ) ) / 2 ) ;
192- }
193- } ) ;
194- } ;
195-
196160//Work around warning for jQuery 3.x:
197161//JQMIGRATE: jQuery.fn.offset() requires an element connected to a document
198162$ . fn . safeOffset = function ( ) {
@@ -212,67 +176,6 @@ $.fn.safeOffset = function () {
212176 return $ . fn . offset . apply ( this , arguments ) ;
213177} ;
214178
215- //Make absolute location
216- $ . fn . setPositionAbsolute = function ( element , offsettop , offsetleft ) {
217- return this . each ( function ( ) {
218- // set absolute location for based on the element passed
219- // dynamically since every browser has different settings
220- var $this = $ ( this ) ;
221- var thiswidth = $ ( this ) . width ( ) ;
222- var pos = element . safeOffset ( ) ;
223- var width = element . width ( ) ;
224- var height = element . height ( ) ;
225- var setleft = pos . left + width - thiswidth + offsetleft ;
226- var settop = pos . top + height + offsettop ;
227- $this . css ( {
228- "z-index" : 1 ,
229- "position" : "absolute" ,
230- "marginLeft" : 0 ,
231- "marginTop" : 0 ,
232- "left" : setleft + "px" ,
233- "top" : settop + "px" ,
234- "width" : thiswidth ,
235- } ) ;
236- $this . remove ( ) . appendTo ( "body" ) . show ( ) ;
237- } ) ;
238- } ;
239-
240- $ . fn . positionAncestor = function ( selector ) {
241- var left = 0 ;
242- var top = 0 ;
243- this . each ( function ( ) {
244- // check if current element has an ancestor matching a selector
245- // and that ancestor is positioned
246- var $ancestor = $ ( this ) . closest ( selector ) ;
247- if ( $ancestor . length && $ancestor . css ( "position" ) !== "static" ) {
248- var $child = $ ( this ) ;
249- var childMarginEdgeLeft =
250- $child . safeOffset ( ) . left - parseInt ( $child . css ( "marginLeft" ) , 10 ) ;
251- var childMarginEdgeTop =
252- $child . safeOffset ( ) . top - parseInt ( $child . css ( "marginTop" ) , 10 ) ;
253- var ancestorPaddingEdgeLeft =
254- $ancestor . safeOffset ( ) . left +
255- parseInt ( $ancestor . css ( "borderLeftWidth" ) , 10 ) ;
256- var ancestorPaddingEdgeTop =
257- $ancestor . safeOffset ( ) . top +
258- parseInt ( $ancestor . css ( "borderTopWidth" ) , 10 ) ;
259- left = childMarginEdgeLeft - ancestorPaddingEdgeLeft ;
260- top = childMarginEdgeTop - ancestorPaddingEdgeTop ;
261- // we have found the ancestor and computed the position
262- // stop iterating
263- return false ;
264- }
265- } ) ;
266- return {
267- left : left ,
268- top : top ,
269- } ;
270- } ;
271-
272- $ . fn . findInclusive = function ( selector ) {
273- return this . find ( "*" ) . addBack ( ) . filter ( selector ) ;
274- } ;
275-
276179$ . fn . slideIn = function ( speed , easing , callback ) {
277180 return this . animate ( { width : "show" } , speed , easing , callback ) ;
278181} ;
@@ -281,20 +184,4 @@ $.fn.slideOut = function (speed, easing, callback) {
281184 return this . animate ( { width : "hide" } , speed , easing , callback ) ;
282185} ;
283186
284- // case-insensitive :contains
285- $ . expr [ ":" ] . Contains = function ( a , i , m ) {
286- return $ ( a ) . text ( ) . toUpperCase ( ) . indexOf ( m [ 3 ] . toUpperCase ( ) ) >= 0 ;
287- } ;
288-
289- $ . fn . scopedFind = function ( selector ) {
290- /* If the selector starts with an object id do a global search,
291- * otherwise do a local search.
292- */
293- if ( selector . indexOf ( "#" ) === 0 ) {
294- return $ ( selector ) ;
295- } else {
296- return this . find ( selector ) ;
297- }
298- } ;
299-
300187export default undefined ;
0 commit comments