This project is archived and is in readonly mode.

#437 ✓invalid
Massimiliano Torromeo

Array.flatten(undefined) produces: [window]

Reported by Massimiliano Torromeo | October 22nd, 2008 @ 08:36 AM | in 2.0 (closed)

Using Array.flatten on an undefined value produces an array which contains the Window element.

Expected result: Empty array: []

Comments and changes to this ticket

  • Jan Kassens

    Jan Kassens October 22nd, 2008 @ 11:01 AM

    • State changed from “new” to “hold”
    • Assigned user changed from “Valerio” to “Jan Kassens”

    Array.flatten() applies the array prototype .flatten on the passed element, so the usage is kind wrong, but we could probably unify the behaviour across browsers.

    Can't validate in firefox 3 nor safari 3, example or browser please.

  • Massimiliano Torromeo

    Massimiliano Torromeo October 22nd, 2008 @ 01:22 PM

    I tried building a test page with only mootools-core and mootools-more but the issue disappeared.

    I tried adding clientside (which I'm using in my website) and nothing changed.

    It seems there's something else that is triggering this behaviour but I'm unable to isolate the issue at the moment, and it's probably only on my side.

    Sorry for the loss of time and thanks for the great library.

  • Jan Kassens

    Jan Kassens October 22nd, 2008 @ 01:58 PM

    • State changed from “hold” to “invalid”

    you're welcome!

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins