From 788a866c66ff5022f9e358801dfb234cc12845fc Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Thu, 16 May 2013 15:37:26 +0400 Subject: [PATCH] package: update xjst --- package.json | 2 +- test/fixtures/i-bem.js | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 9a7b2e20..1210fb2c 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "esprima": "~1.0.2", "ometajs": "~3.2.2", "uglify-js": "~2.3.2", - "xjst": "~0.7.1" + "xjst": "~0.8.0" }, "devDependencies": { "mocha": "~1.9.0", diff --git a/test/fixtures/i-bem.js b/test/fixtures/i-bem.js index 7487b81c..d5197c65 100644 --- a/test/fixtures/i-bem.js +++ b/test/fixtures/i-bem.js @@ -1,6 +1,6 @@ module.exports = function() { -oninit(function(exports) { +xjst$oninit(function(exports) { var BEM_ = {}, toString = Object.prototype.toString, @@ -262,7 +262,7 @@ exports.apply = BEMContext.apply = function _apply() { return ctx._buf.join(''); }; -}); // oninit +}); match(this._mode === '')( match()(function() { @@ -287,7 +287,7 @@ match(this._mode === '')( }); }), - match(function() { return this._.isArray(this.ctx) })(function() { + match(this._.isArray(this.ctx))(function() { var v = this.ctx, l = v.length, i = 0, @@ -315,7 +315,7 @@ match(this._mode === '')( this._listLength--; }), - match(function() { return this._.isSimple(this.ctx) })(function() { + match(this._.isSimple(this.ctx))(function() { this._listLength--; var ctx = this.ctx; @@ -470,6 +470,6 @@ js()(undefined); jsAttr()(undefined); bem()(undefined); mix()(undefined); -content()(function() { this.ctx.content }); +content()(this.ctx.content); }.toString().replace(/^function\s*\(\)\s*{|}$/g, ''); // module.exports