This project is archived and is in readonly mode.

#450 ✓wontfix
Roman

getProperty incorrect behavior

Reported by Roman | October 30th, 2008 @ 05:47 PM | in 1.3.0 rc2 (closed)

getProperty function incorrectly returns null when the attribute is empty ("")

current code:


getProperty: function(attribute){
	var key = attributes[attribute];
	var value = (key) ? this[key] : this.getAttribute(attribute, 2);
	return (bools[attribute]) ? !!value : (key) ? value : value || null;
}

proposed solution:


getProperty: function(attribute){
	var key = attributes[attribute];
	var value = (key) ? this[key] : this.getAttribute(attribute, 2);
	return (bools[attribute]) ? !!value : value;
}

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Tags

Pages