noGlobalAnimate
This commit is contained in:
1 parent
7be7d3706f
commit
e8559f3e2d
4 files changed
+20
-8
No files matched your search
+5
-1
@@ -146,9 +146,13 @@ maps.prototype.addEvent = function (block, x, y, event) {
|
||||
if (!core.isset(block.disable) && core.isset(event.enable)) {
|
||||
block.disable=!event.enable;
|
||||
}
|
||||
// 覆盖animate
|
||||
if (event.animate === false) {
|
||||
block.event.animate = 1;
|
||||
}
|
||||
// 覆盖所有属性
|
||||
for (var key in event) {
|
||||
if (key!="enable" && core.isset(event[key])) {
|
||||
if (key!="enable" && key!="animate" && core.isset(event[key])) {
|
||||
block.event[key]=core.clone(event[key]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user