diff options
author | wei <> | 2006-01-09 03:40:59 +0000 |
---|---|---|
committer | wei <> | 2006-01-09 03:40:59 +0000 |
commit | 9c9a2d731fea9679f65904a3a6b72dd78b4253a4 (patch) | |
tree | 1d81a12a7a79e74e98218d01c6278a81f0996f5d /framework/Web/Javascripts/extra/behaviour.js | |
parent | 10420d2bcde1a7437b58175f417170b2d6d93e50 (diff) |
Update library
Diffstat (limited to 'framework/Web/Javascripts/extra/behaviour.js')
-rw-r--r-- | framework/Web/Javascripts/extra/behaviour.js | 17 |
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();
- }
- }
}
}
|