Skip to content

Commit

Permalink
Remove symbol descriptors
Browse files Browse the repository at this point in the history
  • Loading branch information
goatslacker authored and jdlehman committed Apr 17, 2015
1 parent 6c76301 commit edc789f
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 36 deletions.
46 changes: 34 additions & 12 deletions dist/alt-browser-with-addons.js
Expand Up @@ -1453,33 +1453,55 @@ var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["defau
Object.defineProperty(exports, "__esModule", {
value: true
});
"use strict";

var Symbol = _interopRequire(require("es-symbol"));

var ACTION_HANDLER = Symbol("action creator handler");
// action creator handler
var ACTION_HANDLER = Symbol();

exports.ACTION_HANDLER = ACTION_HANDLER;
var ACTION_KEY = Symbol("holds the actions uid symbol for listening");
// the action's uid symbol for listening
var ACTION_KEY = Symbol();

exports.ACTION_KEY = ACTION_KEY;
var ACTION_UID = Symbol("the actions uid name");
// the action's name
var ACTION_UID = Symbol();

exports.ACTION_UID = ACTION_UID;
var ALL_LISTENERS = Symbol("name of listeners");
// store all of a store's listeners
var ALL_LISTENERS = Symbol();

exports.ALL_LISTENERS = ALL_LISTENERS;
var EE = Symbol("event emitter instance");
// event emitter instance
var EE = Symbol();

exports.EE = EE;
var INIT_SNAPSHOT = Symbol("init snapshot storage");
// initial snapshot
var INIT_SNAPSHOT = Symbol();

exports.INIT_SNAPSHOT = INIT_SNAPSHOT;
var LAST_SNAPSHOT = Symbol("last snapshot storage");
// last snapshot
var LAST_SNAPSHOT = Symbol();

exports.LAST_SNAPSHOT = LAST_SNAPSHOT;
var LIFECYCLE = Symbol("store lifecycle listeners");
// all lifecycle listeners
var LIFECYCLE = Symbol();

exports.LIFECYCLE = LIFECYCLE;
var LISTENERS = Symbol("stores action listeners storage");
// store action listeners
var LISTENERS = Symbol();

exports.LISTENERS = LISTENERS;
var PUBLIC_METHODS = Symbol("store public method storage");
// public methods
var PUBLIC_METHODS = Symbol();

exports.PUBLIC_METHODS = PUBLIC_METHODS;
// boolean if state has changed for emitting change event
var STATE_CHANGED = Symbol();

exports.STATE_CHANGED = STATE_CHANGED;
var STATE_CONTAINER = Symbol("the state container");
// contains all state
var STATE_CONTAINER = Symbol();
exports.STATE_CONTAINER = STATE_CONTAINER;

},{"es-symbol":5}],16:[function(require,module,exports){
Expand Down
46 changes: 34 additions & 12 deletions dist/alt-browser.js
Expand Up @@ -1168,33 +1168,55 @@ var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["defau
Object.defineProperty(exports, "__esModule", {
value: true
});
"use strict";

var Symbol = _interopRequire(require("es-symbol"));

var ACTION_HANDLER = Symbol("action creator handler");
// action creator handler
var ACTION_HANDLER = Symbol();

exports.ACTION_HANDLER = ACTION_HANDLER;
var ACTION_KEY = Symbol("holds the actions uid symbol for listening");
// the action's uid symbol for listening
var ACTION_KEY = Symbol();

exports.ACTION_KEY = ACTION_KEY;
var ACTION_UID = Symbol("the actions uid name");
// the action's name
var ACTION_UID = Symbol();

exports.ACTION_UID = ACTION_UID;
var ALL_LISTENERS = Symbol("name of listeners");
// store all of a store's listeners
var ALL_LISTENERS = Symbol();

exports.ALL_LISTENERS = ALL_LISTENERS;
var EE = Symbol("event emitter instance");
// event emitter instance
var EE = Symbol();

exports.EE = EE;
var INIT_SNAPSHOT = Symbol("init snapshot storage");
// initial snapshot
var INIT_SNAPSHOT = Symbol();

exports.INIT_SNAPSHOT = INIT_SNAPSHOT;
var LAST_SNAPSHOT = Symbol("last snapshot storage");
// last snapshot
var LAST_SNAPSHOT = Symbol();

exports.LAST_SNAPSHOT = LAST_SNAPSHOT;
var LIFECYCLE = Symbol("store lifecycle listeners");
// all lifecycle listeners
var LIFECYCLE = Symbol();

exports.LIFECYCLE = LIFECYCLE;
var LISTENERS = Symbol("stores action listeners storage");
// store action listeners
var LISTENERS = Symbol();

exports.LISTENERS = LISTENERS;
var PUBLIC_METHODS = Symbol("store public method storage");
// public methods
var PUBLIC_METHODS = Symbol();

exports.PUBLIC_METHODS = PUBLIC_METHODS;
// boolean if state has changed for emitting change event
var STATE_CHANGED = Symbol();

exports.STATE_CHANGED = STATE_CHANGED;
var STATE_CONTAINER = Symbol("the state container");
// contains all state
var STATE_CONTAINER = Symbol();
exports.STATE_CONTAINER = STATE_CONTAINER;

},{"es-symbol":1}],11:[function(require,module,exports){
Expand Down
46 changes: 34 additions & 12 deletions src/shared/symbols.js
@@ -1,15 +1,37 @@
'use strict'
import Symbol from 'es-symbol'

export const ACTION_HANDLER = Symbol('action creator handler')
export const ACTION_KEY = Symbol('holds the actions uid symbol for listening')
export const ACTION_UID = Symbol('the actions uid name')
export const ALL_LISTENERS = Symbol('name of listeners')
export const EE = Symbol('event emitter instance')
export const INIT_SNAPSHOT = Symbol('init snapshot storage')
export const LAST_SNAPSHOT = Symbol('last snapshot storage')
export const LIFECYCLE = Symbol('store lifecycle listeners')
export const LISTENERS = Symbol('stores action listeners storage')
export const PUBLIC_METHODS = Symbol('store public method storage')
// action creator handler
export const ACTION_HANDLER = Symbol()

// the action's uid symbol for listening
export const ACTION_KEY = Symbol()

// the action's name
export const ACTION_UID = Symbol()

// store all of a store's listeners
export const ALL_LISTENERS = Symbol()

// event emitter instance
export const EE = Symbol()

// initial snapshot
export const INIT_SNAPSHOT = Symbol()

// last snapshot
export const LAST_SNAPSHOT = Symbol()

// all lifecycle listeners
export const LIFECYCLE = Symbol()

// store action listeners
export const LISTENERS = Symbol()

// public methods
export const PUBLIC_METHODS = Symbol()

// boolean if state has changed for emitting change event
export const STATE_CHANGED = Symbol()
export const STATE_CONTAINER = Symbol('the state container')

// contains all state
export const STATE_CONTAINER = Symbol()

0 comments on commit edc789f

Please sign in to comment.