This project is archived and is in readonly mode.

#565 ✓wontfix
schelmo

$merge/setOptions isnt working with hashes

Reported by schelmo | January 21st, 2009 @ 01:20 PM | in 2.0 (closed)

$merge just ignores hashes. $merge({a: 1}, $H({a: 2, b: 3})) just returns {a: 1} or is it supposed to work like that ?

especially its bad when you pass an Hash as options for a class. you always have to pass with .getClean()

perhaps a fix (in function $merge):


  var object = arguments[i];
  if ($type(object) == 'hash')
    object = object.getClean();
  if ($type(object) != 'object') continue;

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

People watching this ticket

Pages