Changeset 6561
- Timestamp:
- 04/24/07 05:23:41 (1 year ago)
- Files:
-
- spinoffs/prototype/trunk/CHANGELOG (modified) (1 diff)
- spinoffs/prototype/trunk/src/dom.js (modified) (1 diff)
- spinoffs/prototype/trunk/test/unit/dom.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
spinoffs/prototype/trunk/CHANGELOG
r6558 r6561 1 1 *SVN* 2 3 * Element.addMethods should add methods to Element as well as Element.Methods. Closes #7888. [Andrew Dupont] 2 4 3 5 * Add support for per-request onCreate callbacks to Ajax.Request. Closes #8011. [Andrew Dupont] spinoffs/prototype/trunk/src/dom.js
r6504 r6561 634 634 } 635 635 } 636 637 Object.extend(Element, Element.Methods); 638 delete Element.ByTag; 636 639 }; 637 640 spinoffs/prototype/trunk/test/unit/dom.html
r6538 r6561 273 273 var testVar = 'to be updated', testVar2 = ''; 274 274 275 Element.addMethods({ 276 hashBrowns: function(element) { return 'hash browns'; } 277 }); 278 275 279 Element.addMethods("LI", { 276 280 pancakes: function(element) { return "pancakes"; } … … 930 934 }}, 931 935 932 testSpecificElementMethods: function() {with(this) { 936 testCustomElementMethods: function() {with(this) { 937 var elem = $('navigation_test_f'); 938 assertRespondsTo('hashBrowns', elem); 939 assertEqual('hash browns', elem.hashBrowns()); 940 941 assertRespondsTo('hashBrowns', Element); 942 assertEqual('hash browns', Element.hashBrowns(elem)); 943 }}, 944 945 testSpecificCustomElementMethods: function() {with(this) { 933 946 var elem = $('navigation_test_f'); 934 947 … … 948 961 assertEqual("orange juice", elem.orangeJuice()); 949 962 assertEqual("orange juice", elem2.orangeJuice()); 963 964 assert(typeof Element.orangeJuice == 'undefined'); 965 assert(typeof Element.pancakes == 'undefined'); 966 assert(typeof Element.waffles == 'undefined'); 967 950 968 }}, 951 969