There are some odd whitespace characters after exp in "$.cookie(key, value, { expires: exp });" This is causing javascript errors using JSMin compressor in Advanced Aggregation module.

You can see it here color coded in purple:
http://cgit.drupalcode.org/radioactivity/tree/js/radioactivity.js?h=7.x-...

In js/radioactivity.js

  store: function (key, value, exp) {
    //return this.hardStore(key, value, exp);
    if (typeof(Storage) !== "undefined") {
      // Fall back to using cookies if this fails
      try {
        localStorage.setItem(key, JSON.stringify({
          value: value,
          expire: exp.getTime()
        }));
      } catch(e) {
        $.cookie(key, value, { expires: exp });
      }
    } else {
      $.cookie(key, value, { expires: exp });
    }
  },

Comments

momendo created an issue. See original summary.

jrabeemer’s picture

Issue summary: View changes
jrabeemer’s picture

StatusFileSize
new824 bytes

Patch.

jrabeemer’s picture

Status: Active » Needs review
sutharsan’s picture

Category: Task » Bug report
Status: Needs review » Reviewed & tested by the community

I can't see what is wrong, but I trust your explanation. Code looks good.

Changing to bug because it causes a problem.

sutharsan’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.