Skip to content

Commit

Permalink
Merge pull request #358 from MitrahSoft/CF8_Compat
Browse files Browse the repository at this point in the history
Fixed some CF8 compatibility issues
  • Loading branch information
atuttle authored Nov 7, 2017
2 parents 6b7ce5e + fc5dc28 commit 90b6c65
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion core/api.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@
<cfargument name="targetPage" type="string" required="true" />

<cfset var _taffyRequest = {} />
<cfset request._taffyRequest = _taffyRequest />
<cfset var local = {} />
<cfset var m = '' />
<cfset request._taffyRequest = _taffyRequest />
<cfset local.debug = false />

<cfset _taffyRequest.metrics = {} />
Expand Down
13 changes: 10 additions & 3 deletions core/factory.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@
this.beans = structNew();
this.transients = structNew();
//functionality
function init(externalBeanFactory){
if (structKeyExists(arguments, "externalBeanFactory")) {
</cfscript>

<cffunction name="init" output="false">
<cfargument name="externalBeanFactory" default="">
<cfscript>
if (structKeyExists(arguments, "externalBeanFactory") AND arguments.externalBeanFactory neq "") {
this.externalBeanFactory = arguments.externalBeanFactory;
}
return this;
}
</cfscript>
</cffunction>

<cfscript>
// Proxy to beanExists to provide similar interface to ColdSpring
function containsBean(beanName){
return beanExists(arguments.beanName);
Expand Down

0 comments on commit 90b6c65

Please sign in to comment.