Skip to content

Instantly share code, notes, and snippets.

@minodisk
Created August 29, 2011 13:58
Show Gist options
  • Save minodisk/1178447 to your computer and use it in GitHub Desktop.
Save minodisk/1178447 to your computer and use it in GitHub Desktop.
状況によってtraceを出力するかどうかを切り分ける
package {
public function print(...texts):void {
if (printable) {
trace.apply(null, texts);
}
}
}
package {
public var printable:Boolean = true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment