mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-11 23:07:12 +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:
1 parent
59c1a34a45
commit
f677057573
1 file changed
+6
@@ -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