~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/dd-gestures/dd-gestures.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('dd-gestures', function(Y) {
8
 
 
9
 
 
10
 
    /*
11
 
    * This module is the conditional loaded DD file to support gesture events.
12
 
    * In the event that DD is loaded onto a device that support touch based events
13
 
    * This module is loaded and over rides 2 key methods on DD.Drag and DD.DDM to
14
 
    * attach the gesture events.
15
 
    */
16
 
 
17
 
    Y.DD.Drag.START_EVENT = 'gesturemovestart';
18
 
 
19
 
    Y.DD.Drag.prototype._prep = function() {
20
 
        this._dragThreshMet = false;
21
 
        var node = this.get('node'), DDM = Y.DD.DDM;
22
 
 
23
 
        node.addClass(DDM.CSS_PREFIX + '-draggable');
24
 
 
25
 
        node.on(Y.DD.Drag.START_EVENT, Y.bind(this._handleMouseDownEvent, this), {
26
 
            minDistance: 0,
27
 
            minTime: 0
28
 
        });
29
 
 
30
 
        node.on('gesturemoveend', Y.bind(this._handleMouseUp, this), { standAlone: true });
31
 
        node.on('dragstart', Y.bind(this._fixDragStart, this));
32
 
 
33
 
    };
34
 
 
35
 
    Y.DD.DDM._setupListeners = function() {
36
 
        var DDM = Y.DD.DDM;
37
 
 
38
 
        this._createPG();
39
 
        this._active = true;
40
 
        Y.one(Y.config.doc).on('gesturemove', Y.throttle(Y.bind(DDM._move, DDM), DDM.get('throttleTime')), { standAlone: true });
41
 
    };
42
 
 
43
 
 
44
 
 
45
 
}, '3.4.1' ,{skinnable:false, requires:['dd-drag', 'event-synthetic', 'event-gestures']});