PageSourceSearch

https://www.elgaronline.com/assets/meta/zd746764f/tapestry5/t53-compatibility.js

js elgaronline.com collected 2026-10-01 08:44:18 UTC 1,703 bytes, 48 lines download raw bytes

1// Copyright 2012 The Apache Software Foundation
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//     http:#www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Provides a small amount of backwards compatibility to the Tapestry 5.3 approach.
16// This provides placeholders for the following:
17//
18// * `T5` namespace, including `extend`, `define`, and `initializers`, `extendInitializers`, and `_` properties
19//
20// * `Tapestry` namespace: just the `Initializer` property, as an alias of `T5.initializers`
21require(["underscore"], function(_) {
22    var T5, Tapestry;
23    T5 = {
24        _: _,
25        extend: function(destination, source) {
26            if (_.isFunction(source)) {
27                source = source();
28            }
29            return _.extend(destination, source);
30        },
31        define: function(name, source) {
32            var namespace;
33            namespace = {};
34            T5[name] = namespace;
35            return T5.extend(namespace, source);
36        },
37        initializers: {},
38        extendInitializers: function(source) {
39            return T5.extend(T5.initializers, source);
40        }
41    };
42    Tapestry = {
43        Initializer: T5.initializers
44    };
45    window.T5 = T5;
46    window.Tapestry = Tapestry;
47    return null;
48});

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.