Lines Matching refs:cb
40 function normalizeFnAsync(result, cb) { argument
49 }).then(tr.normalizeFn).nodeify(cb);
67 function normalizeAsync(result, cb) { argument
76 }).then(tr.normalize).nodeify(cb);
160 Transformer.prototype.compileAsync = function (str, options, cb) { argument
162 …w Error('The Transform "' + this.name + '" does not support compiling plain strings')).nodeify(cb);
165 return tr.normalizeFnAsync(this._tr.compileAsync(str, options), cb);
167 return tr.normalizeFnAsync(this.compile(str, options), cb);
186 Transformer.prototype.compileFileAsync = function (filename, options, cb) { argument
191 return tr.normalizeFnAsync(this._tr.compileFileAsync(filename, options), cb);
193 return tr.normalizeFnAsync(this.compileFile(filename, options), cb);
203 }.bind(this)), cb);
222 Transformer.prototype.compileClientAsync = function (str, options, cb) { argument
225 …nsform "' + this.name + '" does not support compiling for the client from a string.')).nodeify(cb);
227 … Error('The Transform "' + this.name + '" does not support compiling for the client')).nodeify(cb);
231 return tr.normalizeAsync(this._tr.compileClientAsync(str, options), cb);
233 return tr.normalizeAsync(this._tr.compileClient(str, options), cb);
252 Transformer.prototype.compileFileClientAsync = function (filename, options, cb) { argument
254 …w Error('The Transform "' + this.name + '" does not support compiling for the client')).nodeify(cb)
257 return tr.normalizeAsync(this._tr.compileFileClientAsync(filename, options), cb);
259 return tr.normalizeAsync(this._tr.compileFileClient(filename, options), cb);
269 }.bind(this)), cb);
296 Transformer.prototype.renderAsync = function (str, options, locals, cb) { argument
298 cb = locals;
303 … Error('The Transform "' + this.name + '" does not support rendering from a string.')).nodeify(cb);
305 …mise.reject(new Error('The Transform "' + this.name + '" does not support rendering')).nodeify(cb);
309 return tr.normalizeAsync(this._tr.renderAsync(str, options, locals), cb);
311 return tr.normalizeAsync(this._tr.render(str, options, locals), cb);
315 }), cb);
334 Transformer.prototype.renderFileAsync = function (filename, options, locals, cb) { argument
340 cb = locals;
344 return tr.normalizeAsync(this._tr.renderFileAsync(filename, options, locals), cb);
346 return tr.normalizeAsync(this._tr.renderFile(filename, options, locals), cb);
351 }), cb);
357 }.bind(this)), cb);