Skip to content

Commit

Permalink
Pass properties in and out
Browse files Browse the repository at this point in the history
  • Loading branch information
holm committed Dec 5, 2016
1 parent 1408dd4 commit 6a6942d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/doc/workbook.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ Workbook.prototype = {
lastPrinted: this.lastPrinted,
created: this.created,
modified: this.modified,
properties: this.properties,
worksheets: this._worksheets.filter(Boolean).map(function(worksheet) { return worksheet.model; }),
definedNames: this._definedNames.model,
views: this.views,
Expand All @@ -151,7 +152,7 @@ Workbook.prototype = {
category: this.category,
description: this.description,
language: this.language,
revision: this.revision
revision: this.revision,
};
},
set model(value) {
Expand All @@ -173,6 +174,7 @@ Workbook.prototype = {
this.language = value.language;
this.revision = value.revision;

this.properties = value.properties;
this._worksheets = [];
value.worksheets.forEach(function(worksheetModel) {
var id = worksheetModel.id;
Expand Down

0 comments on commit 6a6942d

Please sign in to comment.