diff options
author | Thomas Lange <code@nerdmind.de> | 2017-10-07 11:10:25 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2017-10-07 11:10:25 +0200 |
commit | 80420baa5b6c42f016c041bc13264382cc50d698 (patch) | |
tree | 355c54b090849b4d1cba11fdf59e89229387a3c3 /include/classes | |
parent | 6550b64a5a6463bd371e13af82db86999b9363cc (diff) | |
download | bigpipe-80420baa5b6c42f016c041bc13264382cc50d698.tar.gz bigpipe-80420baa5b6c42f016c041bc13264382cc50d698.tar.xz bigpipe-80420baa5b6c42f016c041bc13264382cc50d698.zip |
The shorthand methods "addCSS" and "addJS" have been removed. If you need shorthand syntax, you can abstract the Pagelet class and use your own extended class which is more flexible and will keep the BigPipe main classes as small as possible.
Diffstat (limited to 'include/classes')
-rwxr-xr-x | include/classes/BigPipe/Pagelet.php | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/classes/BigPipe/Pagelet.php b/include/classes/BigPipe/Pagelet.php index f052b71..664883a 100755 --- a/include/classes/BigPipe/Pagelet.php +++ b/include/classes/BigPipe/Pagelet.php @@ -96,20 +96,6 @@ class Pagelet extends Item { } #=============================================================================== - # Short: Add stylesheet resource by URL - #=============================================================================== - public function addCSS($resourceURL): Resource { - return $this->addResource(new Resource\Stylesheet(NULL, $resourceURL)); - } - - #=============================================================================== - # Short: Add javascript resource by URL - #=============================================================================== - public function addJS($resourceURL): Resource { - return $this->addResource(new Resource\Javascript(NULL, $resourceURL)); - } - - #=============================================================================== # Attach a main JS code part #=============================================================================== public function addJSCode($code) { |