Permalink
Browse files

Update to match new cookie name

  • Loading branch information...
avanderhoorn committed Sep 19, 2012
1 parent 69d0715 commit e803b0458bce1964ac5b53bf59721a8155cf2ba8

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
@@ -54,7 +54,7 @@
close = function() {
settings.local('isOpen', false);
settings.local('hidden', false);
- settings.global('glimpseState', null, -1);
+ settings.global('glimpsePolicy', null, -1);
pubsub.publish('action.shell.closeing');

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -1,26 +1,26 @@
-state = function () {
- var //Support
- wireListeners = function() {
- pubsub.subscribe('state.persist', persist);
- pubsub.subscribe('state.restore', restore);
- pubsub.subscribe('state.terminate', terminate);
- pubsub.subscribe('state.init', restore);
- },
-
- //Main
- persist = function () {
- util.cookie('glimpseOptions', settings);
- },
- restore = function () {
- settings = $.extend(settings, util.cookie('glimpseOptions'));
- },
- terminate = function () {
- util.cookie('glimpseState', null);
- },
- init = function () {
- wireListeners();
- restore();
- };
-
- init();
+state = function () {
+ var //Support
+ wireListeners = function() {
+ pubsub.subscribe('state.persist', persist);
+ pubsub.subscribe('state.restore', restore);
+ pubsub.subscribe('state.terminate', terminate);
+ pubsub.subscribe('state.init', restore);
+ },
+
+ //Main
+ persist = function () {
+ util.cookie('glimpseOptions', settings);
+ },
+ restore = function () {
+ settings = $.extend(settings, util.cookie('glimpseOptions'));
+ },
+ terminate = function () {
+ util.cookie('glimpsePolicy', null);
+ },
+ init = function () {
+ wireListeners();
+ restore();
+ };
+
+ init();
} ()

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit e803b04

Please sign in to comment.