question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Invalid shorthand property initializer" - jQuery

See original GitHub issue

Getting this error on the line onComplete={sendDataToServer}

error

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dmitrykurmanovcommented, Jan 19, 2017

@mellogarrett , no reason in brackets. Fixed it. Thank you.

1reaction
garrett-thompsoncommented, Jan 18, 2017

Thanks for the comment! That fixed it.

The jQuery documentation on the front page is wrong.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid shorthand property initializer - javascript - Stack Overflow
Because it's an object, the way to assign value to its properties is using : . Change the = to : to fix...
Read more >
JavaScript SyntaxError: Invalid shorthand property initializer
To fix JavaScript SyntaxError: Invalid shorthand property initializer, correct the value assignments made to properties of objects.
Read more >
Invalid shorthand property initializer Error in JS | bobbyhadz
The "Invalid shorthand property initializer" error occurs when we use an equal sign instead of a colon to separate the values in an...
Read more >
Invalid Shorthand Property Initializer - Fix! - YouTube
In this quick video I will show you how to fix the " Invalid Shorthand Property Initializer " error in your JavaScript code....
Read more >
Resolved - Uncaught SyntaxError: Invalid shorthand property ...
"Uncaught SyntaxError: Invalid shorthand property initializer" - This is a common error we get while creating JavaScript object.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found