Skip to content

Commit

Permalink
actually get module definition correct
Browse files Browse the repository at this point in the history
  • Loading branch information
ansuz committed May 12, 2016
1 parent 5019fed commit ba16b12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hyperjson.amd.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
define(function () {
define(function (module) {
module = module || {};

// this makes recursing a lot simpler
var isArray = function (A) {
return Object.prototype.toString.call(A)==='[object Array]';
Expand Down Expand Up @@ -91,7 +93,6 @@ define(function () {
}
};

module = module || {};
var mod = module.exports = {
fromDOM: DOM2HyperJSON,
callOn: callOnHyperJSON
Expand Down

0 comments on commit ba16b12

Please sign in to comment.