Skip to content
This repository was archived by the owner on Dec 31, 2017. It is now read-only.
This repository was archived by the owner on Dec 31, 2017. It is now read-only.

UMD modules #91

Open
Open
@adros

Description

@adros

I have a module that I use in both Node and Dojo, so I have some kind of UMD mechanism:

({
	define : typeof define != "undefined" ? define : function(deps, factory) {
		module.exports = factory();
	}
}).define([], function() {

Is there any way to use this syntax and correctly parse the docs? Currently it fails to load this file as dependency of other AMD module.

Or could you give me a hint, what would be the best way to implement custom 'callHandler'? The doc says it's possible, but there are not instructions how should a callHandler be implmented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions