Restored fixes for some cross-browser issues

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@395201 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Edward Lapus Villacorta 2006-04-19 10:36:55 +00:00
parent 3ecdb62bf5
commit 675a82c18e
1 changed files with 7 additions and 6 deletions

View File

@ -29,7 +29,7 @@
License:
This file is entirely BSD licensed.
This file is entirely BSD licensed.
More information:
@ -51,15 +51,15 @@ var Behaviour = {
},
apply : function(){
for (h=0;sheet=Behaviour.list[h];h++){
for (var h=0;sheet=Behaviour.list[h];h++){
for (selector in sheet){
list = document.getElementsBySelector(selector);
if (!list){
continue;
}
for (i=0;element=list[i];i++){
for (var i=0;element=list[i];i++){
sheet[selector](element);
}
}
@ -68,13 +68,14 @@ var Behaviour = {
addLoadEvent : function(func){
var oldonload = window.onload;
if (typeof window.onload != 'function') {
window.onload = func;
} else {
window.onload = function() {
oldonload();
func();
if(func != null) {
func();
}
}
}
}