Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought

Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Author Topic: Reserved notification constants  (Read 4649 times)
Jr. Member
Posts: 17

View Profile Email
« on: April 22, 2008, 01:58:02 »

Hi all,

I just spent 3 days on a bug, so hope this will make life easier for someone...

ApplicationFacade.FILTER (filter)
ApplicationFacade.SORT (sort)

Do not work when registering a mediator with these words in the list of notification interests
PureMVC -> view.as line 89 consider them as function name and the compiler cannot cast them to Array...

Global Moderator
Hero Member
Posts: 2871

View Profile WWW Email
« Reply #1 on: April 22, 2008, 11:03:31 »

var observers:Array = observerMap[ notificationName ];'

Very interesting. if Notification name is filter or sort, AS3 is accessing observerMap.filter() or observerMap.sort(). Looks like we must consider these reserved constants.

Thanks for posting this, Patrick. Sorry it caused you so much grief.

Pages: [1]