Merge remote-tracking branch 'origin/master'

This commit is contained in:
Jürg Lehni 2011-02-21 00:28:48 +01:00
commit 77f1e22727

View file

@ -35,7 +35,7 @@ Color = Base.extend({
var index = index || 0, length = args.length - index;
if (length == 1 && args[index] instanceof Color) {
return args[index];
} else if (length != 0) {
} else if (length != 0 && args[0] !== null) {
var rgbColor = new RGBColor(RGBColor.dont);
rgbColor.initialize.apply(rgbColor, index > 0
? Array.prototype.slice.call(args, index) : args);