mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-08 04:55:26 +00:00
Monotone-Parent: 93761fa4ba935f3bb44092a15d1a6d416b73af2a
Monotone-Revision: 2b2e1fe5da7fe7b7fc1d4bc80c975f7b9c4ad502 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2006-10-31T22:58:44 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1080,6 +1080,12 @@ HTMLElement.prototype.removeClassName = function(className) {
|
||||
this.setAttribute('class', classStr);
|
||||
}
|
||||
|
||||
HTMLElement.prototype.hasClassName = function(className) {
|
||||
var classStr = '' + this.getAttribute('class');
|
||||
position = classStr.indexOf(className, 0);
|
||||
return (position > -1);
|
||||
}
|
||||
|
||||
HTMLElement.prototype.getParentWithTagName = function(tagName) {
|
||||
var currentElement = this;
|
||||
tagName = tagName.toUpperCase();
|
||||
|
||||
Reference in New Issue
Block a user