test dependency injection
This commit is contained in:
parent
0645c74f9a
commit
a1dc0dea06
10 changed files with 98 additions and 46 deletions
|
|
@ -10,6 +10,7 @@
|
|||
module.exports = terms;
|
||||
}
|
||||
|
||||
// allow license to be required() by app without gapp
|
||||
if (typeof(self) !== 'undefined' && self.gapp) {
|
||||
let app = self.gapp;
|
||||
app.license = terms.LICENSE;
|
||||
|
|
|
|||
|
|
@ -3,7 +3,10 @@
|
|||
"use strict";
|
||||
|
||||
(function() {
|
||||
gapp.register('moto.space');
|
||||
gapp.register('moto.space', [
|
||||
'add.array', // dep: add.array
|
||||
'moto.orbit' // dep: moto.orbit
|
||||
]);
|
||||
|
||||
let MOTO = self.moto = self.moto || {},
|
||||
WIN = window,
|
||||
|
|
|
|||
Loading…
Reference in a new issue