lib/har/viewer/scripts/domplate/domplate.js in har-0.0.9 vs lib/har/viewer/scripts/domplate/domplate.js in har-0.1.0

- old
+ new

@@ -7,10 +7,12 @@ {} var womb=null;var domplate=function() {var lastSubject;for(var i=0;i<arguments.length;++i) lastSubject=lastSubject?copyObject(lastSubject,arguments[i]):arguments[i];for(var name in lastSubject) {var val=lastSubject[name];if(isTag(val)) -val.tag.subject=lastSubject;} +{if(val.tag.subject) +{lastSubject[name]=val=copyObject({},val);val.tag=copyObject({},val.tag);} +val.tag.subject=lastSubject;}} return lastSubject;};domplate.context=function(context,fn) {var lastContext=domplate.lastContext;domplate.topContext=context;fn.apply(context);domplate.topContext=lastContext;};this.domplate=domplate;this.create=domplate;this.TAG=function() {var embed=new DomplateEmbed();return embed.merge(arguments);};this.FOR=function() {var loop=new DomplateLoop();return loop.merge(arguments);};DomplateTag.prototype={merge:function(args,oldTag) {if(oldTag) \ No newline at end of file