From 114c04bcbc56afd64c0a464b8879a3154861eb34 Mon Sep 17 00:00:00 2001 From: Ryan King Date: Mon, 23 Dec 2013 11:54:38 -0800 Subject: [PATCH] Update comments and cleared generated_stylesheets Updated the function comments to better describe what the function does. Also added a line to clear the generated_stylesheets array cache when the tags are removed. That way they can be added back later without failing during the cache check. --- src/jquery.gridster.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/jquery.gridster.js b/src/jquery.gridster.js index 88b984b3..f3b1bf2d 100644 --- a/src/jquery.gridster.js +++ b/src/jquery.gridster.js @@ -2689,13 +2689,14 @@ /** - * Remove the style tag with the associated id from the head of the document + * Remove the style tags from the head of the document * - * @method remove_style_tag + * @method remove_style_tags * @return {Object} Returns the instance of the Gridster class. */ fn.remove_style_tags = function() { this.$style_tags.remove(); + Gridster.generated_stylesheets = []; };