[loki-editor commit] r660 - trunk/src

0 views
Skip to first unread message

codesite...@google.com

unread,
Dec 4, 2008, 12:07:02 PM12/4/08
to loki-c...@googlegroups.com
Author: enaeseth
Date: Thu Dec 4 09:06:12 2008
New Revision: 660

Modified:
trunk/src/loki.js

Log:
Adding Loki.request() for more natural Loki.Request sending.

Modified: trunk/src/loki.js
==============================================================================
--- trunk/src/loki.js (original)
+++ trunk/src/loki.js Thu Dec 4 09:06:12 2008
@@ -113,6 +113,20 @@
}
},

+ // Method: request
+ // A more natural way of creating a <Loki.Request> when that request is to
+ // be issued immediately.
+ //
+ // Parameters:
+ // (String) url - the URL to request
+ // (Object) [options] - any options for the request
+ //
+ // Returns:
+ // (Loki.Request) - the request
+ request: function loki_http_request(url, options) {
+ return new Loki.Request(url, options);
+ },
+
_waitingForReady: [],
_ready: false
};

Reply all
Reply to author
Forward
0 new messages