Skip to content

Commit

Permalink
prefer new Map() syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanpenner committed Sep 22, 2014
1 parent 8f51ba4 commit def2d72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/ember-metal/lib/binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Ember from "ember-metal/core"; // Ember.Logger, Ember.LOG_BINDINGS, asser
import { get } from "ember-metal/property_get";
import { trySet } from "ember-metal/property_set";
import { guidFor } from "ember-metal/utils";
import { Map } from "ember-metal/map";
import Map from "ember-metal/map";
import {
addObserver,
removeObserver,
Expand Down Expand Up @@ -58,7 +58,7 @@ function Binding(toPath, fromPath) {
this._direction = 'fwd';
this._from = fromPath;
this._to = toPath;
this._directionMap = Map.create();
this._directionMap = new Map();
this._readyToSync = undefined;
this._oneWay = undefined;
}
Expand Down
1 change: 1 addition & 0 deletions packages/ember-metal/lib/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ MapWithDefault.prototype.copy = function() {
}));
};

export default Map;
export {
OrderedSet,
Map,
Expand Down

0 comments on commit def2d72

Please sign in to comment.