Skip to content

Commit

Permalink
解决百度端动画
Browse files Browse the repository at this point in the history
  • Loading branch information
jimwmg committed Feb 3, 2019
1 parent 7f83cb2 commit ca41f54
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/chameleon-mixins/wx-alipay-common-mixins.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
const common = require('./common.js');
const wxStyleHandle = require('chameleon-css-loader/proxy/proxyMiniapp.js')

const deepClone = function(obj){
if(obj.toString().slice(8, -1) !== "Object"){
const deepClone = function(obj) {
if (obj.toString().slice(8, -1) !== "Object") {
return obj;
}
let res = {};
Object.keys(obj).forEach(key=>{
Object.keys(obj).forEach(key => {
res[key] = deepClone(obj[key]);
})
return res;
Expand Down Expand Up @@ -83,6 +83,8 @@ _.mixins = {
return ;
}
const { cbs, index } = animation;
// 配合 解决百度端动画bug
if (cbs === undefined || index === undefined) {return ;}
let cb = cbs[index];
if (cb && typeof cb === 'function') {
cb();
Expand Down

0 comments on commit ca41f54

Please sign in to comment.