angular-ui / ui-ace

This directive allows you to add ACE editor elements.
http://angular-ui.github.io/ui-ace
MIT License
578 stars 172 forks source link

Error "Cannot read property 'document' of undefined" when uglifying src-noconflict #107

Closed psaia closed 9 years ago

psaia commented 9 years ago

It seems as though when using the default configurations while minfying (attempting the already minified as well) the noconfict src ace.js this error is thrown. I'm using the #master version via bower.

The issue is here at global.document:

init(true);function init(packaged) {

    options.packaged = packaged || require.packaged || module.packaged || (global.define && define.packaged);

    if (!global.document)
        return "";
psaia commented 9 years ago

Closing and putting here instead.