Ticket #337: MGG-21_fix_EventContext.diff
| File MGG-21_fix_EventContext.diff, 1.5 kB (added by cfgrok, 17 years ago) |
|---|
-
home/jkrug/temp/modelglue/ModelGlue/gesture/eventrequest/EventContext.cfc
619 619 <!--- so we don't have something we can attach keys to, lets make something---> 620 620 <cfset ScopeContext[ thisEventKeyArray[j] ] = structNew() /> 621 621 </cfif> 622 <cfif j IS arrayLen( thisEventKeyArray ) AND i LTE arrayLen( arguments.ArrayOfDefaults )> 622 <cfif j IS arrayLen( thisEventKeyArray ) AND variables._state.exists( EventKeyArray[i] )> 623 <!--- if we are done dot-walking, and have an event value, lets use it. We should be done in the inner loop after this----> 624 <cfset ScopeContext[ thisEventKeyArray[j] ] = variables._state.getValue( EventKeyArray[i] ) /> 625 <cfelseif j IS arrayLen( thisEventKeyArray ) AND i LTE arrayLen( arguments.ArrayOfDefaults )> 623 626 <!--- if we are done dot-walking, and have a default, lets use it. We should be done in the inner loop after this----> 624 627 <cfset ScopeContext[ thisEventKeyArray[j] ] = arguments.ArrayOfDefaults[i] /> 625 628 <cfelseif j IS arrayLen( thisEventKeyArray )> … … 739 742 <cfreturn variables._beanPopulator.populate(arguments.target, variables._state, fields) /> 740 743 </cffunction> 741 744 742 </cfcomponent> 743 No newline at end of file 745 </cfcomponent>
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)