Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7888 (closed defect: fixed)

Opened 3 years ago

Last modified 11 months ago

Element.addMethods does not add to the Element namespace

Reported by: markygab Assigned to: sam
Priority: low Milestone: 1.x
Component: Prototype Version: edge
Severity: minor Keywords: discuss
Cc:

Description

Methods added can be accessed through $() but not Element

Element.addMethods({
	newFunction: function(element) {
		alert('new function');
	}
});
Element.newFunction('someID'); // bad
$('someID').newFunction(); // good

Change History

03/22/07 17:29:09 changed by mislav

  • keywords set to discuss.
  • severity changed from normal to minor.
  • summary changed from Element.addMethods does not add the methods to the Element object. to Element.addMethods does not add to the Element namespace.

04/24/07 08:21:58 changed by Tobie

  • status changed from new to closed.
  • resolution set to fixed.

fixed in [6561].

05/30/08 17:57:02 changed by airforce1

10/08/08 02:12:10 changed by select

10/08/08 02:12:31 changed by select

11/26/08 14:28:53 changed by storney

12/28/08 13:04:11 changed by select

Place of origin:Guangdong ChinaModel No:YL-S01Payment Terms:L/C,T/T,Western UnionMinimum Order Quantity:500 Piece/PiecesSupply Ability:100000 Piece/Pieces per DayPackage:Blister pack

http://www.solar-water-heaters.com.cn/

02/12/09 14:14:48 changed by storney

Deleted information: Comments

03/12/09 06:02:03 changed by storney

HI, Deleted : Methods added can be accessed through $() but not Element Emails Blogs.

Place of origin:Guangdong ChinaModel No:YL-S01Payment Terms:L/C,T/T,Western UnionMinimum Order Quantity:500 Piece/PiecesSupply Ability:100000 Piece/Pieces per DayPackage:Blister pack .

03/22/09 16:49:33 changed by sneakeralley