Permalink
Browse files

Uses underscores instead of hyphens for files.

  • Loading branch information...
1 parent b9a1680 commit 068ea9f0a5d750432ca97b2503bb0a03c321ac41 @baalexander committed Mar 17, 2012
View
@@ -20,8 +20,9 @@ npm install xmlrpc
### To Use
-The client-server.js in the example directory has an nicely commented example of
-using xmlrpc as an XML-RPC server and client (they even talk to each other!).
+The file client_server.js in the example directory has a nicely commented
+example of using xmlrpc as an XML-RPC server and client (they even talk to each
+other!).
A brief example:
File renamed without changes.
File renamed without changes.
View
@@ -1,5 +1,5 @@
var sax = require('sax')
- , decodeIso8601 = require('./date-formatter').decodeIso8601
+ , dateFormatter = require('./date_formatter')
var Deserializer = function() {
this._type = null
@@ -229,7 +229,7 @@ Deserializer.prototype.end_struct = function(data) {
, struct = {}
, items = this._stack.slice(mark)
, i = 0
-
+
for (; i < items.length; i += 2) {
struct[items[i]] = items[i + 1]
}
@@ -238,12 +238,14 @@ Deserializer.prototype.end_struct = function(data) {
}
Deserializer.prototype.end_base64 = function(data) {
- this.push(new Buffer(data, 'base64'))
+ var buffer = new Buffer(data, 'base64')
+ this.push(buffer)
this._value = false
}
Deserializer.prototype.end_date_time = function(data) {
- this.push(decodeIso8601(data))
+ var date = dateFormatter.decodeIso8601(data)
+ this.push(date)
this._value = false
}
View
@@ -1,5 +1,5 @@
var xmlBuilder = require('xmlbuilder')
- , dateFormatter = require('./date-formatter')
+ , dateFormatter = require('./date_formatter')
/**
* Creates the XML for an XML-RPC method call.
File renamed without changes.
File renamed without changes.

0 comments on commit 068ea9f

Please sign in to comment.