~ubuntu-branches/ubuntu/raring/maas/raring-updates

« back to all changes in this revision

Viewing changes to src/maasserver/static/jslibs/yui/3.4.1/build/dom-deprecated/dom-deprecated-debug.js

  • Committer: Package Import Robot
  • Author(s): Andres Rodriguez
  • Date: 2012-07-03 17:42:37 UTC
  • mfrom: (1.1.13)
  • Revision ID: package-import@ubuntu.com-20120703174237-p8l0keuuznfg721k
Tags: 0.1+bzr709+dfsg-0ubuntu1
* New Upstream release
* debian/control:
  - Depends on python-celery, python-tempita, libjs-yui3-{full,min},
    libjs-raphael
* debian/maas.install:
  - Install apiclient, celeryconfig.py, maas-import-pxe-files, preseeds_v2.
  - Update to install various files from chroot, rather tha manually copy
    them from the source.
* debian/maas.links: symlink celeryconfig.py
* debian/maas.maas-celery.upstart: Add job.
* debian/rules:
  - Install celery upstart job.
  - Do not install jslibs as packages are now used.
  - Drop copying of maas_local_settings_sample.py as source now ships
    a maas_local_settings.py
* debian/patches:
  - 04-maas-http-fix.patch: Drop. Merged upstream.
  - 01-fix-database-settings.patch: Refreshed.
  - 99_enums_js.patch: Added until creation of enum.js / build process
    is fixed.
* debian/maas.postinst: Update bzr version to correctly handle upgrades.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
YUI 3.4.1 (build 4118)
3
 
Copyright 2011 Yahoo! Inc. All rights reserved.
4
 
Licensed under the BSD License.
5
 
http://yuilibrary.com/license/
6
 
*/
7
 
YUI.add('dom-deprecated', function(Y) {
8
 
 
9
 
 
10
 
Y.mix(Y.DOM, {
11
 
    // @deprecated
12
 
    children: function(node, tag) {
13
 
        var ret = [];
14
 
        if (node) {
15
 
            tag = tag || '*';
16
 
            ret = Y.Selector.query('> ' + tag, node); 
17
 
        }
18
 
        return ret;
19
 
    },
20
 
 
21
 
    // @deprecated
22
 
    firstByTag: function(tag, root) {
23
 
        var ret;
24
 
        root = root || Y.config.doc;
25
 
 
26
 
        if (tag && root.getElementsByTagName) {
27
 
            ret = root.getElementsByTagName(tag)[0];
28
 
        }
29
 
 
30
 
        return ret || null;
31
 
    },
32
 
 
33
 
    /*
34
 
     * Finds the previous sibling of the element.
35
 
     * @method previous
36
 
     * @deprecated Use elementByAxis
37
 
     * @param {HTMLElement} element The html element.
38
 
     * @param {Function} fn optional An optional boolean test to apply.
39
 
     * The optional function is passed the current DOM node being tested as its only argument.
40
 
     * If no function is given, the first sibling is returned.
41
 
     * @param {Boolean} all optional Whether all node types should be scanned, or just element nodes.
42
 
     * @return {HTMLElement | null} The matching DOM node or null if none found. 
43
 
     */
44
 
    previous: function(element, fn, all) {
45
 
        return Y.DOM.elementByAxis(element, 'previousSibling', fn, all);
46
 
    },
47
 
 
48
 
    /*
49
 
     * Finds the next sibling of the element.
50
 
     * @method next
51
 
     * @deprecated Use elementByAxis
52
 
     * @param {HTMLElement} element The html element.
53
 
     * @param {Function} fn optional An optional boolean test to apply.
54
 
     * The optional function is passed the current DOM node being tested as its only argument.
55
 
     * If no function is given, the first sibling is returned.
56
 
     * @param {Boolean} all optional Whether all node types should be scanned, or just element nodes.
57
 
     * @return {HTMLElement | null} The matching DOM node or null if none found. 
58
 
     */
59
 
    next: function(element, fn, all) {
60
 
        return Y.DOM.elementByAxis(element, 'nextSibling', fn, all);
61
 
    }
62
 
 
63
 
});
64
 
 
65
 
 
66
 
 
67
 
}, '3.4.1' ,{requires:['dom-base']});