~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/scrollview-base-ie/scrollview-base-ie-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('scrollview-base-ie', function(Y) {
8
 
 
9
 
/**
10
 
 * IE specific support for the scrollview-base module.
11
 
 *
12
 
 * @module scrollview-base-ie
13
 
 */
14
 
 
15
 
Y.mix(Y.ScrollView.prototype, {
16
 
 
17
 
    /**
18
 
     * Internal method to fix text selection in IE
19
 
     * 
20
 
     * @method _fixIESelect
21
 
     * @for ScrollView
22
 
     * @private
23
 
     * @param {Node} bb The bounding box
24
 
     * @param {Node} cb The content box
25
 
     */
26
 
    _fixIESelect : function(bb, cb) {
27
 
        this._cbDoc = cb.get("ownerDocument");
28
 
        this._nativeBody = Y.Node.getDOMNode(Y.one("body", this._cbDoc));
29
 
 
30
 
        cb.on("mousedown", function() {
31
 
            this._selectstart = this._nativeBody.onselectstart;
32
 
            this._nativeBody.onselectstart = this._iePreventSelect;
33
 
            this._cbDoc.once("mouseup", this._ieRestoreSelect, this);
34
 
        }, this);
35
 
    },
36
 
 
37
 
    /**
38
 
     * Native onselectstart handle to prevent selection in IE
39
 
     *
40
 
     * @method _iePreventSelect
41
 
     * @for ScrollView
42
 
     * @private
43
 
     */
44
 
    _iePreventSelect : function() {
45
 
        return false;
46
 
    },
47
 
 
48
 
    /**
49
 
     * Restores native onselectstart handle, backed up to prevent selection in IE
50
 
     *
51
 
     * @method _ieRestoreSelect
52
 
     * @for ScrollView
53
 
     * @private
54
 
     */
55
 
    _ieRestoreSelect : function() {
56
 
        this._nativeBody.onselectstart = this._selectstart;
57
 
    }
58
 
}, true);
59
 
 
60
 
 
61
 
}, '3.4.1' ,{requires:['scrollview-base']});