LibAlts-1.0

2 - UnSetAlt Function

I would like to see an UnSetAlt function be available so that any addon using libalts that stores its own data can update the LibAlts data.

A Callback similar to SetAlt would work really well for this as well.

Example (thae actual remove code would need a little work):

function lib:UnSetAlt(main, alt)
    if (not main) or (not alt) then return end
    Mains = nil

    main = main:lower()
    alt = alt:lower()

    tremove(Alts[main], alt) -- wont actually work, but you get the idea

    callbacks:Fire("LibAlts_UnSetAlt", main, alt)
end

User When Change
sylvanaar Wed, 09 Sep 2009 17:45:13 Changed status from New to Fixed
mastermyte Wed, 20 May 2009 05:29:25 Create

You must login to post a comment. Don't have an account? Register to get one!

  • 1 comment
  • Avatar of sylvanaar sylvanaar Wed, 09 Sep 2009 17:45:16

    Fixed by patch submitted in issue #3

  • 1 comment

Facts

Last updated on
09 Sep 2009
Reported on
20 May 2009
Status
Fixed - Developer made requested changes. QA should verify.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.

Reported by

Possible assignees