Skip to content

Commit

Permalink
Fix issues with strict mode goto100#31
Browse files Browse the repository at this point in the history
  • Loading branch information
JLRishe committed Jan 26, 2016
1 parent ca913d9 commit 34f1f06
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions xpath.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@
*/

// non-node wrapper
if(typeof exports === 'undefined' ) {
xpath = {};
}
var xpath = (typeof exports === 'undefined') ? {} : exports;

(function(exports) {

"use strict";

// XPathParser ///////////////////////////////////////////////////////////////

XPathParser.prototype = new Object();
Expand Down Expand Up @@ -3366,7 +3366,7 @@ NamespaceResolver.prototype.getNamespace = function(prefix, n) {

// Functions /////////////////////////////////////////////////////////////////

Functions = new Object();
var Functions = new Object();

Functions.last = function() {
var c = arguments[0];
Expand Down Expand Up @@ -4674,4 +4674,4 @@ exports.select1 = function(e, doc) {
};

// end non-node wrapper
})(typeof exports !== 'undefined' ? exports : xpath);
})(xpath);

0 comments on commit 34f1f06

Please sign in to comment.