Mistake in JavaScript reference guide example

New Here ,
Dec 05, 2017

Copy link to clipboard

Copied

I've detected mistake, or at least I think so, in JavaScript™ for Acrobat® API Reference latest version,

page 258 - Doc properties - templates -

Example

List all templates in the document.

var t = this.templates for ( var i=0; i < t.length; i++) {

var state = (t.hidden) ? "visible" : "hidden"

console.println("Template: \"" + t.name + "\", current state: " + state);

}

" var state = (t.hidden) ? "visible" : "hidden" " here "visible" and "hidden" are mixed up.

not much a mistake, but I really got confused.

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Well spotted. It's not the only one, I can assure you...

TOPICS
Acrobat SDK and JavaScript

Views

104

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Mistake in JavaScript reference guide example

New Here ,
Dec 05, 2017

Copy link to clipboard

Copied

I've detected mistake, or at least I think so, in JavaScript™ for Acrobat® API Reference latest version,

page 258 - Doc properties - templates -

Example

List all templates in the document.

var t = this.templates for ( var i=0; i < t.length; i++) {

var state = (t.hidden) ? "visible" : "hidden"

console.println("Template: \"" + t.name + "\", current state: " + state);

}

" var state = (t.hidden) ? "visible" : "hidden" " here "visible" and "hidden" are mixed up.

not much a mistake, but I really got confused.

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Well spotted. It's not the only one, I can assure you...

TOPICS
Acrobat SDK and JavaScript

Views

105

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dec 05, 2017 0
Most Valuable Participant ,
Dec 05, 2017

Copy link to clipboard

Copied

Well spotted. It's not the only one, I can assure you...

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 05, 2017 1
Adobe Community Professional ,
Dec 05, 2017

Copy link to clipboard

Copied

It'll never get fixed

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 05, 2017 1
New Here ,
Dec 05, 2017

Copy link to clipboard

Copied

I wrote it because hoped someone responsible

could report this and it'll be corrected,

sad

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 05, 2017 0