Commit Graph

634 Commits

Author SHA1 Message Date
Sam Stephenson
8ca43a5c88 prototype: Fix contentloaded event initialization in IE. Closes #9457, #9488, #9707. 2007-10-08 22:37:15 +00:00
Sam Stephenson
c904fe7664 prototype: Deprecate document.getElementsByClassName and Element#getElementsByClassName since native versions return a NodeList and we can only return an Array. Please use $$ or Element#select instead. 2007-10-08 21:29:27 +00:00
Sam Stephenson
cf88669931 prototype: Fix missing "var" in selector.js. Closes #9761. 2007-10-08 21:15:46 +00:00
Sam Stephenson
4b1fb7e03a prototype: Date#toJSON now returns times in UTC for better compatibility with json.js. Closes #9332. 2007-10-08 21:14:24 +00:00
Sam Stephenson
8cf1f895f7 prototype: Ensure document._getElementsByXPath extends the elements it returns; fixes $$ not returning extended elements in Opera 9.2. Closes #8843. 2007-10-08 19:01:31 +00:00
Sam Stephenson
05e48f6feb prototype: Update Prototype.Browser.MobileSafari for iPod touch compatibility. 2007-10-08 17:30:40 +00:00
Thomas Fuchs
746a905ef4 Add tests for Object.extend and Object.clone. 2007-10-06 12:24:46 +00:00
Thomas Fuchs
cca235b1eb Prototype: Add a test for Form.Observer. 2007-10-03 17:58:33 +00:00
Thomas Fuchs
6c94af703d Make sure setting opacity works on elements that have "no layout" in IE. 2007-08-27 18:37:49 +00:00
Sam Stephenson
6ed9095df9 prototype: Simplify Class.create by establishing a prototype chain when subclassing. Closes #9342. 2007-08-23 21:12:02 +00:00
Sam Stephenson
5d3fd6f3b7 prototype: Fix Ajax.PeriodicalUpdater for compatibility with Ajax.Response. Closes #9321. 2007-08-21 16:18:07 +00:00
Sam Stephenson
001b54865c prototype: Ensure that classes always have an initialize method. 2007-08-21 16:15:59 +00:00
Sam Stephenson
6086db40a7 prototype: Update Template, Selector, Ajax.*, and ObjectRange classes to use the new class system. 2007-08-18 23:21:29 +00:00
Sam Stephenson
75b3f3c844 prototype: Change Abstract.TimedObserver to subclass PeriodicalExecuter and tweak its subclasses to use new inheritance functionality. TimedObserver can now be stopped the same way as PeriodicalExecuter. Closes #8589. 2007-08-18 23:04:28 +00:00
Sam Stephenson
bfba40e0cd prototype: Fix Class.mixin to extend the class's prototype. 2007-08-18 22:58:13 +00:00
Sam Stephenson
b923d6dd52 prototype: Fix superclass method call breakage from [7337]. 2007-08-18 22:55:35 +00:00
Sam Stephenson
702d968841 prototype: Change Class.extend to allow for superclass method resolution and remove Class.inherit. Closes #9274. 2007-08-17 17:35:22 +00:00
Sam Stephenson
b2f884b4fa prototype: Event handlers are now bound to the observed element, not the event's target element. 2007-08-17 16:17:26 +00:00
Thomas Fuchs
aa1a7f5bf0 prototype: Define Node constants conditionally after checking for Node.ELEMENT_NODE presence. Add unit test to check the values of all constants. Closes #7625. 2007-08-17 11:20:56 +00:00
Thomas Fuchs
194fda0b6d prototype: Make sure Enumerable#include doesnt do type comparision. [Mislav Marohnić] 2007-08-17 11:06:07 +00:00
Thomas Fuchs
1a0f6b3f02 Prototype: update trunk CHANGELOG 2007-08-15 21:30:27 +00:00
Thomas Fuchs
f86ac770d4 Prototype: Add contextmenu to Event.DOMEvents. 2007-08-14 12:05:20 +00:00
Sam Stephenson
c7a706f8cb prototype: Bump to 1.6.0_rc0 2007-08-14 05:25:58 +00:00
Sam Stephenson
d8b8c6586d prototype: Fix readAttribute-related failure in form.html in IE. 2007-08-14 05:08:18 +00:00
Sam Stephenson
c27f2de373 prototype: Fix failing dom.html and selector.html tests in IE. 2007-08-14 04:14:22 +00:00
Sam Stephenson
c603fc5d42 prototype: Make sure the WebKit redefinition of Element#cumulativeOffset uses Element._returnOffset. Closes #9245. 2007-08-13 15:15:01 +00:00
Sam Stephenson
11f25aa995 prototype: Make sure Element#observe is always chainable. 2007-08-11 19:53:39 +00:00
Sam Stephenson
d2974cfca3 prototype: Make sure Element#stopObserving is always chainable. 2007-08-11 19:07:21 +00:00
Sam Stephenson
14ea77ef39 prototype: Event.fire/Element#fire now returns the newly-fired event instead of the event's target element. 2007-08-11 18:46:02 +00:00
Sam Stephenson
d7da841c80 prototype: Restrict Event.DOMEvents to include only events that can be supported in all browsers 2007-08-11 18:14:20 +00:00
Sam Stephenson
ffa744e4aa prototype: Fix a failing test in base.html in Safari 2. 2007-08-11 01:36:20 +00:00
Thomas Fuchs
dbdeee63c2 Make IE position unit test work 2007-08-10 14:24:28 +00:00
Thomas Fuchs
5f76c255a1 Fix Element#positionedOffset and Element#getOffsetParent for static elements on IE. DOM unit tests now pass on IE. 2007-08-10 14:19:30 +00:00
Sam Stephenson
2fbb49001c prototype: Make sure event handlers and their wrappers are removed from the cache by Event.stopObserving. 2007-08-09 23:45:59 +00:00
Thomas Fuchs
f3d9cb2579 Add line numbers to failures when unit testing in Firefox. Closes #9231. 2007-08-09 21:48:14 +00:00
Sam Stephenson
e75cd0acdd prototype: Fix Function#argumentNames for IE 2007-08-09 00:27:51 +00:00
Sam Stephenson
220f6379f1 prototype: Fix Function#argumentNames for Opera 2007-08-08 23:50:36 +00:00
Sam Stephenson
df71a6b54f prototype: Add Object.isString, Object.isNumber, and Object.isUndefined, and clean up the source to make use of Object.isXXX where possible. 2007-08-08 23:19:45 +00:00
Sam Stephenson
ae2ab03294 prototype: Add the document.viewport object for querying dimensions and scroll offsets of the browser viewport. 2007-08-08 20:42:46 +00:00
Sam Stephenson
c488384f90 prototype: Add support for brackets in quoted attribute value selectors. Closes #9157. 2007-08-07 20:33:53 +00:00
Sam Stephenson
c9a0485b60 prototype: Add some missing semicolons to the source tree. Closes #9140. 2007-08-07 19:41:13 +00:00
Sam Stephenson
12f87a77a7 prototype: We can just use HTMLEvents in every non-IE browser instead of special-casing for Safari 2 2007-08-07 19:33:37 +00:00
Thomas Fuchs
cbaec757e2 Prototype: Fix event extensions and custom events firing for Safari 2.0 2007-08-07 14:55:34 +00:00
Sam Stephenson
30aa7a6532 prototype: Add RegExp.escape for escaping regular expression strings. Closes #9094. 2007-08-04 07:31:52 +00:00
Sam Stephenson
aa4602b459 prototype: Merge -r7242:HEAD from ../branches/1-6-0-events. Adds support for DOM-based custom events with Event.fire/Element.Methods.fire, cross-browser DOMContentLoaded support, extended and normalized event objects, and improvements to the observe and stopObserving APIs. 2007-08-04 07:20:45 +00:00
Sam Stephenson
52cf3f2550 prototype: Merge -r7016:HEAD from ../branches/ajax. Add Ajax.Response object which supports the following methods: responseJSON, headerJSON, getHeader, getAllHeaders and handles browser discrepancies in the other response methods. Add sanitizeJSON, evalJS and evalJSON to Ajax.Request. Closes #8122, #8006, #7295. 2007-08-04 04:40:22 +00:00
Sam Stephenson
281ac64876 prototype: Merge -r6792:HEAD from ../branches/inheritance/{src/base.js,test/base.html}. Robust inheritance support for Class.create. Closes #5459. 2007-08-04 04:03:51 +00:00
Sam Stephenson
90c9c69ff0 prototype: Add Function#argumentNames, which returns an ordered array of the function's named arguments. 2007-07-30 04:38:20 +00:00
Sam Stephenson
5645a0783f prototype: Add Prototype.Browser.MobileSafari which evaluates to true on the iPhone's browser. 2007-07-26 02:03:40 +00:00
Sam Stephenson
8077a0ccee prototype: Bump version to 1.6.0_pre1 2007-07-24 20:54:54 +00:00