Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Save functions callback were not working #15

Merged
merged 1 commit into from

3 participants

@nicolaslt

Hi,

As said in the object.
I just copied the bit of code that was parsing the arguments object from open_func to save_func.
Tested on node 0.6.10 and 0.8.7.

Cheers,

Nicolas

@taggon taggon merged commit 23f762a into taggon:master
@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 16, 2012
  1. @nicolaslt
This page is out of date. Refresh to see the latest.
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);
Something went wrong with that request. Please try again.