-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
54 lines (46 loc) · 2.19 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* The contents of this file are subject to the Mozilla Public License
* Version 1.1 (the "License"); you may not use this file except in
* compliance with the License. You may obtain a copy of the License at
* http://www.mozilla.org/MPL/
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
* License for the specific language governing rights and limitations
* under the License.
*
* Contributor(s):
* Jamon Terrell <[email protected]>
* Petar Strinic <[email protected]>
*/
include.js - v0.3.1
Minimalist Async Module Definition/Dependency Management library for javascript with support for optional
dependencies (and error handling support to be added).
Why another AMD implementation?
* Support for optional dependencies
* Graceful loading failures (with support for error handling callbacks)
* Small enough to include in your main .html file (1.5KB minified)
Changelog:
v0.3.1
* Fixed support for loading files not wrapped in a define statement
v0.3
* Making sure onError callback is actually a function before calling it
* Making sure onError sends at least the dependency name
* Not adding .js to dependencies when .js is already in the filename
v0.2
* Implemented first pass of Error Callback support
* Added sofea.include.version variable
* Added alias to global method "require"
* Added property "amd" to specify we implement the AMD spec (probably not 100% accurately at this point)
v0.1
* First public release (complete rewrite from old public code)
Bugs/Todo:
* add documentation
* Timeouts not yet implemented
* Logging/Debug API not implemented
* Configuration API not implemented (direct access to sofea.baseDir will be "removed" at some point)
* Add preservation of existing require/define methods (a la jquery's overriding of $)
* Need to further test deeply nested dependencies
* Need to fully support "AMD" API, (optional params on define are currently missing, probably more (need tests)
* Add support for suspend/resume (for compilation of scripts)
* Add script compiler
* Add "context" support (i.e. remove all instance level vars, allow aquiring a new instance)