Permalink
Browse files

allow string to be passed to remove

  • Loading branch information...
1 parent 22a03f3 commit e4b9253a727a9adef05c3d5b4c7bff0b57fe54eb @madhums committed Aug 25, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/imager.js
View
@@ -197,6 +197,9 @@ Imager.prototype.remove = function (files, callback, variant) {
var self = this
+ if (!Array.isArray(files) && typeof files === 'string')
+ files = files.split()
+
var prepareRemove = function (file, iteratorCallback) {
self.prepareRemove(file, iteratorCallback, variant)
}

0 comments on commit e4b9253

Please sign in to comment.