aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Longair <mhl@pobox.com>2013-10-15 16:08:39 +0100
committerMark Longair <mhl@pobox.com>2013-10-15 16:23:25 +0100
commit6ba0214f60304a19dc4a80855d57be74bf79bab6 (patch)
treef44c5f7dc5ec481931a06b7ec60997f03495e9ce
parentf4ddaf1de89ab5929eb0ad84ed579bb674c55d34 (diff)
Work around a bug in yui-compressor
jquery.flot.axislabels.js fails to minify with yui-compressor due to a bug in it relating to delete being a keyword - we can work around this by using the ['delete'] syntax instead.
-rw-r--r--public/javascripts/jquery.flot.axislabels.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/public/javascripts/jquery.flot.axislabels.js b/public/javascripts/jquery.flot.axislabels.js
index d75b03ba9..c6f77aad4 100644
--- a/public/javascripts/jquery.flot.axislabels.js
+++ b/public/javascripts/jquery.flot.axislabels.js
@@ -61,7 +61,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
this.height = 0;
}
- AxisLabel.prototype.delete = function() {
+ AxisLabel.prototype['delete'] = function() {
};
@@ -144,7 +144,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
}
};
- HtmlAxisLabel.prototype.delete = function() {
+ HtmlAxisLabel.prototype['delete'] = function() {
if (this.elem) {
this.elem.remove();
}
@@ -357,7 +357,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
axisLabels[axisName].width;
opts.labelHeight = axis.labelHeight;
opts.labelWidth = axis.labelWidth;
- axisLabels[axisName].delete();
+ axisLabels[axisName]['delete']();
delete axisLabels[axisName];
}