fusion
文件大小: unknow
源码售价: 5 个金币 积分规则     积分充值
资源说明:An abandoned JS project that was to be a shim toolbelt so we could start using ES5 conventions without having to worry about legacy compatibility. The idea was to then scale it to a full-fledged JS framework. The project was abandoned when we officially dropped support for legacy browsers.
Fusion is currently using [buster.js](http://busterjs.org) for in-browser
unit testing. It is compressed using uglify-js. The current supported development env is FreeBSD 8.2

```
# install/build deps
git clone git://github.com/rsb/fusion.git
git clone git://github.com/joyent/node.git
cd node
git checkout v0.8.3
sudo gmake install
sudo npm install -g npm@1.1.44
sudo npm install -g buster@0.6.2
npm install uglify-js@1.3.3
cd ../fusion

#run tests
buster server &
buster test

#build min file
./build
```

TODO
====

immediate todo:
- add object.lookup(obj, path, def);
- Exception test cases for f.string.trim
- figure out what's to be done with merge and decorate
- start documenting api (dr.js)
- add wildcard events
- patch buster.js to be able to test in IE7 and 8

not-so-immediate todo:
- ajax
- mvc
- dom selector interface
- test in as many legacy browsers as possible

currently shimmed functions:
- Array.isArray
- Array.prototype.indexOf
- Array.prototype.forEach
- Function.prototype.bind
- Object.keys
- Object.defineProperties
- Object.defineProperty
- Object.create
- Object.getPrototypeOf
- String.prototype.trim

extended functions:
- Object.isEqual

will probably need to be shimmed
- Array.prototype.map
- Array.prototype.reduce
- Array.prototype.reduceRight
- Array.prototype.filter
- Array.prototype.every
- Array.prototype.some
- Array.prototype.lastIndexOf

本源码包内暂不包含可直接显示的源代码文件,请下载源码包。