Commit Graph

490 Commits

Author SHA1 Message Date
tjcrowder 496503a933 doc: merged and cleaned up old docs for Enumerable#all 2009-09-07 21:37:11 +02:00
Tobie Langel a7e8e9aa7d doc: ported and updated old doc for Date#toJSON. 2009-09-07 21:31:45 +02:00
tjcrowder 12b74e6644 doc: minor updates to Class.create and Class.addMethods based on old doc. 2009-09-07 19:39:20 +02:00
tjcrowder d1cc04c911 doc: updated Array#indexOf to say that it uses strict equality 2009-09-07 19:35:04 +02:00
tjcrowder 6b24170e68 doc: ported and updated old doc for Array#without 2009-09-07 19:34:33 +02:00
tjcrowder a3eaa0401f doc: ported and updated old doc for Array#uniq 2009-09-07 19:33:27 +02:00
tjcrowder e98c87d681 doc: ported old doc example for Array#toJSON 2009-09-07 19:32:45 +02:00
tjcrowder d9f0a15dd5 doc: very minor clarification of Array#size 2009-09-07 19:31:59 +02:00
Tobie Langel a1ab78858f Minor syntactic correction in Array#reverse. 2009-09-07 19:31:16 +02:00
Tobie Langel 83ad9b622b doc: ported and updated old docs for Array#reverse. 2009-09-07 19:29:04 +02:00
tjcrowder 029197572b doc: ported old docs for Array#inspect, but dropped comment about Array#join 2009-09-07 18:57:12 +02:00
tjcrowder 70dbcf39eb doc: port old docs for Array#indexOf, update examples slightly 2009-09-07 18:56:24 +02:00
tjcrowder 798a367a3d doc: port old Array#flatten docs and clarify 2009-09-07 18:55:31 +02:00
tjcrowder a6dac432ac doc: port old Array#compact docs and clarify 2009-09-07 18:52:35 +02:00
tjcrowder 7fcd513364 doc: clarify Array#first and Array#last [#295 state:resolved] 2009-09-07 18:52:03 +02:00
tjcrowder 53317eae50 doc: port old docs for Array#clear 2009-09-07 18:51:06 +02:00
tjcrowder 1bdaaa5f49 doc: minor grammar fix in array overview 2009-09-07 18:49:37 +02:00
Tobie Langel f405b2c510 Bump version to 1.6.1. 2009-08-24 00:58:06 +02:00
Tobie Langel 94747c579f Avoid triggering a warning when Java is disabled in IE8. [#668 state:resolved] 2009-08-23 23:24:36 +02:00
tjcrowder 7735f545c7 doc: Updated Form.serializeElements. 2009-08-22 17:10:16 +02:00
tjcrowder b57bdbd76e doc: Fixed documentation error on Array#compact. [#295 state:resolved] 2009-08-22 17:07:57 +02:00
tjcrowder 2763ca4de7 doc: Minor modifications to Event.observe. 2009-08-22 17:01:16 +02:00
Tobie Langel 641284a233 doc: fix documentation of Event and Event#element. 2009-08-22 05:30:56 +02:00
Tobie Langel a4561bda28 doc: Fix methodized syntax. 2009-08-22 04:47:07 +02:00
tjcrowder bb20fa0763 dom: Markedly beefed up the Element#update and Element#insert documentation. [#161 state:resolved] 2009-08-22 04:44:12 +02:00
tjcrowder 93b682df47 doc: Copied Class.addMethods from current Mephisto docs and fixed minor error. [#103 state:resolved] 2009-08-22 04:37:10 +02:00
tjcrowder 63b7c5d9e8 doc: Added caveats and examples to String#stripTags and String#stripScripts [#102 state:resolved] 2009-08-22 04:36:24 +02:00
tjcrowder 67311e07fd doc: Moved scope warning from Ajax.Updater to String#evalScripts and left cross link. [#38 state:resolved] 2009-08-22 04:35:52 +02:00
tjcrowder cc478fcfbd doc: Documented Form#serialize and Form.serializeElements. [#21 state:resolved] 2009-08-22 04:34:19 +02:00
tjcrowder 41d1088160 doc: Documented Event.observe and Event.stopObserving, including vagaries about change events across browsers. [#6 state:resolved] 2009-08-22 04:32:34 +02:00
tjcrowder c57c2d270c doc: Documented Abstract.TimedObserver, Form.Observer, and Form.Element.Observer. 2009-08-22 04:30:52 +02:00
Andrew Dupont cdc4366153 Add more `Enumerable` citations in PDoc. 2009-08-21 08:11:10 -05:00
Andrew Dupont fefc2b728d Change PDoc syntax for "methodized" methods. 2009-08-21 08:11:09 -05:00
Tobie Langel b214744a5d Greatly simplify String#(un)escapeHTML and remove their DOM dependencies. 2009-08-12 01:27:10 +02:00
Tobie Langel b57ea83222 Remove redundant if statement in Element#readAttribute. 2009-08-12 01:23:47 +02:00
Tobie Langel d88aef3a55 Add missing semicolons. [#751 state:resolved] 2009-07-30 02:16:39 +02:00
Juriy Zaytsev 41b034b93b Improve `getClass` performance. [#747 state:resolved] 2009-07-29 15:04:39 +02:00
Tobie Langel add69978e0 Fix a ridiculous yet harmless typo in a previous commit. Add more tests for PeriodicalExecuter. 2009-07-22 16:06:17 +02:00
Samuel Lebeau fe388ebca5 Replace calls to String#gsub by String#replace internally, be more specific about which version of Safari is supported 2009-07-21 17:52:43 +02:00
Tobie Langel 49090bc957 Workaround IE's defficient handling of finally statements in PeriodicalExecuter. [#696 state:resolved] 2009-07-21 17:19:46 +02:00
Andrew Dupont e41ccba6d8 Re-throw error in otherwise-empty `catch` clause so that `PeriodicalExecuter` does not suppress exceptions. [#696 state:resolved] (Samuel Lebeau) 2009-07-18 18:51:16 +02:00
Andrew Dupont 059ce21040 Proper fix (and unit tests) for selector escaping issue. 2009-07-17 12:13:47 +02:00
Andrew Dupont f4570f39d7 Fix issue related to escaping of selectors for querySelectorAll. [#559 state:resolved] 2009-07-13 14:12:18 +02:00
Andrew Dupont 39f045d240 Rollback IFRAME error "feature test" for IE. Fix it another way. 2009-07-13 13:52:54 +02:00
Andrew Dupont 4586adff0b Bump version number. 2009-06-16 16:37:50 -05:00
Andrew Dupont 16b69a2ebf Update inline documentation. 2009-06-13 19:27:22 -05:00
Tobie Langel ad89bfb738 Fixed a variety of non-ASCII chars and similar [#610 state:resolved] 2009-06-11 22:48:38 +02:00
Juriy Zaytsev f50dc3639d No need to recreate `subclass` function every time inheritance is being set up in `Class.create` 2009-06-10 18:32:48 -04:00
Juriy Zaytsev 78f6fad570 Simplify snippet of `_insertionTranslations.tags` extension. 2009-06-04 23:18:28 -05:00
Juriy Zaytsev b2492aeec4 Fix `Template#evaluate` "eating" previous character if `null` was returned from `toTemplateReplacements` function. 2009-06-04 23:14:05 -05:00
Juriy Zaytsev d655665fb6 Make sure (defficient) APPLET, OBJECT and EMBED elements are extended with simulated methods in IE8. Return early if _extendedByPrototype is present on an element. 2009-06-04 23:11:06 -05:00
Juriy Zaytsev 703e988745 Replace array creation and `Array#include` with a more efficient `RegExp#test` 2009-06-04 23:07:41 -05:00
Juriy Zaytsev 7d02aef6ca Reorganize the way `ElementExtensions` are defined. Make sure elements used in SpecificElementExtensions are cleaned up. 2009-06-04 23:01:47 -05:00
Juriy Zaytsev fa4314aeea No need to overengineer. 2009-06-04 22:59:54 -05:00
Andrew Dupont 1b20386115 Minor PDoc changes. 2009-06-04 22:56:55 -05:00
Andrew Dupont 269653fd38 Fix typo in selector.js. 2009-06-01 16:25:32 -05:00
Juriy Zaytsev 31fe0a0328 Make sure $A works with primitive values. 2009-05-15 22:05:53 -05:00
Juriy Zaytsev cebf7d673b Do not browser sniff when forking `unmark` function in selector suite. Instead use a proper test - PROPERTIES_ATTRIBUTES_MAP. 2009-05-15 22:04:21 -05:00
Juriy Zaytsev 74374347c1 Do not use short-hand element methods notation (@element.getStyle() -> Element.getStyle(@element)) for performance reasons. Do not use `$A` and `Array.prototype.shift` when `Array.prototype.slice` can be used instead. 2009-05-15 22:02:51 -05:00
Andrew Dupont c44a071a3f `Prototype.Browser.Opera` now uses stronger inference and is determined by [[Class]] of `window.opera` being - "Opera". (kangax) 2009-05-15 21:50:32 -05:00
Andrew Dupont cc0a75fe19 Make regex used in `stripTags` stricter. (igor, kangax) [#674 state:resolved] 2009-05-11 23:29:26 -05:00
Juriy Zaytsev cb729625ae Use native `String.prototype.trim` in `String.prototype.trim` when available. (kangax) 2009-05-11 23:23:13 -05:00
Andrew Dupont 005f066f1a Fix typo in event.js. 2009-05-02 13:41:10 -05:00
Andrew Dupont 7bf8bd415f Fix accidental backtick escape. 2009-04-03 12:52:45 -05:00
Juriy Zaytsev c480bd7b97 Do not sniff when testing for IE's proprietary mouseenter/mouseleave events support. Use more robust inference instead. 2009-03-28 19:45:33 -04:00
Andrew Dupont fd46f6bbcf Bump version number. 2009-03-27 17:59:59 -05:00
Juriy Zaytsev 6c38d84254 Revert Opera title fix 2009-03-25 01:19:28 -04:00
Juriy Zaytsev 63bb172663 Fix erroneous `readAttribute` test. 2009-03-25 00:47:54 -04:00
Juriy Zaytsev b35ebeb135 Avoid creation of element, use document.documentElement instead 2009-03-24 23:43:08 -04:00
Juriy Zaytsev 3e3b470009 Use feature testing in `Element#readAttribute` when taking care of Opera's `getAttribute('title')` quirk 2009-03-24 23:33:17 -04:00
Juriy Zaytsev 0b4e142d8a `Form.serialize` now works safely with forms that have "length"-named elements. [#77 state:resolved] 2009-03-23 00:15:34 -04:00
Juriy Zaytsev 71a8663370 `Element#update` now takes care of SCRIPT elements in IE. [#573 state:resolved] 2009-03-22 19:04:04 -04:00
Juriy Zaytsev 2c986d8eaf Remove unused local variables. Fix failing form test. 2009-03-22 10:53:08 -04:00
Juriy Zaytsev fa15f212fa Fix `escapeHTML` in Chrome by using a more strict check. 2009-03-22 01:12:45 -04:00
Juriy Zaytsev 0e63247604 Make `Element.extend` take care of IE8 HTMLAppletElement and HTMLObjectElement objects bug. 2009-03-21 22:10:03 -04:00
Andrew Dupont 9bb8fbf2ff Merge branch 'master' of git@github.com:sstephenson/prototype 2009-03-20 19:44:11 -05:00
Juriy Zaytsev 06068431f7 Fix for/htmlFor translation in IE8 2009-03-20 18:08:34 -04:00
Juriy Zaytsev 30c1935cdb Fix `writeAttribute` and `readAttribute` failures in IE8. Use proper feature testing when taking care of getAttribute/setAttribute glitches. 2009-03-20 17:33:56 -04:00
Juriy Zaytsev b34355653e Remove Array#reduce [#569 state:resolved] 2009-03-20 12:05:02 -04:00
Andrew Dupont deeb3bbd88 PDoc changes. 2009-03-20 05:46:53 -05:00
Juriy Zaytsev c7a5d3480e Make sure try/catch/finally is used instead of try/finally [#421 state:resolved] 2009-03-19 16:47:07 -04:00
Juriy Zaytsev 1a375daea2 Remove sniffing from `$A` by using `in` operator when accessing property of a nodelist. 2009-03-19 16:22:37 -04:00
Andrew Dupont fa12b00111 Remove sniffing from `Element` when detecting broken `setAttribute` in IE. [#571 state:resolved] (kangax) 2009-03-08 18:18:55 -05:00
Andrew Dupont ba2c26090b Remove sniffing from `Element.update` branching in favor of feature detection. [#574 state:resolved] 2009-03-08 18:16:02 -05:00
Andrew Dupont 7833e8c909 Remove sniffing when branching `escapeHTML` and `unescapeHTML`. [#570 state:resolved] (kangax) 2009-03-08 18:02:09 -05:00
Andrew Dupont 4453e62fd5 Add the last of the documentation for the Ajax section. 2009-03-07 20:01:22 -06:00
Andrew Dupont deb3df525e Change some PDoc characters to HTML entities so that we don't confuse Sprockets. 2009-03-07 15:44:50 -06:00
Andrew Dupont 0f5c9bfcc5 Updates to PDoc in DOM section. 2009-03-07 15:44:12 -06:00
Andrew Dupont 449e532f9a Add PDoc for most of Ajax section. 2009-03-07 15:43:20 -06:00
Andrew Dupont 8c2af9bd66 Descriptions of all the classes/namespaces in the "Language" section. 2009-03-06 15:41:11 -06:00
Andrew Dupont d189f809a4 Fixed aliases in PDoc for Enumerable. 2009-03-06 12:20:09 -06:00
Andrew Dupont 00742ac153 Extensive PDoc changes. 2009-03-05 13:56:01 -06:00
Andrew Dupont e88f22e0c3 Redefine Element#down in IE 6-7 to avoid extending all descendants when no selector is given. [#452 state:resolved] (eno, Andrew Dupont) 2009-02-28 12:18:31 -06:00
Andrew Dupont 4a0b9b7c1d Reverse the definitions of Event#pointer(X|Y) and Event#pointer to prevent unnecessary computation. [#403 state:resolved] (Nick Stakenburg, Andrew Dupont). 2009-02-28 12:16:12 -06:00
Andrew Dupont 9d7a981e4c Add first-class support for `mouseenter` and `mouseleave` events in non-IE browsers (IE supports them natively). [#350 state:resolved] (Nick Stakenburg, Andrew Dupont) 2009-02-28 10:07:08 -06:00
Andrew Dupont 682a55c2d3 Make sure `_extendedByPrototype`, `_countedByPrototype`, and `prototypeUID` node expandos are accessed with `typeof` to prevent errors in some environments. [#354 state:resolved] (Hilberty, kangax, Andrew Dupont) 2009-02-28 04:48:57 -06:00
Andrew Dupont 26eaa4300b Fix issue where Opera 9.x returns incorrect results on certain Selector queries with descendant combinators. [#395 state:resolved] (Arpan, fearphage, kangax, Andrew Dupont) 2009-02-28 04:41:55 -06:00
Andrew Dupont ee56c93f16 Remove old lines from class.js. 2009-02-28 04:36:44 -06:00
Andrew Dupont de77550574 Minor PDoc corrections. 2009-02-27 17:02:42 -06:00
Andrew Dupont d22a9988fa Null out references to elements in cache on page unload. Need this in addition to the Event#stopObserving calls to clean up memory leaks. [#425 state:resolved] (ykphuah, mr_justin, Andrew Dupont) 2009-02-27 16:45:51 -06:00