234 attempt to fix js error Uncaught SyntaxError: Unexpected identifier 'hidden'
This commit is contained in:
@@ -1,19 +1,17 @@
|
||||
<cfcomponent implements="taffy.bonus.ILogAdapter">
|
||||
component implements="taffy.bonus.ILogAdapter" {
|
||||
|
||||
<cffunction name="init">
|
||||
<cfargument name="config" />
|
||||
<cfargument name="tracker" default="#createObject("component", "Hoth.HothTracker")#" />
|
||||
<cfset variables.hothtracker = arguments.tracker />
|
||||
<cfset variables.hothtracker.init(
|
||||
public function init(config, tracker=createObject("component", "Hoth.HothTracker")) {
|
||||
variables.hothtracker = arguments.tracker;
|
||||
variables.hothtracker.init(
|
||||
createObject("component", arguments.config)
|
||||
) />
|
||||
<cfreturn this />
|
||||
</cffunction>
|
||||
);
|
||||
return this;
|
||||
}
|
||||
|
||||
<cffunction name="saveLog">
|
||||
<cfargument name="exception" />
|
||||
<cfset local.result = variables.HothTracker.track(arguments.exception) />
|
||||
<cfheader name="X-HOTH-LOGGED-EXCEPTION" value="#local.result#" />
|
||||
</cffunction>
|
||||
public function saveLog(exception) {
|
||||
var local = {};
|
||||
local.result = variables.HothTracker.track(arguments.exception);
|
||||
cfheader(name="X-HOTH-LOGGED-EXCEPTION", value=local.result);
|
||||
}
|
||||
|
||||
</cfcomponent>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user