Sha256: 8723f0bccfcad5447e9086cf93245fd5466ed6dab2bcf0d73897b68befbd48ad

Contents?: true

Size: 293 Bytes

Versions: 31

Compression:

Stored size: 293 Bytes

Contents

var originalLookup = Handlebars.JavaScriptCompiler.prototype.nameLookup;

Handlebars.JavaScriptCompiler.prototype.nameLookup = function(parent, name, type) {
  if (type === 'context') {
    return '"CALLED PATCH"';
  }
  else {
    return originalLookup.call(this, parent, name, type);
  }
};

Version data entries

31 entries across 31 versions & 3 rubygems

Version Path
handlebars_assets-0.18 test/patch/patch.js
handlebars_assets-0.17.2 test/patch/patch.js
handlebars_assets-0.17.1 test/patch/patch.js
handlebars_assets-0.17 test/patch/patch.js
handlebars_assets-0.16 test/patch/patch.js
handlebars_assets-0.15 test/patch/patch.js
handlebars_assets-0.14.1 test/patch/patch.js
handlebars_assets-0.13.0 test/patch/patch.js
handlebars_assets-0.12.3 test/patch/patch.js
handlebars_assets-0.12.2 test/patch/patch.js
handlebars_assets-0.12.1 test/patch/patch.js