~ubuntu-branches/ubuntu/quantal/maas/quantal-updates

« back to all changes in this revision

Viewing changes to src/maasserver/static/jslibs/yui/3.4.1/build/cache-plugin/cache-plugin-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('cache-plugin', function(Y) {
8
 
 
9
 
/**
10
 
 * Provides support to use Cache as a Plugin to a Base-based class.
11
 
 *
12
 
 * @module cache
13
 
 * @submodule cache-plugin
14
 
 */
15
 
 
16
 
/**
17
 
 * Plugin.Cache adds pluginizability to Cache.
18
 
 * @class Plugin.Cache
19
 
 * @extends Cache
20
 
 * @uses Plugin.Base
21
 
 */
22
 
function CachePlugin(config) {
23
 
    var cache = config && config.cache ? config.cache : Y.Cache,
24
 
        tmpclass = Y.Base.create("dataSourceCache", cache, [Y.Plugin.Base]),
25
 
        tmpinstance = new tmpclass(config);
26
 
    tmpclass.NS = "tmpClass";
27
 
    return tmpinstance;
28
 
}
29
 
 
30
 
Y.mix(CachePlugin, {
31
 
    /**
32
 
     * The namespace for the plugin. This will be the property on the host which
33
 
     * references the plugin instance.
34
 
     *
35
 
     * @property NS
36
 
     * @type String
37
 
     * @static
38
 
     * @final
39
 
     * @value "cache"
40
 
     */
41
 
    NS: "cache",
42
 
 
43
 
    /**
44
 
     * Class name.
45
 
     *
46
 
     * @property NAME
47
 
     * @type String
48
 
     * @static
49
 
     * @final
50
 
     * @value "dataSourceCache"
51
 
     */
52
 
    NAME: "cachePlugin"
53
 
});
54
 
 
55
 
 
56
 
Y.namespace("Plugin").Cache = CachePlugin;
57
 
 
58
 
 
59
 
}, '3.4.1' ,{requires:['plugin','cache-base']});