Permalink
Cannot retrieve contributors at this time
Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up
Fetching contributors…

<?php | |
/** | |
* @link https://craftcms.com/ | |
* @copyright Copyright (c) Pixel & Tonic, Inc. | |
* @license https://craftcms.github.io/license/ | |
*/ | |
namespace craft\web\assets\garnish; | |
use craft\web\AssetBundle; | |
use craft\web\assets\elementresizedetector\ElementResizeDetectorAsset; | |
use craft\web\assets\jquerytouchevents\JqueryTouchEventsAsset; | |
use craft\web\assets\velocity\VelocityAsset; | |
use yii\web\JqueryAsset; | |
/** | |
* Garnish asset bundle. | |
*/ | |
class GarnishAsset extends AssetBundle | |
{ | |
/** | |
* @inheritdoc | |
*/ | |
public function init() | |
{ | |
$this->sourcePath = '@lib/garnishjs'; | |
$this->depends = [ | |
ElementResizeDetectorAsset::class, | |
JqueryAsset::class, | |
JqueryTouchEventsAsset::class, | |
VelocityAsset::class, | |
]; | |
$this->js = [ | |
'garnish.js', | |
]; | |
parent::init(); | |
} | |
} |