This project is archived and is in readonly mode.

#499 ✓invalid
David

Element.erase not passing args

Reported by David | November 26th, 2008 @ 11:14 PM | in 1.2.2

Element.erase should (in my opinion) pass the arguments to the Element.Properties function.

Like this: property.erase.apply(this, Array.slice(arguments, 1))

Comments and changes to this ticket

  • Tom Occhino

    Tom Occhino November 29th, 2008 @ 08:24 AM

    • Assigned user changed from “Valerio” to “Tom Occhino”
    • Milestone changed from 2.0 to 1.2.2
    • State changed from “new” to “invalid”

    We couldn't think of a single case when this would be useful, as erase is synonymous with removeProperty. Also, this simplifies some of the Element.Properties like html, since calling erase is the same as calling set with no arguments.

    If you can provide a case where you think an argument should be passed, add it to this ticket and we will consider.

Create your profile

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

Shared Ticket Bins

People watching this ticket

Pages