Permalink
Browse files

Handle properly arguments in save_func

  • Loading branch information...
1 parent 523a68f commit fbfd33101c887fe7409a6c61e019c143fa5bf1cb @nicolaslt nicolaslt committed Aug 16, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 gd.js
View
2 gd.js
@@ -62,6 +62,8 @@ function open_func(format, len) {
function save_func(format, len) {
format = format.toLowerCase();
+ if (!(arguments instanceof Array))
+ arguments = Array.prototype.slice.call(arguments);
return function() {
var args = [].concat(arguments);

2 comments on commit fbfd331

@mikesmullin

your fix has been accepted into the community-maintained branch. if you are happy with it you may delete your fork. trying to consolidate effort :) thx
https://github.com/mikesmullin/node-gd

@nicolaslt
Please sign in to comment.