Skip to content

Commit

Permalink
[BUGFIX] base
Browse files Browse the repository at this point in the history
- fix bug where base register and registerSingleton where not set
  • Loading branch information
Dirk Lüth committed Aug 5, 2015
1 parent d15b241 commit 4274b34
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @polyfill ./polyfill/object/getownpropertydescriptor
*/

;(function(definition, global, navigator, window, document, undefined) {
;(function(definition, navigator, global, document, undefined) {
'use strict';

function register(id, definition, dependencies, callback) {
Expand Down Expand Up @@ -55,7 +55,7 @@
}
}

modules[id] = definition(modules, shared, namespace, navigator, window, document, undefined);
modules[id] = definition(modules, shared, namespace, navigator, global, document, undefined);

if(callback) {
callback(modules[id]);
Expand All @@ -79,14 +79,17 @@
});
}

var qoopido = global.qoopido || (global.qoopido = { register: register, registerSingleton: registerSingleton }),
var qoopido = global.qoopido || (global.qoopido = {}),
shared = qoopido.shared || (qoopido.shared = {}),
modules = qoopido.modules || (qoopido.modules = {}),
dependencies = [],
isInternal = new RegExp('^\\.+\\/'),
regexCanonicalize = new RegExp('(?:\\/|)[^\\/]*\\/\\.\\.'),
removeNeutral = new RegExp('(^\\/)|\\.\\/', 'g');

qoopido.register = register;
qoopido.registerSingleton = registerSingleton;

function canonicalize(path) {
var collapsed;

Expand Down Expand Up @@ -158,5 +161,5 @@
}
};
},
this, navigator, window, document
navigator, global, document
));

0 comments on commit 4274b34

Please sign in to comment.