Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix the file() package interface when multiple file paths are used.

  • Loading branch information...
commit 0f8c6ed711ed0a1dabcbcf169a0034b3038abdcc 1 parent a23ebec
@jcoglan authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 source/package/dsl.js
View
4 source/package/dsl.js
@@ -12,7 +12,9 @@ var DSL = {
},
file: function(filename) {
- return Package._getByPath(resolve(filename));
+ var files = [], i = arguments.length;
+ while (i--) files[i] = resolve(arguments[i]);
+ return Package._getByPath.apply(Package, files);
},
load: function(path, fireCallbacks) {
Please sign in to comment.
Something went wrong with that request. Please try again.