~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/anim-scroll/anim-scroll-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('anim-scroll', function(Y) {
8
 
 
9
 
/**
10
 
 * Adds support for the <code>scroll</code> property in <code>to</code>
11
 
 * and <code>from</code> attributes.
12
 
 * @module anim
13
 
 * @submodule anim-scroll
14
 
 */
15
 
 
16
 
var NUM = Number;
17
 
 
18
 
//TODO: deprecate for scrollTop/Left properties?
19
 
Y.Anim.behaviors.scroll = {
20
 
    set: function(anim, att, from, to, elapsed, duration, fn) {
21
 
        var
22
 
            node = anim._node, 
23
 
            val = ([
24
 
            fn(elapsed, NUM(from[0]), NUM(to[0]) - NUM(from[0]), duration),
25
 
            fn(elapsed, NUM(from[1]), NUM(to[1]) - NUM(from[1]), duration)
26
 
        ]);
27
 
 
28
 
        if (val[0]) {
29
 
            node.set('scrollLeft', val[0]);
30
 
        }
31
 
 
32
 
        if (val[1]) {
33
 
            node.set('scrollTop', val[1]);
34
 
        }
35
 
    },
36
 
    get: function(anim) {
37
 
        var node = anim._node;
38
 
        return [node.get('scrollLeft'), node.get('scrollTop')];
39
 
    }
40
 
};
41
 
 
42
 
 
43
 
 
44
 
}, '3.4.1' ,{requires:['anim-base']});