This repository has been archived by the owner on May 26, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 870
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #555 from emberjs/object-model
Improve Object Model section
- Loading branch information
Showing
7 changed files
with
71 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
You'll soon notice that standard JavaScript objects aren't used widely in Ember, | ||
except as key-value pairs (often referred to as _hashes_). This is because | ||
JavaScript objects don't support the ability to observe when an object changes, | ||
which Ember needs to update data throughout an application. | ||
Ember's object model builds on standard JavaScript objects to enable this | ||
functionality, as well as bring several features like mixins and initialization | ||
to make working with them a more pleasant experience. Although these features | ||
aren't available in standard JavaScript, many of them are designed to align with | ||
proposed additions to the ECMAScript standard. | ||
|
||
In addition to bringing its own object model, Ember also extends the built-in | ||
JavaScript `Array` prototype with its Enumerable interface to enable it to | ||
observe changes and provide more features. | ||
|
||
Finally, Ember extends the `String` prototype with a few [formatting and | ||
localization methods](http://emberjs.com/api/classes/Ember.String.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.