Skip to content
This repository
Browse code

benchmark: remove this.apply()

  • Loading branch information...
commit 54b7ede0326d1c5ff3b31beb0d1273b477d6bf7b 1 parent c5a2f48
Fedor Indutny indutny authored

Showing 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. +4 4 benchmarks/templates/bem-bl.xjst
8 benchmarks/templates/bem-bl.xjst
@@ -32,9 +32,9 @@ template((! this["elem"]) && this.block === "i-ua" && this._mode === "bem") { re
32 32
33 33 template((! this["elem"]) && this.block === "i-ua" && this._mode === "content") { return [";(function(d,e,c,r){","e=d.documentElement;","c=\"className\";","r=\"replace\";","e[c]=e[c][r](\"i-ua_js_no\",\"i-ua_js_yes\");","if(d.compatMode!=\"CSS1Compat\")","e[c]=e[c][r](\"i-ua_css_standard\",\"i-ua_css_quirks\")","})(document);"].join("") }
34 34
35   -template(this.block === "i-jquery" && this.elem === "core" && this._mode === "default") { local (((this["_mode"]="") , (this["ctx"]=({"block": "b-page","elem": "js","url": "//yandex.st/jquery/1.6.2/jquery.min.js"})))) this.apply(); }
  35 +template(this.block === "i-jquery" && this.elem === "core" && this._mode === "default") { local (((this["_mode"]="") , (this["ctx"]=({"block": "b-page","elem": "js","url": "//yandex.st/jquery/1.6.2/jquery.min.js"})))) apply(); }
36 36
37   -template((! this["elem"]) && this.block === "b-page" && this._mode === "default") { {this["_buf"].push("<!DOCTYPE html>");local (((this["_mode"]="") , (this["ctx"]=({"tag": "html","attrs": ({"class": "i-ua_js_no i-ua_css_standard"}),"content": [({"elem": "head","content": [({"tag": "meta","attrs": ({"charset": "utf-8"})}),({"tag": "meta","attrs": ({"http-equiv": "X-UA-Compatible","content": "IE=EmulateIE7, IE=edge"})}),({"tag": "title","content": this["ctx"]["title"]}),(this["ctx"]["favicon"]?({"elem": "favicon","url": this["ctx"]["favicon"]}):""),this["ctx"]["meta"],({"block": "i-ua"}),this["ctx"]["head"]]}),({"elem": "body","mix": [this["ctx"]],"content": [this["ctx"]["content"]]})]})))) this.apply();} }
  37 +template((! this["elem"]) && this.block === "b-page" && this._mode === "default") { {this["_buf"].push("<!DOCTYPE html>");local (((this["_mode"]="") , (this["ctx"]=({"tag": "html","attrs": ({"class": "i-ua_js_no i-ua_css_standard"}),"content": [({"elem": "head","content": [({"tag": "meta","attrs": ({"charset": "utf-8"})}),({"tag": "meta","attrs": ({"http-equiv": "X-UA-Compatible","content": "IE=EmulateIE7, IE=edge"})}),({"tag": "title","content": this["ctx"]["title"]}),(this["ctx"]["favicon"]?({"elem": "favicon","url": this["ctx"]["favicon"]}):""),this["ctx"]["meta"],({"block": "i-ua"}),this["ctx"]["head"]]}),({"elem": "body","mix": [this["ctx"]],"content": [this["ctx"]["content"]]})]})))) apply();} }
38 38
39 39 template(this.block === "b-page" && this.elem === "head" && this._mode === "bem") { return false }
40 40
@@ -52,7 +52,7 @@ template(this.block === "b-page" && this.elem === "css" && this._mode === "bem")
52 52
53 53 template(this.block === "b-page" && this.elem === "css" && this._mode === "tag") { return "style" }
54 54
55   -template(this.block === "b-page" && this.elem === "css" && this._mode === "default" && this["ctx"].hasOwnProperty("ie") && (! this["ctx"]["_ieCommented"])) { {var hideRule = ((! this["ctx"]["ie"])?["gt IE 7","<!-->","<!--"]:[this["ctx"]["ie"],"",""]);local ((((this["_mode"]="") , (this["ctx"]["_ieCommented"]=true)) , (this["ctx"]=[(("<!--[if " + hideRule[(0)]) + "]>"),hideRule[(1)],this["ctx"],hideRule[(2)],"<![endif]-->"]))) this.apply();} }
  55 +template(this.block === "b-page" && this.elem === "css" && this._mode === "default" && this["ctx"].hasOwnProperty("ie") && (! this["ctx"]["_ieCommented"])) { {var hideRule = ((! this["ctx"]["ie"])?["gt IE 7","<!-->","<!--"]:[this["ctx"]["ie"],"",""]);local ((((this["_mode"]="") , (this["ctx"]["_ieCommented"]=true)) , (this["ctx"]=[(("<!--[if " + hideRule[(0)]) + "]>"),hideRule[(1)],this["ctx"],hideRule[(2)],"<![endif]-->"]))) apply();} }
56 56
57 57 template(this.block === "b-page" && this.elem === "css" && this["ctx"]["url"] && this._mode === "tag") { return "link" }
58 58
@@ -80,6 +80,6 @@ template(this.block === "b-link" && this["mods"]["pseudo"] && this._mode === "js
80 80
81 81 template(this.block === "b-link" && this["mods"]["pseudo"] && this._mode === "attrs" && (! this["ctx"]["url"])) { return ({}) }
82 82
83   -template(this.block === "b-link" && this["mods"]["pseudo"] && this._mode === "content" && (! this["ctx"]["_wrap"]) && (! this["mods"]["inner"])) { local (((this["_mode"]="") , (this["ctx"]=({"elem": "inner","content": this["ctx"]["content"],"_wrap": true})))) this.apply(); }
  83 +template(this.block === "b-link" && this["mods"]["pseudo"] && this._mode === "content" && (! this["ctx"]["_wrap"]) && (! this["mods"]["inner"])) { local (((this["_mode"]="") , (this["ctx"]=({"elem": "inner","content": this["ctx"]["content"],"_wrap": true})))) apply(); }
84 84
85 85 template(this.block === "b-link" && this.elem === "inner" && this._mode === "tag") { return "span" }

0 comments on commit 54b7ede

Please sign in to comment.
Something went wrong with that request. Please try again.