mirror of https://github.com/apache/activemq.git
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:
parent
3ecdb62bf5
commit
675a82c18e
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue