Skip to content

Commit

Permalink
cleanup dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Baker committed Oct 26, 2017
1 parent 768ece9 commit d92aa96
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 26 deletions.
1 change: 1 addition & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"stop": true,
"global": true,
"Promise": true,
"Map": true,
"Set": true
},
"strict": false,
Expand Down
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
16 changes: 0 additions & 16 deletions can-simple-map_test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
var QUnit = require('steal-qunit');
var SimpleMap = require('./can-simple-map');
var clone = require('steal-clone');
var canSymbol = require('can-symbol');
var canReflect = require('can-reflect');
var Observation = require("can-observation");
Expand All @@ -13,21 +12,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 d92aa96

Please sign in to comment.