function Content(data) {
var editableAttributes = ['isFavorite'];
- // since 5.5 these attributes are readonly, it is disallowed to modify them,
- // but for applications developed for earlier versions backward compatibility
- // is kept
- if (isEarlierThan55) {
- editableAttributes.push('name');
- editableAttributes.push('rating');
- editableAttributes.push('description');
- }
var id;
var name;
var type;
return name;
},
set: function(v) {
- // since 5.5 this attribute is readonly, it is disallowed to modify it,
- // but for applications developed for earlier versions backward
- // compatibility is kept
- if (isEarlierThan55 || edit_.isAllowed) {
+ // since 5.5 this attribute is readonly, it is disallowed to modify it
+ if (edit_.isAllowed) {
if (!type_.isNull(v)) {
name = converter_.toString(v, false);
}
return description;
},
set: function(v) {
- // since 5.5 this attribute is readonly, it is disallowed to modify it,
- // but for applications developed for earlier versions backward
- // compatibility is kept
- if (isEarlierThan55 || edit_.isAllowed) {
+ // since 5.5 this attribute is readonly, it is disallowed to modify it
+ if (edit_.isAllowed) {
description = converter_.toString(v, true);
} else {
utils_.warn(
return rating;
},
set: function(v) {
- // since 5.5 this attribute is readonly, it is disallowed to modify it,
- // but for applications developed for earlier versions backward
- // compatibility is kept
- if (isEarlierThan55 || edit_.isAllowed) {
+ // since 5.5 this attribute is readonly, it is disallowed to modify it
+ if (edit_.isAllowed) {
if (!type_.isNull(v) && v >= 0 && v <= 10) {
rating = converter_.toUnsignedLong(v, false);
}
Content.call(this, data);
var editableAttributes = this.editableAttributes;
- // since 5.5 this attribute is readonly, it is disallowed to modify it,
- // but for applications developed for earlier versions backward compatibility
- // is kept
- if (isEarlierThan55) {
- editableAttributes.push('geolocation');
- }
-
var geolocation;
var album;
var artists;
},
geolocation: {
get: function() {
- if (isEarlierThan55) {
- return geolocation;
- } else {
- // for keep geolocation's latitude and longitude readonly
- // we need to return copy of this object
- return new tizen.SimpleCoordinates(
- geolocation.latitude,
- geolocation.longitude
- );
- }
+ // for keep geolocation's latitude and longitude readonly
+ // we need to return copy of this object
+ return new tizen.SimpleCoordinates(
+ geolocation.latitude,
+ geolocation.longitude
+ );
},
set: function(v) {
- // since 5.5 this attribute is readonly, it is disallowed to modify it,
- // but for applications developed for earlier versions backward
- // compatibility is kept
- if (isEarlierThan55 || edit_.isAllowed) {
+ // since 5.5 this attribute is readonly, it is disallowed to modify it
+ if (edit_.isAllowed) {
if (!type_.isNull(v)) {
var latitude = converter_.toDouble(v.latitude, false);
var longitude = converter_.toDouble(v.longitude, false);
Content.call(this, data);
var editableAttributes = this.editableAttributes;
- // since 5.5 these attributes are readonly, it is disallowed to modify them,
- // but for applications developed for earlier versions backward compatibility
- // is kept
- if (isEarlierThan55) {
- editableAttributes.push('geolocation');
- editableAttributes.push('orientation');
- }
-
var geolocation;
var width;
var height;
},
geolocation: {
get: function() {
- if (isEarlierThan55) {
- return geolocation;
- } else {
- // for keep geolocation's latitude and longitude readonly
- // we need to return copy of this object
- return new tizen.SimpleCoordinates(
- geolocation.latitude,
- geolocation.longitude
- );
- }
+ // for keep geolocation's latitude and longitude readonly
+ // we need to return copy of this object
+ return new tizen.SimpleCoordinates(
+ geolocation.latitude,
+ geolocation.longitude
+ );
},
set: function(v) {
- // since 5.5 this attribute is readonly, it is disallowed to modify it,
- // but for applications developed for earlier versions backward
- // compatibility is kept
- if (isEarlierThan55 || edit_.isAllowed) {
+ // since 5.5 this attribute is readonly, it is disallowed to modify it
+ if (edit_.isAllowed) {
if (!type_.isNull(v)) {
var latitude = converter_.toDouble(v.latitude, false);
var longitude = converter_.toDouble(v.longitude, false);
return orientation;
},
set: function(v) {
- // since 5.5 this attribute is readonly, it is disallowed to modify it,
- // but for applications developed for earlier versions backward
- // compatibility is kept
- if (isEarlierThan55 || edit_.isAllowed) {
+ // since 5.5 this attribute is readonly, it is disallowed to modify it
+ if (edit_.isAllowed) {
if (!type_.isNull(v)) {
orientation = converter_.toEnum(
v,