ftlabs / ftellipsis

Multi-line ellipsis made possible
MIT License
486 stars 39 forks source link

Fix broken AMD module definition #3

Closed xzyfer closed 11 years ago

xzyfer commented 11 years ago

As it stands using ftellipsis via amd produces the following error "Uncaught TypeError: object is not a function"

Eg

require(['path/to/ftellipsis.min', function(Ellipsis) {
    var element = document.getElementById('my-element');
    var ellipsis = new Ellipsis(element);

    ellipsis.calc();
    ellipsis.set();
});

I wasn't able to fully run the grunt task due to #2

wilsonpage commented 11 years ago

Brill thanks for this :)