-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue 1 and removed version numbers these are static feature sets.
Also, everything now checks out on JSLint.
- Loading branch information
Showing
3 changed files
with
104 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
*Version 0.0.5* | ||
Xccessors (cross-browser accessors) is a JavaScript shim that implements the legacy or | ||
standard methods for defining and looking up accessors (getters and setters) of objects. | ||
|
||
Xccessors (cross-browser accessors) is a JavaScript shim that implements the legacy or standard methods for defining and looking up accessors (getters and setters) of objects. | ||
**Please note**: Internet Explorer 8 only supports getters and setters on the DOM, it's | ||
prototypes (document, Element.prototype, etc.), and the window object. As long as you are | ||
setting an accessor on the window object, a DOM element, or a DOM prototype, Xccessors | ||
should work fine in every browser. | ||
|
||
**Please note**: Internet Explorer 8 only supports getters and setters on the DOM, it's prototypes (document, Element.prototype, etc.), and the window object. As long as you are setting an accessor on the window object, a DOM element, or a DOM prototype, Xccessors should work fine in every browser. | ||
|
||
Xccessors Standard | ||
------------------ | ||
|
||
Xcessors Standard implements ECMAScript 5's (formerly 3.1) `Object.defineProperty`, `Object.defineProperties`, and `Object.getOwnPropertyDescriptor` in browsers that support the legacy non-standard accessor methods. Everything behaves according to the ECMAScript 5 standard except the configurable, enumerable, and writable options. It is impossible to implement these options without native support for Object.defineProperty. The good news is that you are never going to use them if you are changing a JavaScript program from the legacy to standard methods. | ||
Xcessors Standard implements ECMAScript 5's (formerly 3.1) `Object.defineProperty`, | ||
`Object.defineProperties`, and `Object.getOwnPropertyDescriptor` in browsers that | ||
support the legacy non-standard accessor methods. Everything behaves according to the | ||
ECMAScript 5 standard except the configurable, enumerable, and writable options if set | ||
to `false`. It is impossible to implement these options without native support for | ||
`Object.defineProperty`. The good news is that you are never going to use them if you | ||
are changing a JavaScript program from the legacy to standard methods. | ||
|
||
|
||
Xccessors Legacy | ||
---------------- | ||
|
||
Xccessors Legacy implements the legacy accessor methods (object.__define[GS]etter__ and object.__lookup[GS]etter__) in browsers that support the standard ECMAScript 5 accessor methods. | ||
Xccessors Legacy implements the legacy accessor methods (`object.__define[GS]etter__` | ||
and `object.__lookup[GS]etter__`) in browsers that support the standard | ||
ECMAScript 5 accessor methods. |
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