PageSourceSearch

https://notnul.com/ScriptResource.axd?d=wGudlNUh3NXCjvyZmqc7ewa7Vr…Tk1bNfX8S9CYQ2BVXgLh2MFrQfKKLkg2&t=51e37521

js notnul.com collected 2026-10-02 06:34:36 UTC 17,091 bytes, 468 lines download raw bytes

vendor: 11,434 bytes, lines 1-318
1// Name:        jQuery.jQueryUIWidget.debug.js
2// Assembly:    AjaxControlToolkit
3// Version:     4.1.7.1213
4// FileVersion: 4.1.7.1213
5// (c) 2010 CodePlex Foundation
6(function ($, undefined) {
7
8    var uuid = 0,
9        slice = Array.prototype.slice,
10        _cleanData = $.cleanData;
11    $.cleanData = function (elems) {
12        for (var i = 0, elem; (elem = elems[i]) != null; i++) {
13            try {
14                $(elem).triggerHandler("remove");
15            } catch (e) { }
16        }
17        _cleanData(elems);
18    };
19
20    $.widget = function (name, base, prototype) {
21        var fullName, existingConstructor, constructor, basePrototype,
22            proxiedPrototype = {},
23            namespace = name.split(".")[0];
24
25        name = name.split(".")[1];
26        fullName = namespace + "-" + name;
27
28        if (!prototype) {
29            prototype = base;
30            base = $.Widget;
31        }
32
33        $.expr[":"][fullName.toLowerCase()] = function (elem) {
34            return !!$.data(elem, fullName);
35        };
36
37        $[namespace] = $[namespace] || {};
38        existingConstructor = $[namespace][name];
39        constructor = $[namespace][name] = function (options, element) {
40            if (!this._createWidget) {
41                return new constructor(options, element);
42            }
43
44            if (arguments.length) {
45                this._createWidget(options, element);
46            }
47        };
48        $.extend(constructor, existingConstructor, {
49            version: prototype.version,
50            _proto: $.extend({}, prototype),
51            _childConstructors: []
52        });
53
54        basePrototype = new base();
55        basePrototype.options = $.widget.extend({}, basePrototype.options);
56        $.each(prototype, function (prop, value) {
57            if (!$.isFunction(value)) {
58                proxiedPrototype[prop] = value;
59                return;
60            }
61            proxiedPrototype[prop] = (function () {
62                var _super = function () {
63                    return base.prototype[prop].apply(this, arguments);
64                },
65                    _superApply = function (args) {
66                        return base.prototype[prop].apply(this, args);
67                    };
68                return function () {
69                    var __super = this._super,
70                        __superApply = this._superApply,
71                        returnValue;
72
73                    this._super = _super;
74                    this._superApply = _superApply;
75
76                    returnValue = value.apply(this, arguments);
77
78                    this._super = __super;
79                    this._superApply = __superApply;
80
81                    return returnValue;
82                };
83            })();
84        });
85        constructor.prototype = $.widget.extend(basePrototype, {
86            widgetEventPrefix: existingConstructor ? (basePrototype.widgetEventPrefix || name) : name
87        }, proxiedPrototype, {
88            constructor: constructor,
89            namespace: namespace,
90            widgetName: name,
91            widgetFullName: fullName
92        });
93
94        if (existingConstructor) {
95            $.each(existingConstructor._childConstructors, function (i, child) {
96                var childPrototype = child.prototype;
97
98                $.widget(childPrototype.namespace + "." + childPrototype.widgetName, constructor, child._proto);
99            });
100            delete existingConstructor._childConstructors;
101        } else {
102            base._childConstructors.push(constructor);
103        }
104
105        $.widget.bridge(name, constructor);
106
107        return constructor;
108    };
109
110    $.widget.extend = function (target) {
111        var input = slice.call(arguments, 1),
112            inputIndex = 0,
113            inputLength = input.length,
114            key,
115            value;
116        for (; inputIndex < inputLength; inputIndex++) {
117            for (key in input[inputIndex]) {
118                value = input[inputIndex][key];
119                if (input[inputIndex].hasOwnProperty(key) && value !== undefined) {
120                    if ($.isPlainObject(value)) {
121                        target[key] = $.isPlainObject(target[key]) ?
122                            $.widget.extend({}, target[key], value) :
123                            $.widget.extend({}, value);
124                    } else {
125                        target[key] = value;
126                    }
127                }
128            }
129        }
130        return target;
131    };
132
133    $.widget.bridge = function (name, object) {
134        var fullName = object.prototype.widgetFullName || name;
135        $.fn[name] = function (options) {
136            var isMethodCall = typeof options === "string",
137                args = slice.call(arguments, 1),
138                returnValue = this;
139
140            options = !isMethodCall && args.length ?
141                $.widget.extend.apply(null, [options].concat(args)) :
142                options;
143
144            if (isMethodCall) {
145                this.each(function () {
146                    var methodValue,
147                        instance = $.data(this, fullName);
148                    if (options === "instance") {
149                        returnValue = instance;
150                        return false;
151                    }
152                    if (!instance) {
153                        return $.error("cannot call methods on " + name + " prior to initialization; " +
154                            "attempted to call method '" + options + "'");
155                    }
156                    if (!$.isFunction(instance[options]) || options.charAt(0) === "_") {
157                        return $.error("no such method '" + options + "' for " + name + " widget instance");
158                    }
159                    methodValue = instance[options].apply(instance, args);
160                    if (methodValue !== instance && methodValue !== undefined) {
161                        returnValue = methodValue && methodValue.jquery ?
162                            returnValue.pushStack(methodValue.get()) :
163                            methodValue;
164                        return false;
165                    }
166                });
167            } else {
168                this.each(function () {
169                    var instance = $.data(this, fullName);
170                    if (instance) {
171                        instance.option(options || {})._init();
172                    } else {
173                        $.data(this, fullName, new object(options, this));
174                    }
175                });
176            }
177
178            return returnValue;
179        };
180    };
181
182    $.Widget = function ( /* options, element */) { };
183    $.Widget._childConstructors = [];
184
185    $.Widget.prototype = {
186        widgetName: "widget",
187        widgetEventPrefix: "",
188        defaultElement: "<div>",
189        options: {
190            disabled: false,
191
192            create: null
193        },
194        _createWidget: function (options, element) {
195            element = $(element || this.defaultElement || this)[0];
196            this.element = $(element);
197            this.uuid = uuid++;
198            this.eventNamespace = "." + this.widgetName + this.uuid;
199            this.options = $.widget.extend({},
200                this.options,
201                this._getCreateOptions(),
202                options);
203
204            this.bindings = $();
205            this.hoverable = $();
206            this.focusable = $();
207
208            if (element !== this) {
209                $.data(element, this.widgetFullName, this);
210                this._on(true, this.element, {
211                    remove: function (event) {
212                        if (event.target === element) {
213                            this.destroy();
214                        }
215                    }
216                });
217                this.document = $(element.style ?
218                    element.ownerDocument :
219                    element.document || element);
220                this.window = $(this.document[0].defaultView || this.document[0].parentWindow);
221            }
222
223            this._create();
224            this._trigger("create", null, this._getCreateEventData());
225            this._init();
226        },
227        _getCreateOptions: $.noop,
228        _getCreateEventData: $.noop,
229        _create: $.noop,
230        _init: $.noop,
231
232        destroy: function () {
233            this._destroy();
234            this.element
235                .unbind(this.eventNamespace)
236                .removeData(this.widgetFullName)
237                .removeData($.camelCase(this.widgetFullName));
238            this.widget()
239                .unbind(this.eventNamespace)
240                .removeAttr("aria-disabled")
241                .removeClass(
242                    this.widgetFullName + "-disabled " +
243                    "ui-state-disabled");
244
245            this.bindings.unbind(this.eventNamespace);
246            this.hoverable.removeClass("ui-state-hover");
247            this.focusable.removeClass("ui-state-focus");
248        },
249        _destroy: $.noop,
250
251        widget: function () {
252            return this.element;
253        },
254
255        option: function (key, value) {
256            var options = key,
257                parts,
258                curOption,
259                i;
260
261            if (arguments.length === 0) {
262                return $.widget.extend({}, this.options);
263            }
264
265            if (typeof key === "string") {
266                options = {};
267                parts = key.split(".");
268                key = parts.shift();
269                if (parts.length) {
270                    curOption = options[key] = $.widget.extend({}, this.options[key]);
271                    for (i = 0; i < parts.length - 1; i++) {
272                        curOption[parts[i]] = curOption[parts[i]] || {};
273                        curOption = curOption[parts[i]];
274                    }
275                    key = parts.pop();
276                    if (value === undefined) {
277                        return curOption[key] === undefined ? null : curOption[key];
278                    }
279                    curOption[key] = value;
280                } else {
281                    if (value === undefined) {
282                        return this.options[key] === undefined ? null : this.options[key];
283                    }
284                    options[key] = value;
285                }
286            }
287
288            this._setOptions(options);
289
290            return this;
291        },
292        _setOptions: function (options) {
293            var key;
294
295            for (key in options) {
296                this._setOption(key, options[key]);
297            }
298
299            return this;
300        },
301        _setOption: function (key, value) {
302            this.options[key] = value;
303
304            if (key === "disabled") {
305                this.widget()
306                    .toggleClass(this.widgetFullName + "-disabled", !!value);
307                this.hoverable.removeClass("ui-state-hover");
308                this.focusable.removeClass("ui-state-focus");
309            }
310
311            return this;
312        },
313
314        enable: function () {
315            return this._setOptions({ disabled: false });
316        },
317        disable: function () {
318            return this._setOptions({ disabled: true });
vendor: 5,639 bytes, lines 319-466
319        },
320
321        _on: function (suppressDisabledCheck, element, handlers) {
322            var delegateElement,
323                instance = this;
324
325            if (typeof suppressDisabledCheck !== "boolean") {
326                handlers = element;
327                element = suppressDisabledCheck;
328                suppressDisabledCheck = false;
329            }
330
331            if (!handlers) {
332                handlers = element;
333                element = this.element;
334                delegateElement = this.widget();
335            } else {
336                element = delegateElement = $(element);
337                this.bindings = this.bindings.add(element);
338            }
339
340            $.each(handlers, function (event, handler) {
341                function handlerProxy() {
342                    if (!suppressDisabledCheck &&
343                            (instance.options.disabled === true ||
344                                $(this).hasClass("ui-state-disabled"))) {
345                        return;
346                    }
347                    return (typeof handler === "string" ? instance[handler] : handler)
348                        .apply(instance, arguments);
349                }
350
351                if (typeof handler !== "string") {
352                    handlerProxy.guid = handler.guid =
353                        handler.guid || handlerProxy.guid || $.guid++;
354                }
355
356                var match = event.match(/^(\w+)\s*(.*)$/),
357                    eventName = match[1] + instance.eventNamespace,
358                    selector = match[2];
359                if (selector) {
360                    delegateElement.delegate(selector, eventName, handlerProxy);
361                } else {
362                    element.bind(eventName, handlerProxy);
363                }
364            });
365        },
366
367        _off: function (element, eventName) {
368            eventName = (eventName || "").split(" ").join(this.eventNamespace + " ") + this.eventNamespace;
369            element.unbind(eventName).undelegate(eventName);
370        },
371
372        _delay: function (handler, delay) {
373            function handlerProxy() {
374                return (typeof handler === "string" ? instance[handler] : handler)
375                    .apply(instance, arguments);
376            }
377            var instance = this;
378            return setTimeout(handlerProxy, delay || 0);
379        },
380
381        _hoverable: function (element) {
382            this.hoverable = this.hoverable.add(element);
383            this._on(element, {
384                mouseenter: function (event) {
385                    $(event.currentTarget).addClass("ui-state-hover");
386                },
387                mouseleave: function (event) {
388                    $(event.currentTarget).removeClass("ui-state-hover");
389                }
390            });
391        },
392
393        _focusable: function (element) {
394            this.focusable = this.focusable.add(element);
395            this._on(element, {
396                focusin: function (event) {
397                    $(event.currentTarget).addClass("ui-state-focus");
398                },
399                focusout: function (event) {
400                    $(event.currentTarget).removeClass("ui-state-focus");
401                }
402            });
403        },
404
405        _trigger: function (type, event, data) {
406            var prop, orig,
407                callback = this.options[type];
408
409            data = data || {};
410            event = $.Event(event);
411            event.type = (type === this.widgetEventPrefix ?
412                type :
413                this.widgetEventPrefix + type).toLowerCase();
414            event.target = this.element[0];
415
416            orig = event.originalEvent;
417            if (orig) {
418                for (prop in orig) {
419                    if (!(prop in event)) {
420                        event[prop] = orig[prop];
421                    }
422                }
423            }
424
425            this.element.trigger(event, data);
426            return !($.isFunction(callback) &&
427                callback.apply(this.element[0], [event].concat(data)) === false ||
428                event.isDefaultPrevented());
429        }
430    };
431
432    $.each({ show: "fadeIn", hide: "fadeOut" }, function (method, defaultEffect) {
433        $.Widget.prototype["_" + method] = function (element, options, callback) {
434            if (typeof options === "string") {
435                options = { effect: options };
436            }
437            var hasOptions,
438                effectName = !options ?
439                method :
440                    options === true || typeof options === "number" ?
441                defaultEffect :
442                        options.effect || defaultEffect;
443            options = options || {};
444            if (typeof options === "number") {
445                options = { duration: options };
446            }
447            hasOptions = !$.isEmptyObject(options);
448            options.complete = callback;
449            if (options.delay) {
450                element.delay(options.delay);
451            }
452            if (hasOptions && $.effects && $.effects.effect[effectName]) {
453                element[method](options);
454            } else if (effectName !== method && element[effectName]) {
455                element[effectName](options.duration, options.easing, callback);
456            } else {
457                element.queue(function (next) {
458                    $(this)[method]();
459                    if (callback) {
460                        callback.call(element[0]);
461                    }
462                    next();
463                });
464            }
465        };
466    });
467
468})(actJQuery);

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.