Fixed Rico.Corner.round to be compatible with latest browsers/CSS3 - in both Rico2...
[infodrom/rico3] / ricoClient / js / rico2moo.js
index ebaeb6f..75c2842 100644 (file)
@@ -133,9 +133,10 @@ Rico.ajaxRequest.prototype = {
   mooSend : function(url,options) {
     this.onSuccess=options.onSuccess;
     this.onComplete=options.onComplete;
+    var self=this;
     var mooOptions = {
-      onComplete : Rico.bind(this,'mooComplete'),
-      onSuccess : Rico.bind(this,'mooSuccess'),
+      onComplete : function() { self.mooComplete(); },
+      onSuccess : function() { self.mooSuccess(); },
       onFailure : options.onFailure,
       method : options.method,
       data : options.parameters,
@@ -182,3 +183,5 @@ Rico.animate=function(element,options,properties) {
   effect.start(properties);
   return effect;
 };
+
+Rico._bindLoadEvent();