Remove Curl class from CurlBuilder.

This commit is contained in:
Miao Jiang 2013-02-19 21:03:13 +08:00
parent ccfb0d4595
commit decb16d790
3 changed files with 1 additions and 3 deletions

View file

@ -1,4 +1,4 @@
var Curl = require('..').Curl var Curl = require('../lib/Curl')
var p = console.log; var p = console.log;
var url = process.argv[2]; var url = process.argv[2];

View file

@ -35,7 +35,6 @@
curl = function() { curl = function() {
return curl.perform.apply(curl, arguments); return curl.perform.apply(curl, arguments);
}; };
curl.Curl = Curl;
curl.perform = function() { curl.perform = function() {
var args, c, cb, k, length, v, _ref, _ref1, _ref2, _ref3, _ref4; var args, c, cb, k, length, v, _ref, _ref1, _ref2, _ref3, _ref4;
args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; args = 1 <= arguments.length ? __slice.call(arguments, 0) : [];

View file

@ -16,7 +16,6 @@ class CurlBuilder
curl = -> curl = ->
curl.perform.apply curl, arguments curl.perform.apply curl, arguments
curl.Curl = Curl
curl.perform = (args...) -> curl.perform = (args...) ->
if @running if @running
throw new Error 'the cURL session is busy, use curl.create to create another cURL Session' throw new Error 'the cURL session is busy, use curl.create to create another cURL Session'