Permalink
Browse files

Context.from(), copy other custom attributes

  • Loading branch information...
1 parent 1230309 commit b0e614640208231d0a605703a972b4e0411a4ece @leizongmin committed Mar 20, 2013
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/context.js
View
@@ -91,6 +91,12 @@ Context.prototype.from = function (from) {
set('options');
set('_onErrorHandler');
set('_includeFileHandler');
+
+ for (var i in from) {
+ if (i in me) continue;
+ me[i] = from[i];
+ }
+
return this;
};

0 comments on commit b0e6146

Please sign in to comment.