In case if anyone's still struggling to make it work with requirejs, here's how it's done:
1) Your requirejs config file should look like this:
In the 'modules/clipboard' file: (Notice the parameters in the function below, you need to pass the constructor as a parameter)
发表评论 取消回复