Skip to content

Commit

Permalink
Merge pull request #15500 from Serabe/fix/14489
Browse files Browse the repository at this point in the history
[DOC release] Document the result of `hash` is an empty object.
  • Loading branch information
locks authored Jul 14, 2017
2 parents cc044a3 + 4361f99 commit cb97ca5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/ember-glimmer/lib/helpers/hash.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@
Where the `title` is bound to updates of the `office` property.
Note that the hash is an empty object with no prototype chain, therefore
common methods like `toString` are not available in the resulting hash.
If you need to use such a method, you can use the `call` or `apply`
approach:
```js
function toString(obj) {
return Object.prototype.toString.apply(obj);
}
```
@method hash
@for Ember.Templates.helpers
@param {Object} options
Expand Down

0 comments on commit cb97ca5

Please sign in to comment.