Skip to content

Commit e242260

Browse files
author
bastien eichenberger
committed
bug fix
package function parameters.
1 parent 4cbee8a commit e242260

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

lib/indesign/book/book.jsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ IN.Book = (function (my) {
115115
/**
116116
* Function to make a package of a book
117117
* @param directories_path_str
118-
* @param book
119-
* @param options
118+
* @param [book]
119+
* @param [options]
120120
* @return {string}
121121
*/
122122
my.package = function (directories_path_str, book, options) {
@@ -169,7 +169,8 @@ IN.Book = (function (my) {
169169
*/
170170

171171
// There is 3 new parameters in CC
172-
if (app.version >= 10){
172+
if (parseFloat(app.version) >= 10){
173+
173174
book.packageForPrint(
174175
options.to,
175176
options.copyingFonts,
@@ -185,8 +186,10 @@ IN.Book = (function (my) {
185186
options.versionComments,
186187
options.forceSave
187188
);
189+
188190
}
189191
else {
192+
190193
book.packageForPrint(
191194
options.to,
192195
options.copyingFonts,
@@ -199,6 +202,7 @@ IN.Book = (function (my) {
199202
options.versionComments,
200203
options.forceSave
201204
);
205+
202206
}
203207

204208
if (!File(current_folder + "/" + book.name).exists) {

lib/indesign/document/document.jsx

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

lib/photoshop/application/application.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ PS.Application = (function (my) {
3939
*/
4040
my.restore = function () {
4141
app.preferences = user_preferences;
42-
4342
}
4443

4544

lib/photoshop/document/document.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ PS.Document = (function (my) {
6969
* @memberOf PS.Document
7070
* @param {string} file_path the new document path
7171
* @param {Document} [document] the document to save
72-
* @todo add try catch to make an error if the destination path do not exist
7372
*/
7473
my.save_to_PSD = function (file_path, document) {
7574

tests/test/fixtures/photoshop/document/test_document.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
// test attribute profile
4747
var doc_to_attribute = PS.Document.open(SCRIPT_FOLDER + '/testProfileAttribution.psd');
4848

49-
PS.Document.attribute_profile('eciRGB v2', doc_to_attribute);
49+
PS.Document.assign_profile('eciRGB v2', doc_to_attribute);
5050

5151
PS.Document.save_to_TIFF(results_folder + '/testProfileAttribution.tif');
5252

0 commit comments

Comments
 (0)