QUnit.test('Ember.isEmpty Ember.Map', function() {
  var map = new Map();
  equal(true, isEmpty(map), 'Empty map is empty');
  map.set('foo', 'bar');
  equal(false, isEmpty(map), 'Map is not empty');
});
Example #2
0
var Binding = function(toPath, fromPath) {
  this._direction = 'fwd';
  this._from = fromPath;
  this._to   = toPath;
  this._directionMap = Map.create();
};
Example #3
0
test("Ember.isEmpty Ember.Map", function() {
  var map = new Map();
  equal(true, isEmpty(map), "Empty map is empty");
  map.set('foo', 'bar');
  equal(false, isEmpty(map), "Map is not empty");
});