https://github.com/atufkas/prototype-setoptions-fixlet
Re-adds missing Ajax.Base.setOptions() method to prototype base objects of libraries >= 1.7.0.
https://github.com/atufkas/prototype-setoptions-fixlet
Last synced: about 2 months ago
JSON representation
Re-adds missing Ajax.Base.setOptions() method to prototype base objects of libraries >= 1.7.0.
- Host: GitHub
- URL: https://github.com/atufkas/prototype-setoptions-fixlet
- Owner: atufkas
- Created: 2013-02-05T15:51:06.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-02-05T16:51:54.000Z (almost 13 years ago)
- Last Synced: 2025-01-08T05:48:33.260Z (12 months ago)
- Size: 113 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# prototype-setoptions.fixlet.js:
### Purpose
Re-adds ```Ajax.Base.setOptions()``` method to prototype base objects of libraries >= 1.7.0.
### Typical use case
There may exist legacy JS code in the wild that wants to make use of prototype library versions >= 1.7.0
(e.g. in combination with scriptaculous >= 1.9.0 for IE compatibility reasons in conjunction with scriptaculous' dragdrop.js)
but fails to behave correctly because custom code extends prototype classes and relies on the old ```setOptions()``` method
originally provided by ```Ajax.Base.prototype```.
So, if you recently upgraded from prototype 1.5.x or scriptaculous 1.7.x to a later version and experience problems
with your application: Instead of refactoring the old code, this one may help out as a quick fix.
### Usage
Just load the js as a "drop-in" additionally to loading prototype.js, for example:
### Author
Matthias Lienau:
Feel free to contact me on any question!
### License:
MIT - http://www.opensource.org/licenses/mit-license.php