[Feature] To avoid changing uuids array values
getter returns array copy now.
[Verification] Code compiles without errors.
Change-Id: I6bf7747b8bf26c56698b2bb04d9f8ee7664deb58
Signed-off-by: Tomasz Marciniak <t.marciniak@samsung.com>
return _getter('isConnected');
}
+ var uuids = [];
+ if (data) {
+ uuids = data.uuids;
+ }
+
Object.defineProperties(this, {
name : {value: data.name, writable: false, enumerable: true},
address : {value: data.address, writable: false, enumerable: true},
set : function(){},
get : isConnectedGetter
},
- uuids : {value: data.uuids, writable: false, enumerable: true}
+ uuids : {
+ enumerable: true,
+ set : function(){},
+ get : function(){ return uuids.slice(); }
+ }
});
};