Jan-Jaap Driessen avatar Jan-Jaap Driessen committed 36fd22a

This already happens in the mode_clone.

Comments (0)

Files changed (1)

fanstatic/core.py

             if debug_resource is not None:
                 self.modes[DEBUG] = debug_resource
 
-            # also create a reference to the superseding mode in the superseded
-            # mode
-            for mode_name, mode in self.modes.items():
-                for resource in self.supersedes:
-                    superseded_mode = resource.mode(mode_name)
-                    # if there is no such mode, let's skip it
-                    if superseded_mode is resource:
-                        continue
-                    mode.supersedes.add(superseded_mode)
-                    superseded_mode._rollups.add(mode)
-
         elif self._mode == MINIFIED:
             if self.compiler is None and self.minifier is not None:
                 # Raise a configuration error if both minifier and minified are defined. 
             # Synchronize the dependency information with the mode resources.
             source.dependency_nr = self.dependency_nr
             source.library_nr = self.library_nr
+            return source
 
-            return source
         return self.__class__(self.library, source or self.source,
                               _mode=mode,
                               depends=depends_in_mode,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.