~ubuntu-branches/ubuntu/lucid/loggerhead/lucid-security

« back to all changes in this revision

Viewing changes to loggerhead/static/javascript/yui/build/dom/dom-style.js

  • Committer: Bazaar Package Importer
  • Author(s): James Westby, Roland Mas, Jelmer Vernooij, James Westby
  • Date: 2009-08-26 13:18:03 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090826131803-0ce1fhaetci8b0c5
Tags: 1.17-0ubuntu1
[ Roland Mas ]
* Use the YUI library provided by libjs-yui. (Closes: #511286)

[ Jelmer Vernooij ]
* Use my debian.org address in Uploaders field.
* Add ${misc:Depends} to please lintian.
* Suggest recent version of paste, which doesn't expose internal port
  numbers in links. (Closes: #507000)
* Bump standards version to 3.8.1.

[ James Westby ]
* New upstream release.
* Drop get-orig-source rule in favour of debian/watch.
* Add python-pkg-resources and python-paste to Build-Depends,
  python-pkg-resources to Depends and python-simplejson to
  Recommends due to dependency changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
Copyright (c) 2008, Yahoo! Inc. All rights reserved.
3
3
Code licensed under the BSD License:
4
4
http://developer.yahoo.net/yui/license.txt
5
 
version: 3.0.0pr1
 
5
version: 3.0.0pr2
6
6
*/
7
7
YUI.add('dom-style', function(Y) {
8
8
 
47
47
     * @param {String} att The style property to set. 
48
48
     * @param {String|Number} val The value. 
49
49
     */
50
 
    setStyle: function(node, att, val) {
51
 
        var style = node[STYLE],
 
50
    setStyle: function(node, att, val, style) {
 
51
        style = node[STYLE],
52
52
            CUSTOM_STYLES = Y.DOM.CUSTOM_STYLES;
53
53
 
54
54
        if (style) {
156
156
 
157
157
}
158
158
 
 
159
 
159
160
/**
160
161
 * Add style management functionality to DOM.
161
162
 * @module dom
232
233
    }
233
234
};
234
235
 
 
236
 
235
237
/**
236
238
 * Add style management functionality to DOM.
237
239
 * @module dom
295
297
 
296
298
        if (property === OPACITY) {
297
299
            value = Y.DOM.CUSTOM_STYLES[OPACITY].get(el);        
298
 
        } else if (!current || current.indexOf(PX) > -1) { // no need to convert
 
300
        } else if (!current || (current.indexOf && current.indexOf(PX) > -1)) { // no need to convert
299
301
            value = current;
300
302
        } else if (Y.DOM.IE.COMPUTED[property]) { // use compute function
301
303
            value = Y.DOM.IE.COMPUTED[property](el, property);
448
450
 
449
451
 
450
452
 
451
 
}, '3.0.0pr1' ,{skinnable:false, requires:['dom-base']});
 
453
 
 
454
}, '3.0.0pr2' ,{skinnable:false, requires:['dom-base']});