]> git.wh0rd.org - tt-rss.git/blob - lib/dojo/lib/main-browser.js
remove call-by-reference to comply with php 5.4
[tt-rss.git] / lib / dojo / lib / main-browser.js
1 /*
2 Copyright (c) 2004-2011, The Dojo Foundation All Rights Reserved.
3 Available via Academic Free License >= 2.1 OR the modified BSD license.
4 see: http://dojotoolkit.org/license for details
5 */
6
7
8 // AMD module id = dojo
9 //
10 // This is a package main module for the dojo package implemented so that the *absolute minimal*
11 // changes are made to the dojo 1.x code. It is by no means optimal and should/will be replaced with
12 // a less naive design--particularly as dojo v2.0 evolves.
13 //
14 // There are a few key design weaknesses in this implementation:
15 //
16 // * generally, v1.x bootstrap, tests, and apps assume dojo is global
17 //
18 // * the v1.x dojo/_base modules assume dojo is defined before they are defined
19 // and their factory functions go about populating dojo--which is really part of defining
20 // dojo. This leads to the appearance of a circular dependency and is a somewhat obtuse
21 // design since the dojo object must be delivered to them under a different module
22 // name (dojo/lib/kernel).
23 //
24 // * bootstrap modules tend to incorporate unrelated features (e.g., hostenv_browser includes
25 // DOMContentLoad detection, thereby making it impossible to build out this feature if a
26 // particular app does not need it).
27 //
28 // * The back compatibility layer requires/contains some non-optimal code that needs to be improved.
29 //
30 // As 1.7 and 2.0 evolve, these items will be addressed with more robust implementation.
31 //
32 // The boot sequence is as follows:
33 //
34 // dojo (this module) depends on...
35 // dojo/lib/kernel which depends on...
36 // dojo/_base/_loader/hostenv_browser which depends on...
37 // dojo/lib/backCompat which depends on...
38 // dojo/_base/_loader/bootstrap which depends on nothing
39 //
40 // This module further depends on the fairly ordinary modules in dojo/_base; each of these
41 // modules depends on dojo/lib/kernel (at least) which provide the dojo object for them to augment.
42
43 define("dojo", [
44 "dojo/lib/kernel",
45 "dojo/_base/lang",
46 "dojo/_base/array",
47 "dojo/_base/declare",
48 "dojo/_base/connect",
49 "dojo/_base/Deferred",
50 "dojo/_base/json",
51 "dojo/_base/Color",
52 "dojo/_base/window",
53 "dojo/_base/event",
54 "dojo/_base/html",
55 "dojo/_base/NodeList",
56 "dojo/_base/query",
57 "dojo/_base/xhr",
58 "dojo/_base/fx"
59 ], function(dojo){
60 return dojo;
61 });