|
@@ -1,5 +1,12 @@
|
|
-
|
|
|
|
-/* global jQuery, Zepto */
|
|
|
|
|
|
+/*!-----------------------------------------------------------------------------
|
|
|
|
+ * Vegas - Fullscreen Backgrounds and Slideshows.
|
|
|
|
+ * v2.0.5 - built 2015-03-19
|
|
|
|
+ * Licensed under the MIT License.
|
|
|
|
+ * http://vegas.jaysalvat.com/
|
|
|
|
+ * ----------------------------------------------------------------------------
|
|
|
|
+ * Copyright (C) 2010-2015 Jay Salvat
|
|
|
|
+ * http://jaysalvat.com/
|
|
|
|
+ * --------------------------------------------------------------------------*/
|
|
|
|
|
|
(function ($) {
|
|
(function ($) {
|
|
'use strict';
|
|
'use strict';
|
|
@@ -603,6 +610,18 @@
|
|
this.noshow = this.total < 2;
|
|
this.noshow = this.total < 2;
|
|
this._preload();
|
|
this._preload();
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ destroy: function () {
|
|
|
|
+ clearTimeout(this.timeout);
|
|
|
|
+
|
|
|
|
+ this.$elmt.removeClass('vegas-container');
|
|
|
|
+ this.$elmt.find('> .vegas-slide').remove();
|
|
|
|
+ this.$elmt.find('> .vegas-wrapper').clone(true).children().appendTo(this.$elmt);
|
|
|
|
+ this.$elmt.find('> .vegas-wrapper').remove();
|
|
|
|
+ this.$timer.remove();
|
|
|
|
+
|
|
|
|
+ this.elmt._vegas = null;
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|