make ClayConfig.destroy() return self

This commit is contained in:
Keegan
2016-05-28 13:11:53 -07:00
parent dc33aa0b5d
commit 12c420d861
+2 -1
View File
@@ -201,7 +201,7 @@ function ClayConfig(settings, config, $rootContainer, meta) {
/** /**
* Empties the root container * Empties the root container
* @return {void} * @returns {ClayConfig}
*/ */
self.destroy = function() { self.destroy = function() {
var el = $rootContainer[0]; var el = $rootContainer[0];
@@ -211,6 +211,7 @@ function ClayConfig(settings, config, $rootContainer, meta) {
} }
_initializeItems(); _initializeItems();
self.trigger(self.EVENTS.AFTER_DESTROY); self.trigger(self.EVENTS.AFTER_DESTROY);
return self;
}; };
/** /**