~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/node-style/node-style.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('node-style', function(Y) {
8
 
 
9
 
(function(Y) {
10
 
/**
11
 
 * Extended Node interface for managing node styles.
12
 
 * @module node
13
 
 * @submodule node-style
14
 
 */
15
 
 
16
 
var methods = [
17
 
    /**
18
 
     * Returns the style's current value.
19
 
     * @method getStyle
20
 
     * @for Node
21
 
     * @param {String} attr The style attribute to retrieve. 
22
 
     * @return {String} The current value of the style property for the element.
23
 
     */
24
 
    'getStyle',
25
 
 
26
 
    /**
27
 
     * Returns the computed value for the given style property.
28
 
     * Use CSS case (e.g. 'background-color') for multi-word properties.
29
 
 
30
 
     * @method getComputedStyle
31
 
     * @param {String} attr The style attribute to retrieve. 
32
 
     * @return {String} The computed value of the style property for the element.
33
 
     */
34
 
    'getComputedStyle',
35
 
 
36
 
    /**
37
 
     * Sets a style property of the node. Use CSS case (e.g. 'background-color')
38
 
     * for multi-word properties.
39
 
     * @method setStyle
40
 
     * @param {String} attr The style attribute to set. 
41
 
     * @param {String|Number} val The value. 
42
 
     * @chainable
43
 
     */
44
 
    'setStyle',
45
 
 
46
 
    /**
47
 
     * Sets multiple style properties on the node.
48
 
     * @method setStyles
49
 
     * @param {Object} hash An object literal of property:value pairs. 
50
 
     * @chainable
51
 
     */
52
 
    'setStyles'
53
 
];
54
 
Y.Node.importMethod(Y.DOM, methods);
55
 
/**
56
 
 * Returns an array of values for each node.
57
 
 * @method getStyle
58
 
 * @for NodeList
59
 
 * @see Node.getStyle
60
 
 * @param {String} attr The style attribute to retrieve. 
61
 
 * @return {Array} The current values of the style property for the element.
62
 
 */
63
 
 
64
 
/**
65
 
 * Returns an array of the computed value for each node.
66
 
 * @method getComputedStyle
67
 
 * @see Node.getComputedStyle
68
 
 * @param {String} attr The style attribute to retrieve. 
69
 
 * @return {Array} The computed values for each node.
70
 
 */
71
 
 
72
 
/**
73
 
 * Sets a style property on each node.
74
 
 * @method setStyle
75
 
 * @see Node.setStyle
76
 
 * @param {String} attr The style attribute to set. 
77
 
 * @param {String|Number} val The value. 
78
 
 * @chainable
79
 
 */
80
 
 
81
 
/**
82
 
 * Sets multiple style properties on each node.
83
 
 * @method setStyles
84
 
 * @see Node.setStyles
85
 
 * @param {Object} hash An object literal of property:value pairs. 
86
 
 * @chainable
87
 
 */
88
 
Y.NodeList.importMethod(Y.Node.prototype, methods);
89
 
})(Y);
90
 
 
91
 
 
92
 
}, '3.4.1' ,{requires:['dom-style', 'node-base']});