mirror of
https://github.com/Ekokumppanit/ystavakylaecard.git
synced 2026-02-23 12:50:29 +00:00
Sparks: Assets, 1.5.1
http://getsparks.org/packages/assets/versions/HEAD/show Creates our minified and combined .js and .css files
This commit is contained in:
31
sparks/assets/1.5.1/libraries/coffeescript/yy/Access.php
Executable file
31
sparks/assets/1.5.1/libraries/coffeescript/yy/Access.php
Executable file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace CoffeeScript;
|
||||
|
||||
class yy_Access extends yy_Base
|
||||
{
|
||||
public $children = array('name');
|
||||
|
||||
function constructor($name, $tag = NULL)
|
||||
{
|
||||
$this->name = $name;
|
||||
$this->name->as_key = TRUE;
|
||||
|
||||
$this->soak = $tag === 'soak';
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
function compile($options, $level = NULL)
|
||||
{
|
||||
$name = $this->name->compile($options);
|
||||
return preg_match(IDENTIFIER, $name) ? ".{$name}" : "[{$name}]";
|
||||
}
|
||||
|
||||
function is_complex()
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user