Skip to content

Commit

Permalink
fix changes
Browse files Browse the repository at this point in the history
  • Loading branch information
loverajoel committed Feb 8, 2016
1 parent 4ec1a1c commit e639976
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions _posts/en/2016-02-08-advanced-properties.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,10 @@ Object.defineProperty(obj, 'firstD', {
console.log(obj.firstD) // 10
```

*Note*: If you define a getter without a setter and still try to set a value, you will get an error! This is particularly important when using helper functions such as `$.extend` or `_.merge`. Be careful!
### Note
If you define a getter without a setter and still try to set a value, you will get an error! This is particularly important when using helper functions such as `$.extend` or `_.merge`. Be careful!

*Links:*
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty
- http://bdadam.com/blog/defining-properties-in-javascript.html
### Links

- [defineProperty](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperty)
- [Defining properties in JavaScript](http://bdadam.com/blog/defining-properties-in-javascript.html)

0 comments on commit e639976

Please sign in to comment.