YUI的团队 发布了YUI2.5.1版本,今天,你可以到SourceForge上下载。 它提供一个补丁修复了67个问题。
2.5.1版本可以很好的在Adobe RIA的运行环境运行,在FireFox上还修复了一个JSON解释器安全缺陷。它是2.5.1的顶级的项目。
- RIA支持的
- RIA支持的改进:Improved AIR support: 我们早就知道,YUI需要很好的运行在Adobe RIA,因为YUI是对WebKit支持的很好,YUI2.5.1提供了更强大的文本编辑器已经相关的内容管理面板。
- JSON的解析在Firefox :crockford本周在json.org提交了JSON的解释中存在一个安全漏洞 , 该漏洞允许该JSON的解析器被利用,可以被一些不安全的脚本进行攻击。 这个漏洞已经在新版的YUI上修复了。
- 数据表修饰:詹妮汉和卢克史密斯不遗余力的升级数据表, 2.5.1在动态的添加,删除,编辑,表数据的时候性能上有了更好的表现。
- YUI配置:我们增加了一个配置界面,我们的网站提供了一个组件选择列表,你可以定制一些自己喜欢的组件以锐网站,提供一种导航仪表式组件选择界面。配置文件会自动为你提供你想要的功能。请看下面一张图
- 下面是一些aggregate file
<!--Load then new yuiloader-dom-event aggregate file:--> <script type="text/javascript" src="http://yui.yahooapis.com/2.5.1/build/yuiloader-dom-event/yuiloader-dom-event.js" > </script> <!--Now, when you want to use a new component, you can just do this:--> <script type="text/javascript"> // Instantiate and configure Loader: var loader = new YAHOO.util.YUILoader({ // Identify the components you want to load. Loader will automatically // identify any additional dependencies required for the specified // components. require: ["button", "slider"], // Configure loader to pull in optional dependencies. For example, // animation is an optional dependency for slider. loadOptional: true, // The function to call when all script/css resources have been loaded onSuccess: function() { //this is your callback function; you can use //this space to call all of your instantiation //logic for the components you just loaded. //so, you can implement button safely here: var oButton = new YAHOO.widget.Button("mybutton"); } }); // Load the files onto the page: loader.insert(); </script>
- Bug fixes: YUI 2.5.1 修复了bug fixs。