Skip to content

Commit

Permalink
cleanup dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherjbaker committed Oct 26, 2017
1 parent 768ece9 commit e4585e3
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 25 deletions.
9 changes: 1 addition & 8 deletions can-simple-map.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ var Construct = require("can-construct");
var eventQueue = require("can-event-queue");
var queues = require("can-queues");
var each = require("can-util/js/each/each");
var types = require("can-types");
var ObservationRecorder = require("can-observation-recorder");
var canReflect = require("can-reflect");
var CIDMap = require("can-cid/map/map");
var dev = require("can-log/dev/dev");
var canSymbol = require("can-symbol");

Expand Down Expand Up @@ -90,7 +88,7 @@ var SimpleMap = Construct.extend("SimpleMap",
}
},
serialize: function(){
return canReflect.serialize(this, CIDMap);
return canReflect.serialize(this, Map);
},
get: function(){
return this.attr.apply(this, arguments);
Expand Down Expand Up @@ -131,11 +129,6 @@ var SimpleMap = Construct.extend("SimpleMap",

eventQueue(SimpleMap.prototype);

if(!types.DefaultMap) {
types.DefaultMap = SimpleMap;
}


canReflect.assignSymbols(SimpleMap.prototype,{
// -type-
"can.isMapLike": true,
Expand Down
15 changes: 0 additions & 15 deletions can-simple-map_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,6 @@ QUnit.test("sets constructor name", function(assert) {
assert.equal(map.constructor.name, "SimpleMap");
});

QUnit.test("adds defaultMap type", function() {
stop();
var c = clone();

// ensure types.DefaultMap is not impacted by
// other map types that may have been loaded
c.import('can-types').then(function(types) {
c.import('./can-simple-map').then(function(SimpleMap) {
var map = new types.DefaultMap();
QUnit.ok(map instanceof SimpleMap);
start();
});
});
});

QUnit.test("instantiates and gets events", 2, function() {
var map = new SimpleMap({ age: 29 });

Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
]
},
"dependencies": {
"can-cid": "^1.0.3",
"can-construct": "^3.2.0",
"can-event-queue": "<2.0.0",
"can-key-tree": "<2.0.0",
Expand All @@ -51,7 +50,6 @@
"can-queues": "<2.0.0",
"can-reflect": "^1.2.1",
"can-symbol": "^1.0.0",
"can-types": "^1.1.0",
"can-util": "^3.9.0"
},
"devDependencies": {
Expand Down

0 comments on commit e4585e3

Please sign in to comment.