3.0 source code

This commit is contained in:
agolybev
2015-04-28 17:59:00 +03:00
parent c69fd34bdd
commit 7b3b2248e5
16311 changed files with 1445974 additions and 3108429 deletions

View File

@@ -0,0 +1,38 @@
require({
baseUrl: requirejs.isBrowser ? './' : './plugins/fromText',
paths: {
'text': '../../../../text/text'
},
config: {
'refine!b': {
color: 'blue'
},
'refine!c': {
color: 'cyan'
}
}
});
//The refine plugin changes the word refine into define.
define('refine!c', function (require, exports, module) {
return {
name: 'c',
color: module.config().color
};
});
require(['refine!b', 'refine!c'], function (b, c) {
doh.register(
'pluginsFromTextConfig',
[
function pluginsFromTextConfig(t){
t.is('b', b.name);
t.is('blue', b.color);
t.is('c', c.name);
t.is('cyan', c.color);
}
]
);
doh.run();
});