Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7574
b29311.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 11:28 PM
2014-11-21 23:28:36 (UTC+0)
Size
709 B
Referenced Files
None
Subscribers
None
b29311.patch
View Options
Index: includes/OutputPage.php
===================================================================
--- includes/OutputPage.php (date 1311884174000)
+++ includes/OutputPage.php (revision )
@@ -442,6 +442,22 @@
}
/**
+ * Remove one or more modules recognized by the resource loader.
+ *
+ * @param $modules Mixed: module name (string) or array of module names
+ */
+ public function removeModules( $modules ) {
+ $this->mModules = array_diff( $this->mModules, (array)$modules );
+ }
+
+ /**
+ * Removes all modules for resource loader.
+ */
+ public function resetModules() {
+ $this->mModules = array();
+ }
+
+ /**
* Get the list of module JS to include on this page
*
* @param $filter
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
7104
Default Alt Text
b29311.patch (709 B)
Attached To
Mode
T31311: [OutputPage] Create a method to remove items from mModules
Attached
Detach File
Event Timeline
Log In to Comment