Age | Commit message (Collapse) | Author | Files | Lines |
|
* Rename "ID" property of the Item class to "id"
* Rename "customID" constructor parameter to "id"
* Rename "resourceURL" property of the Resource class to "url"
* Rename "resourceURL" constructor parameter to "url"
|
|
|
|
Class BigPipe\BigPipe:
* addPhaseDoneJS
Class BigPipe\Pagelet:
* addHTML
* addResource
* addJSCode
* addDependency
* setTagName
* setPlaceholderHTML
|
|
Rename the second parameter for the "addPhaseDoneJS" method of the Item
class from the misleading name "callback" to "code" because that method
doesn't expect a real JS (or PHP) callback but rather simple JS code.
|
|
Remove the unnecessary PHP closing tags and ensure that
*all* non-binary files ending with an LF character.
|
|
This commit removes the superflous function calls "removeLineBreaksAndTabs" from the "Pagelet::getStructure()" and "Item::addPhaseDoneJS()" method. If it bothers you when some properties of the JSON-encoded pagelet object contain line breaks and tabs (visible as "\r", "\n" and "\t"), then you'll need to remove them before you pass the string of javascript code to the corresponding methods:
* $Pagelet->addJSCode(removeLineBreaksAndTabs($javascript_code));
* $Pagelet->addPhaseDoneJS(0, removeLineBreaksAndTabs($javascript_code));
|
|
Item class.
|
|
|
|
|