aboutsummaryrefslogtreecommitdiffstats
path: root/include/classes/BigPipe/Pagelet.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2017-10-07 11:10:25 +0200
committerThomas Lange <code@nerdmind.de>2017-10-07 11:10:25 +0200
commit80420baa5b6c42f016c041bc13264382cc50d698 (patch)
tree355c54b090849b4d1cba11fdf59e89229387a3c3 /include/classes/BigPipe/Pagelet.php
parent6550b64a5a6463bd371e13af82db86999b9363cc (diff)
downloadbigpipe-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/BigPipe/Pagelet.php')
-rwxr-xr-xinclude/classes/BigPipe/Pagelet.php14
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) {