use proper AMD style
This commit is contained in:
parent
527fcff5f5
commit
8c06c538ee
3 changed files with 20 additions and 9 deletions
|
|
@ -30,11 +30,14 @@ var require = function(id) {
|
|||
require.modules = {};
|
||||
require.tlns = {};
|
||||
|
||||
var define = function(id, factory) {
|
||||
if (!factory) {
|
||||
var define = function(id, deps, factory) {
|
||||
if (arguments.length == 2) {
|
||||
factory = deps;
|
||||
} else if (arguments.length == 1) {
|
||||
factory = id;
|
||||
id = require.id;
|
||||
}
|
||||
|
||||
if (id.indexOf("text!") === 0)
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue