mirror of
https://github.com/pebble-dev/clay.git
synced 2026-08-28 04:46:57 -04:00
make ClayConfig.destroy() return self
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user