Permalink
Browse files

Merge pull request #15 from nicolaslt/master

Save functions callback were not working
  • Loading branch information...
2 parents 523a68f + fbfd331 commit 23f762abd533de61b74daaa7301c770b68f71c6d @taggon committed Aug 17, 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);

0 comments on commit 23f762a

Please sign in to comment.