PageSourceSearch

https://servicedesk.adult-empire.com/includes/ajs/contentretriever/ContentRetriever.js

js adult-empire.com collected 2026-09-25 14:29:59 UTC 2,847 bytes, 79 lines download raw bytes

1define('jira/ajs/contentretriever/content-retriever', ['jira/lib/class', 'jquery'], function (Class, jQuery) {
2  'use strict';
3
4  /**
5   * A content retriever has methods that allow both synchronous and asynchronous content retrieval to be
6   * to be treated in the same way.
7   *
8   * @class ContentRetriever
9   * @extends Class
10   * @abstract
11   * @deprecated use {@link AJS.ProgressiveDataSet} instead.
12   * @see AJS.ProgressiveDataSet
13   */
14  return Class.extend({
15    /**
16     * Starting request
17     *
18     * This method should be called when starting request for content. This is really only used for asynchronous content
19     * retrievers. A common example of it's use is to show loading indicators. The method has to code paths:
20     * - If provided with a function argument adds to array of callbacks.
21     * - If no function provided will execute all callbacks in the array.
22     *
23     * @method
24     * @instance
25     * @param {Function} func - (callback) to be called when request has started
26     */
27    startingRequest: jQuery.noop,
28    /**
29     * Finished request
30     *
31     * This method should be called when request for content is finished. This is really only used for asynchronous
32     * content retrievers. A common example of it's use is to hide loading indicators. The method has to code paths:
33     * - If provided with a function argument adds to array of callbacks.
34     * - If no function provided will execute all callbacks in the array.
35     *
36     * @method
37     * @instance
38     * @param {Function} func - (callback) to be called when request has finished
39     */
40    finishedRequest: jQuery.noop,
41    /**
42     * Gets/Sets cached property.
43     *
44     * Should the request be cached. Only really used in async content retrievers.
45     *
46     * @method
47     * @instance
48     * @param {Boolean}
49     * @return {Boolean}
50     */
51    cache: jQuery.noop,
52    /**
53     * Gets/Sets locked property. Used to validate a new request in async content retrievers. We do not want to be
54     * making new request whilst there is already one issued.
55     *
56     * @method
57     * @instance
58     * @param {Boolean} locked - whether or not a new request can be issued
59     * @return {Boolean}
60     */
61    isLocked: jQuery.noop,
62    /**
63     * Retreives/Gets/Sets content. This method should be able to be called in the following ways.
64     *
65     * contentRetriever.content(function(content) {
66     *      // this function will be called after content has been retrieved
67     * })
68     *
69     * contentRetriever.content() // this will return jQuery wrapped content if available
70     *
71     * @method
72     * @instance
73     * @param {Function | HTMLElement | jQuery}
74     * @return {jQuery}
75     */
76    content: jQuery.noop
77  });
78});
79AJS.namespace('AJS.ContentRetriever', null, require('jira/ajs/contentretriever/content-retriever'));

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.