Evgenus / spa

Single Page Applications builder
Other
7 stars 2 forks source link

why amd module should return anything?! #60

Closed wizzard0 closed 9 years ago

wizzard0 commented 10 years ago

AMDReturnsNothingError: AMD module event returns nothing. Should return empty object!

wizzard0 commented 10 years ago

if it returns nothing and requires exports then it must've filled that exports object.

wizzard0 commented 10 years ago

also valid for TS-generated amd modules

Evgenus commented 10 years ago

if it returns nothing and requires exports then it must've filled that exports object.

Please provide some code example of described behavior, so I could reproduce this in test case

wizzard0 commented 10 years ago

define(function(require,exports,module){ exports.xxx =yy; });