summaryrefslogtreecommitdiff
path: root/framework/Web/Javascripts/extra/behaviour.js
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Web/Javascripts/extra/behaviour.js')
-rw-r--r--framework/Web/Javascripts/extra/behaviour.js17
1 files changed, 1 insertions, 16 deletions
diff --git a/framework/Web/Javascripts/extra/behaviour.js b/framework/Web/Javascripts/extra/behaviour.js
index 0004c5db..ac9adeda 100644
--- a/framework/Web/Javascripts/extra/behaviour.js
+++ b/framework/Web/Javascripts/extra/behaviour.js
@@ -45,9 +45,7 @@ var Behaviour = {
},
start : function(){
- Behaviour.addLoadEvent(function(){
- Behaviour.apply();
- });
+ Event.OnLoad(Behaviour.apply);
},
apply : function(){
@@ -64,19 +62,6 @@ var Behaviour = {
}
}
}
- },
-
- addLoadEvent : function(func){
- var oldonload = window.onload;
-
- if (typeof window.onload != 'function') {
- window.onload = func;
- } else {
- window.onload = function() {
- oldonload();
- func();
- }
- }
}
}