pass Clay to component initializer

This commit is contained in:
Keegan
2016-02-15 11:39:25 -08:00
parent 64fa83528e
commit ea5c349047
3 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -48,11 +48,12 @@ function ClayItem(config) {
/**
* Run the initializer if it exists and attaches the css to the head.
* Passes minified as the first param
* @param {ClayConfig} clay
* @returns {ClayItem}
*/
self.initialize = function() {
self.initialize = function(clay) {
if (typeof _component.initialize === 'function') {
_component.initialize.call(self, minified);
_component.initialize.call(self, minified, clay);
}
return self;
};