Skip to content

Node.js based forum software built for the modern web

wrapper for grabbing components without modifiers

psychobunny572765897669
diff --git a/public/src/components.js b/public/src/components.js
index 3b02cc04b6..fe3fcec1fa 100644
--- a/public/src/components.js
+++ b/public/src/components.js
@@ -20,6 +20,11 @@ var components = components || {};
components.get = function() {
var args = Array.prototype.slice.call(arguments, 1);
- return components.core[arguments[0]].apply(this, args);
+
+ if (components.core[arguments[0]]) {
+ return components.core[arguments[0]].apply(this, args);
+ } else {
+ return $('[component="' + arguments[0] + '"]');
+ }
};
}());
\ No newline at end of file