Commit dfc9b6ed authored by rockyl's avatar rockyl

修复

parent cf66b590
......@@ -49,7 +49,7 @@ export function propertyParse(key, node, properties) {
if (value[value.length - 1] === '%') {
node[percentKey] = parseInt(value);
}
}else{
} else {
node[percentKey] = NaN;
}
}
......@@ -332,10 +332,11 @@ export const cmdOldPrefix = '//z-';
* 属性注入
* @param target
* @param source
* @param ignoreCmd
*/
export function injectProperties(target, source) {
for (let key in source) {
if (key.indexOf('//') !== 0 && !source.hasOwnProperty(cmdPrefix + key)) {
if (key.indexOf('//') !== 0) {
propertyParse(key, target, source);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment