Multiple Event Types - Possible Bug

2 views
Skip to first unread message

Todd Sharp

unread,
Apr 23, 2012, 9:24:46 AM4/23/12
to model-glue
I believe there may be a bug that prevents multiple event types from
being properly assigned to an event handler if the list of event types
contains spaces.

For example, if I do:

<event-handler name="foo.something" type="templateOne, templateTwo">
<broadcasts />
<results />
<views>
</views>
</event-handler>

It appears that templateTwo is not processed unless I remove the
space.

It seems the fix would be to trim() the event types in loadEventTypes
within ModelGlue\gesture\module\XMLModuleLoader.cfc and also within
addTypedElementsToEventHandler, but I'm not 100% sure that will fix it
based on a 60 second glance.

Dan Wilson

unread,
Apr 23, 2012, 9:32:27 AM4/23/12
to model...@googlegroups.com

Which version are you using?

DW

--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog

You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en

Todd Sharp

unread,
Apr 23, 2012, 9:37:58 AM4/23/12
to model...@googlegroups.com

Dan Wilson

unread,
Apr 23, 2012, 9:46:37 AM4/23/12
to model...@googlegroups.com

I figured as much. We squared this away in 3.2.x so if you are in a position to go for that, you'll be fine.

Else we may crank out a new build for this, since 3.1.299 is the currently gold release.

DW

todd sharp

unread,
Apr 23, 2012, 9:54:33 AM4/23/12
to model...@googlegroups.com
Excellent - thanks Dan.  We'll take a look at upgrading as soon as feasible.

Todd
--
Todd Sharp
IM:  cfsi...@gmail.com
Blog:  http://cfsilence.com
Twitter: @cfsilence
Reply all
Reply to author
Forward
0 new messages