Skip to content

Commit

Permalink
Rebuild 3.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
pissang committed Jan 25, 2016
1 parent 7c8b95d commit a5be277
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 86 deletions.
29 changes: 15 additions & 14 deletions dist/echarts.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -856,20 +856,21 @@ define('echarts/util/clazz',['require','zrender/core/util'],function (require) {
* @param {string|Array.<string>} properties
*/
clazz.setReadOnly = function (obj, properties) {
if (!zrUtil.isArray(properties)) {
properties = properties != null ? [properties] : [];
}
zrUtil.each(properties, function (prop) {
var value = obj[prop];

Object.defineProperty
&& Object.defineProperty(obj, prop, {
value: value, writable: false
});
zrUtil.isArray(obj[prop])
&& Object.freeze
&& Object.freeze(obj[prop]);
});
// FIXME It seems broken in IE8 simulation of IE11
// if (!zrUtil.isArray(properties)) {
// properties = properties != null ? [properties] : [];
// }
// zrUtil.each(properties, function (prop) {
// var value = obj[prop];

// Object.defineProperty
// && Object.defineProperty(obj, prop, {
// value: value, writable: false
// });
// zrUtil.isArray(obj[prop])
// && Object.freeze
// && Object.freeze(obj[prop]);
// });
};

return clazz;
Expand Down
18 changes: 9 additions & 9 deletions dist/echarts.common.min.js

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions dist/echarts.js
Original file line number Diff line number Diff line change
Expand Up @@ -856,20 +856,21 @@ define('echarts/util/clazz',['require','zrender/core/util'],function (require) {
* @param {string|Array.<string>} properties
*/
clazz.setReadOnly = function (obj, properties) {
if (!zrUtil.isArray(properties)) {
properties = properties != null ? [properties] : [];
}
zrUtil.each(properties, function (prop) {
var value = obj[prop];

Object.defineProperty
&& Object.defineProperty(obj, prop, {
value: value, writable: false
});
zrUtil.isArray(obj[prop])
&& Object.freeze
&& Object.freeze(obj[prop]);
});
// FIXME It seems broken in IE8 simulation of IE11
// if (!zrUtil.isArray(properties)) {
// properties = properties != null ? [properties] : [];
// }
// zrUtil.each(properties, function (prop) {
// var value = obj[prop];

// Object.defineProperty
// && Object.defineProperty(obj, prop, {
// value: value, writable: false
// });
// zrUtil.isArray(obj[prop])
// && Object.freeze
// && Object.freeze(obj[prop]);
// });
};

return clazz;
Expand Down
28 changes: 14 additions & 14 deletions dist/echarts.min.js

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions dist/echarts.simple.js
Original file line number Diff line number Diff line change
Expand Up @@ -856,20 +856,21 @@ define('echarts/util/clazz',['require','zrender/core/util'],function (require) {
* @param {string|Array.<string>} properties
*/
clazz.setReadOnly = function (obj, properties) {
if (!zrUtil.isArray(properties)) {
properties = properties != null ? [properties] : [];
}
zrUtil.each(properties, function (prop) {
var value = obj[prop];

Object.defineProperty
&& Object.defineProperty(obj, prop, {
value: value, writable: false
});
zrUtil.isArray(obj[prop])
&& Object.freeze
&& Object.freeze(obj[prop]);
});
// FIXME It seems broken in IE8 simulation of IE11
// if (!zrUtil.isArray(properties)) {
// properties = properties != null ? [properties] : [];
// }
// zrUtil.each(properties, function (prop) {
// var value = obj[prop];

// Object.defineProperty
// && Object.defineProperty(obj, prop, {
// value: value, writable: false
// });
// zrUtil.isArray(obj[prop])
// && Object.freeze
// && Object.freeze(obj[prop]);
// });
};

return clazz;
Expand Down
14 changes: 7 additions & 7 deletions dist/echarts.simple.min.js

Large diffs are not rendered by default.

29 changes: 15 additions & 14 deletions src/util/clazz.js
Original file line number Diff line number Diff line change
Expand Up @@ -194,20 +194,21 @@ define(function (require) {
* @param {string|Array.<string>} properties
*/
clazz.setReadOnly = function (obj, properties) {
if (!zrUtil.isArray(properties)) {
properties = properties != null ? [properties] : [];
}
zrUtil.each(properties, function (prop) {
var value = obj[prop];

Object.defineProperty
&& Object.defineProperty(obj, prop, {
value: value, writable: false
});
zrUtil.isArray(obj[prop])
&& Object.freeze
&& Object.freeze(obj[prop]);
});
// FIXME It seems broken in IE8 simulation of IE11
// if (!zrUtil.isArray(properties)) {
// properties = properties != null ? [properties] : [];
// }
// zrUtil.each(properties, function (prop) {
// var value = obj[prop];

// Object.defineProperty
// && Object.defineProperty(obj, prop, {
// value: value, writable: false
// });
// zrUtil.isArray(obj[prop])
// && Object.freeze
// && Object.freeze(obj[prop]);
// });
};

return clazz;
Expand Down

0 comments on commit a5be277

Please sign in to comment.