Skip to content

Commit

Permalink
更新mass 库
Browse files Browse the repository at this point in the history
  • Loading branch information
RubyLouvre committed Jan 28, 2013
1 parent e668a6c commit 219a39f
Show file tree
Hide file tree
Showing 12 changed files with 2,392 additions and 2,141 deletions.
5 changes: 2 additions & 3 deletions app/public/scripts/fx.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ define("fx", ["$css"], function($) {
for(var i = 1; i < arguments.length; i++) {
addOptions(opts, arguments[i]);
}
opts.duration = typeof opts.duration == "number" ? opts.duration : 700;
opts.duration = typeof opts.duration == "number" ? opts.duration : 400;
opts.queue = !! (opts.queue == null || opts.queue); //默认使用列队
opts.specialEasing = opts.specialEasing || {}
opts.specialEasing = opts.specialEasing || {};
return opts;
};

Expand Down Expand Up @@ -330,7 +330,6 @@ define("fx", ["$css"], function($) {
var hooks = effect.updateHooks
// 处理渐变
for(var i = 0, obj; obj = fx.props[i++];) {
;
(hooks[obj.type] || hooks._default)(node, per, end, obj);
}
if(end) { //最后一帧
Expand Down
4 changes: 2 additions & 2 deletions app/public/scripts/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ define("lang", Array.isArray ? ["mass"] : ["$lang_fix"], function($) {
filter: function(obj, fn, scope) {
for(var i = 0, n = obj.length, ret = []; i < n; i++) {
var val = fn.call(scope || obj[i], obj[i], i);
if(val === true) {
ret[ret.length] = obj[i]
if(!!val) {
ret[ret.length] = obj[i];
}
}
return ret;
Expand Down
4 changes: 2 additions & 2 deletions app/public/scripts/mass.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ function(global, DOC) {
loadings.unshift(id);
}
/**
* 请求模块
* 定义模块
* @param {String} id ? 模块ID
* @param {Array} deps ? 依赖列表
* @param {Function} factory 模块工厂
Expand Down Expand Up @@ -790,4 +790,4 @@ http://www.infoq.com/cn/articles/how-to-create-great-js-module 优秀的JavaScri
https://github.com/aralejs
http://y.duowan.com/resources/js/jsFrame/demo/index.html
https://github.com/etaoux/brix
*/
*/
Loading

0 comments on commit 219a39f

Please sign in to comment.