1(function() { 2 'use strict' 3 4 var Waypoint = window.Waypoint 5 6 function createExtension(framework) { 7 return function() { 8 var waypoints = [] 9 var overrides = arguments[0] 10 11 if (framework.isFunction(arguments[0])) { 12 overrides = framework.extend({}, arguments[1]) 13 overrides.handler = arguments[0] 14 } 15 16 this.each(function() { 17 var options = framework.extend({}, overrides, { 18 element: this 19 }) 20 if (typeof options.context === 'string') { 21 options.context = framework(this).closest(options.context)[0] 22 } 23 waypoints.push(new Waypoint(options)) 24 }) 25 26 return waypoints 27 } 28 } 29 30 if (window.jQuery) { 31 window.jQuery.fn.waypoint = createExtension(window.jQuery) 32 } 33 if (window.Zepto) { 34 window.Zepto.fn.waypoint = createExtension(window.Zepto) 35 } 36 }())
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.