Fixed Rico.Corner.round to be compatible with latest browsers/CSS3 - in both Rico2...
[infodrom/rico3] / ricoClient / js / rico2jqu.js
index bc35314..07ea288 100644 (file)
@@ -21,11 +21,11 @@ Rico.extend=jQuery.extend;
 Rico.trim=jQuery.trim;
 Rico.tryFunctions = function() {
   for (var i=0; i<arguments.length; i++) {
-               try {
-                       return arguments[i]();
-               } catch(e){}
-       }
-       return null;
+    try {
+      return arguments[i]();
+    } catch(e){}
+  }
+  return null;
 };
 
 
@@ -126,10 +126,11 @@ Rico.ajaxRequest=function(url,options) {
 Rico.ajaxRequest.prototype = {
   jSend: function(url,options) {
     this.onSuccess=options.onSuccess;
+    var self=this;
     var jOptions = {
       complete : options.onComplete,
       error: options.onFailure,
-      success: Rico.bind(this,'jSuccess'),
+      success: function() { self.jSuccess(); },
       type : options.method.toUpperCase(),
       url : url,
       data : options.parameters
@@ -166,3 +167,5 @@ Rico.animate=function(element,options,properties) {
   options.complete=options.onEnd;
   this._j(element).animate(properties,options);
 };
+
+Rico._bindLoadEvent();