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

« back to all changes in this revision

Viewing changes to loggerhead/static/javascript/yui/build/anim/anim-debug.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('anim', function(Y) {
8
8
 
55
55
        _instances = {},
56
56
        _timer;
57
57
 
58
 
    var _setPrivate = function(anim, prop, val) {
59
 
        if (typeof prop == 'string') {
60
 
            anim._conf.add(prop, { value: val });
61
 
        } else {
62
 
            Y.each(prop, function(v, n) {
63
 
                _setPrivate(anim, n, v);
64
 
            });
65
 
        }
66
 
    };
67
58
    Y.Anim = function() {
68
59
        Y.Anim.superclass.constructor.apply(this, arguments);
69
60
        _instances[Y.stamp(this)] = this;
87
78
     */
88
79
    Y.Anim.DEFAULT_UNIT = 'px';
89
80
 
 
81
    Y.Anim.DEFAULT_EASING = function (t, b, c, d) {
 
82
        return c * t / d + b; // linear easing
 
83
    };
90
84
 
91
85
    /**
92
86
     * Bucket for custom getters and setters
158
152
         * @type Function
159
153
         */
160
154
        easing: {
161
 
            value: function (t, b, c, d) {
162
 
                return c * t / d + b; // linear easing
 
155
            value: Y.Anim.DEFAULT_EASING,
 
156
 
 
157
            set: function(val) {
 
158
                if (typeof val === 'string' && Y.Easing) {
 
159
                    return Y.Easing[val];
 
160
                }
163
161
            }
164
162
        },
165
163
 
400
398
        _added: false,
401
399
 
402
400
        _start: function() {
403
 
            _setPrivate(this, START_TIME, new Date() - this.get(ELAPSED_TIME));
 
401
            this._set(START_TIME, new Date() - this.get(ELAPSED_TIME));
404
402
            this._actualFrames = 0;
405
403
            if (!this.get(PAUSED)) {
406
404
                this._initAttr();
412
410
        },
413
411
 
414
412
        _pause: function() {
415
 
            _setPrivate(this, START_TIME, null);
416
 
            _setPrivate(this, PAUSED, true);
 
413
            this._set(START_TIME, null);
 
414
            this._set(PAUSED, true);
417
415
            delete _running[Y.stamp(this)];
418
416
 
419
417
            /**
426
424
        },
427
425
 
428
426
        _resume: function() {
429
 
            _setPrivate(this, PAUSED, false);
 
427
            this._set(PAUSED, false);
430
428
            _running[Y.stamp(this)] = this;
431
429
 
432
430
            /**
439
437
        },
440
438
 
441
439
        _end: function(finish) {
442
 
            _setPrivate(this, START_TIME, null);
443
 
            _setPrivate(this, ELAPSED_TIME, 0);
444
 
            _setPrivate(this, PAUSED, false);
445
 
            //_setPrivate(this, REVERSE, false);
 
440
            this._set(START_TIME, null);
 
441
            this._set(ELAPSED_TIME, 0);
 
442
            this._set(PAUSED, false);
446
443
 
447
444
            delete _running[Y.stamp(this)];
448
445
            this.fire(END, {elapsed: this.get(ELAPSED_TIME)});
482
479
            }
483
480
 
484
481
            this._actualFrames += 1;
485
 
            _setPrivate(this, ELAPSED_TIME, t);
 
482
            this._set(ELAPSED_TIME, t);
486
483
 
487
484
            this.fire(TWEEN);
488
485
            if (done) {
511
508
                this._end();
512
509
            }
513
510
 
514
 
            _setPrivate(this, START_TIME, new Date());
515
 
            _setPrivate(this, ITERATION_COUNT, iterCount);
 
511
            this._set(START_TIME, new Date());
 
512
            this._set(ITERATION_COUNT, iterCount);
516
513
        },
517
514
 
518
515
        _initAttr: function() {
1087
1084
/**
1088
1085
 *  Binds an Anim instance to a Node instance
1089
1086
 * @module anim
 
1087
 * @namespace plugin
1090
1088
 * @submodule anim-node-plugin
1091
1089
 */
1092
1090
 
1093
 
Y.namespace('Plugin');
1094
 
Y.Plugin.NodeFX = function(config) {
 
1091
var NodeFX = function(config) {
 
1092
    var config = Y.merge(config);
1095
1093
    config.node = config.owner;
1096
 
    Y.Plugin.NodeFX.superclass.constructor.apply(this, arguments);
 
1094
    NodeFX.superclass.constructor.apply(this, arguments);
1097
1095
};
1098
1096
 
1099
 
Y.Plugin.NodeFX.NAME = "nodefxplugin";
1100
 
Y.Plugin.NodeFX.NS = "fx";
1101
 
 
1102
 
Y.extend(Y.Plugin.NodeFX, Y.Anim);
1103
 
 
1104
 
 
1105
 
 
1106
 
}, '3.0.0pr1' ,{requires:['base', 'node']});
 
1097
NodeFX.NAME = "nodefx";
 
1098
NodeFX.NS = "fx";
 
1099
 
 
1100
Y.extend(NodeFX, Y.Anim);
 
1101
 
 
1102
Y.namespace('plugin');
 
1103
Y.plugin.NodeFX = NodeFX;
 
1104
 
 
1105
 
 
1106
}, '3.0.0pr2' ,{requires:['base', 'node']});