#660 Do not export default values

This commit is contained in:
bernard
2013-10-28 15:40:23 +01:00
parent 2c7ea40f7e
commit 09b9b15aeb

View File

@@ -799,8 +799,12 @@
// serialize only attributes that are not function, image, DOM, or objects with methods
for(key in attrs) {
val = attrs[key];
if(!type._isFunction(val) && !type._isElement(val) && !(type._isObject(val) && type._hasMethods(val))) {
obj.attrs[key] = val;
if (!type._isFunction(val) && !type._isElement(val) && !(type._isObject(val) && type._hasMethods(val))) {
var getter = this[GET + Kinetic.Util._capitalize(key)];
var defaultValue = null == getter ? null : getter.call({attrs: {}});
if (defaultValue != val) {
obj.attrs[key] = val;
}
}
}