Commit 1804b072 authored by Alexander.Trofimov's avatar Alexander.Trofimov

Fragment.prototype = {} -> Fragment.prototype.

parent c2cb9881
...@@ -425,31 +425,35 @@ ColorManager.prototype = ...@@ -425,31 +425,35 @@ ColorManager.prototype =
}; };
g_oColorManager = new ColorManager(); g_oColorManager = new ColorManager();
/** @constructor */ /** @constructor */
function Fragment(val) { function Fragment(val) {
this.text = null; this.text = null;
this.format = null; this.format = null;
this.sFormula = null; this.sFormula = null;
this.sId = null; this.sId = null;
if (null != val) { if (null != val) {
this.set(val); this.set(val);
}
} }
}
Fragment.prototype = { Fragment.prototype.clone = function () {
clone : function () {
return new Fragment(this); return new Fragment(this);
}, };
set : function(oVal) { Fragment.prototype.set = function (oVal) {
if (null != oVal.text) if (null != oVal.text) {
this.text = oVal.text; this.text = oVal.text;
if (null != oVal.format) }
if (null != oVal.format) {
this.format = oVal.format; this.format = oVal.format;
if (null != oVal.sFormula) }
if (null != oVal.sFormula) {
this.sFormula = oVal.sFormula; this.sFormula = oVal.sFormula;
if (null != oVal.sId) }
if (null != oVal.sId) {
this.sId = oVal.sId; this.sId = oVal.sId;
} }
}; };
var g_oFontProperties = { var g_oFontProperties = {
fn: 0, fn: 0,
scheme: 1, scheme: 1,
......
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