Skip to content
This repository
Browse code

Handle properly arguments in save_func

  • Loading branch information...
commit fbfd33101c887fe7409a6c61e019c143fa5bf1cb 1 parent 523a68f
nicolaslt nicolaslt authored

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. +2 0  gd.js
2  gd.js
@@ -62,6 +62,8 @@ function open_func(format, len) {
62 62
63 63 function save_func(format, len) {
64 64 format = format.toLowerCase();
  65 + if (!(arguments instanceof Array))
  66 + arguments = Array.prototype.slice.call(arguments);
65 67
66 68 return function() {
67 69 var args = [].concat(arguments);

2 comments on commit fbfd331

Mike Smullin

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.
Something went wrong with that request. Please try again.