Incorrect implementation of the UMD pattern for browser clients #103
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currently
main.js
andLayout.js
implement the UMD pattern based on this variant:https://github.com/umdjs/umd/blob/master/returnExports.js
However, both implementations have the following lines:
This means that in the absence of an AMD or CommonJS environment, the module will be added as a
returnExports
function on the window object.When using UMD this property name should be edited!
Agreed :) do it
Was that comment meant for #104 ?
I'd like to fix the AMD implementation with a less cut'n'paste oriented approach if possible :-)
Sorry, I just meant that you should do whatever you want to improve the situation :)
Thanks - will do :-)