Fixed: 64a0fb2 broke CPCharacterSet.

The `cs == nil` to `cs === nil` change introduced by 64a0fb2 was incorrect. Since `CPCharacterSet` is used widely through Cappuccino this broke many unit tests and much functionality.

The fix is to again consider both `nil` and `undefined` as cause for initing a new character set.
This commit is contained in:
Alexander Ljungberg committed 2013-01-23 23:33:42 +00:00
1 parent 401a5f7ff7
commit 65fd33b9cf
1 file changed
+1 -1
+1 -1
View File
@@ -148,7 +148,7 @@ var _builtInCharacterSets = {};
{
var cs = _builtInCharacterSets[csname];
if (cs === nil)
if (!cs)
{
var i = 0,
ranges = [CPArray array],