Created
April 22, 2013 02:55
-
-
Save s992/5432156 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
function test() { | |
return "I break when serialized!"; | |
} | |
writeOutput( serializeJSON( test ) ); | |
</cfscript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
component accessors="true" { | |
property id; | |
property name; | |
property occupation; | |
property address; | |
public any function init() { | |
this.test = "I am 'this.test' and I am part of the struct!"; | |
return this; | |
} | |
package any function package() { | |
return "package"; | |
} | |
private any function private() { | |
return "private"; | |
} | |
remote any function remote() { | |
return "remote"; | |
} | |
} | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment