Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Bumped to CoffeeScript 1.6.3

  • Loading branch information...
commit 87003ae44671f649ba85e524af03703eed24f7c2 1 parent 1a1ea23
@Leonidas-from-XIV authored
Showing with 8 additions and 14 deletions.
  1. +7 −13 lib/xml2js.js
  2. +1 −1  package.json
View
20 lib/xml2js.js
@@ -1,9 +1,9 @@
-// Generated by CoffeeScript 1.6.1
+// Generated by CoffeeScript 1.6.3
(function() {
var events, isEmpty, sax,
__hasProp = {}.hasOwnProperty,
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
- _this = this;
+ __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
sax = require('sax');
@@ -55,7 +55,6 @@
};
exports.ValidationError = (function(_super) {
-
__extends(ValidationError, _super);
function ValidationError(message) {
@@ -67,18 +66,12 @@
})(Error);
exports.Parser = (function(_super) {
-
__extends(Parser, _super);
function Parser(opts) {
- var key, value, _ref,
- _this = this;
- this.parseString = function(str, cb) {
- return Parser.prototype.parseString.apply(_this, arguments);
- };
- this.reset = function() {
- return Parser.prototype.reset.apply(_this, arguments);
- };
+ this.parseString = __bind(this.parseString, this);
+ this.reset = __bind(this.reset, this);
+ var key, value, _ref;
this.options = {};
_ref = exports.defaults["0.2"];
for (key in _ref) {
@@ -182,7 +175,8 @@
})()).concat(nodeName).join("/");
try {
obj = _this.options.validator(xpath, s && s[nodeName], obj);
- } catch (err) {
+ } catch (_error) {
+ err = _error;
_this.emit("error", err);
}
}
View
2  package.json
@@ -40,7 +40,7 @@
"sax" : "0.5.x"
},
"devDependencies" : {
- "coffee-script" : ">=1.6.1",
+ "coffee-script" : ">=1.6.3",
"zap" : ">=0.2.5",
"docco" : ">=0.6.2"
}
Please sign in to comment.
Something went wrong with that request. Please try again.