Created
February 7, 2015 14:53
-
-
Save kdiogenes/87240f32fb2fc5ab8bfe to your computer and use it in GitHub Desktop.
paloma: patch to avoid namespace controller clash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/vendor/assets/javascripts/paloma/controller_factory.js b/vendor/assets/javascripts/paloma/controller_factory.js | |
index 23c34b0..b4ab47b 100644 | |
--- a/vendor/assets/javascripts/paloma/controller_factory.js | |
+++ b/vendor/assets/javascripts/paloma/controller_factory.js | |
@@ -18,7 +18,9 @@ | |
scope = scope[namespace]; | |
} | |
- return scope[config['controller']] = createConstructor(); | |
+ scope[config['controller']] = scope[config['controller']] || {}; | |
+ scope[config['controller']]['controllerImpl'] = createConstructor(); | |
+ return scope[config['controller']]['controllerImpl']; | |
}; | |
@@ -33,7 +35,7 @@ | |
else { return null; } | |
} | |
- return scope; | |
+ return scope['controllerImpl']; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment