"undefined" data-fields cause exceptions #82

Closed
warappa opened this Issue Apr 8, 2013 · 2 comments

Comments

Projects
None yet
2 participants

warappa commented Apr 8, 2013

Having a data-object with a "undefined" field causes a "Cannot read property 'name' of undefined" at

append: function (a, c, d, h)
        {
            this.items.push({
                name: a,
                blob: c && c.blob || c,
                file: d || c.name, // <- THIS LINE Uncaught TypeError: Cannot read property 'name' of undefined
                type: h || c.type
            })
        },

I think there must be an "undefined"-check: ignoring this field or sending an empty value (or something like this).

Lg
warappa

Contributor

RubaXa commented Apr 9, 2013

Thank you!
Try a dev branch.

warappa commented Apr 10, 2013

It works! Thank you for the quick fix! :)

RubaXa closed this Apr 11, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment