Plugin Directory

Changeset 1709494


Ignore:
Timestamp:
08/07/2017 10:37:29 AM (9 years ago)
Author:
pricemesh
Message:

update compat with newrelic plugin

Location:
pricemesh/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • pricemesh/trunk/admin/assets/js/handlebars-v1.3.0.js

    r866107 r1709494  
    2626 */
    2727/* exported Handlebars */
    28 var Handlebars = (function() {
     28var PMHandlebars = (function() {
    2929// handlebars/safe-string.js
    3030    var __module4__ = (function() {
     
    182182            objectType = '[object Object]';
    183183
    184         function HandlebarsEnvironment(helpers, partials) {
     184        function PMHandlebarsEnvironment(helpers, partials) {
    185185            this.helpers = helpers || {};
    186186            this.partials = partials || {};
     
    189189        }
    190190
    191         __exports__.HandlebarsEnvironment = HandlebarsEnvironment;HandlebarsEnvironment.prototype = {
    192             constructor: HandlebarsEnvironment,
     191        __exports__.PMHandlebarsEnvironment = PMHandlebarsEnvironment;PMHandlebarsEnvironment.prototype = {
     192            constructor: PMHandlebarsEnvironment,
    193193
    194194            logger: logger,
     
    503503        var runtime = __dependency5__;
    504504
    505         // For compatibility and usage outside of module systems, make the Handlebars object a namespace
     505        // For compatibility and usage outside of module systems, make the PMHandlebars object a namespace
    506506        var create = function() {
    507             var hb = new base.HandlebarsEnvironment();
     507            var hb = new base.PMHandlebarsEnvironment();
    508508
    509509            Utils.extend(hb, base);
     
    520520        };
    521521
    522         var Handlebars = create();
    523         Handlebars.create = create;
    524 
    525         __exports__ = Handlebars;
     522        var PMHandlebars = create();
     523        PMHandlebars.create = create;
     524
     525        __exports__ = PMHandlebars;
    526526        return __exports__;
    527527    })(__module2__, __module4__, __module5__, __module3__, __module6__);
     
    18151815            },
    18161816
    1817             namespace: "Handlebars",
     1817            namespace: "PMHandlebars",
    18181818            // END PUBLIC API
    18191819
     
    19271927                }
    19281928
    1929                 var params = this.isChild ? ["depth0", "data"] : ["Handlebars", "depth0", "helpers", "partials", "data"];
     1929                var params = this.isChild ? ["depth0", "data"] : ["PMHandlebars", "depth0", "helpers", "partials", "data"];
    19301930
    19311931                for(var i=0, l=this.environment.depths.list.length; i<l; i++) {
     
    27052705        var __exports__;
    27062706        /*globals Handlebars: true */
    2707         var Handlebars = __dependency1__;
     2707        var PMHandlebars = __dependency1__;
    27082708
    27092709        // Compiler imports
     
    27162716        var JavaScriptCompiler = __dependency5__;
    27172717
    2718         var _create = Handlebars.create;
     2718        var _create = PMHandlebars.create;
    27192719        var create = function() {
    27202720            var hb = _create();
     
    27362736        };
    27372737
    2738         Handlebars = create();
    2739         Handlebars.create = create;
    2740 
    2741         __exports__ = Handlebars;
     2738        PMHandlebars = create();
     2739        PMHandlebars.create = create;
     2740
     2741        __exports__ = PMHandlebars;
    27422742        return __exports__;
    27432743    })(__module1__, __module7__, __module8__, __module10__, __module11__);
  • pricemesh/trunk/admin/assets/js/metabox.js

    r1111822 r1709494  
    186186                            var resp = JSON.parse(jqXHR.responseText);
    187187                            var templateScript = $("#pm-products").html();
    188                             var template = Handlebars.compile(templateScript);
     188                            var template = PMHandlebars.compile(templateScript);
    189189                            $("#pm-results").removeClass("hidden").append(template(resp.results));
    190190                        }catch(err){
     
    285285}(jQuery));
    286286
    287 Handlebars.registerHelper('ifEqual', function(v1, v2, options) {
     287PMHandlebars.registerHelper('ifEqual', function(v1, v2, options) {
    288288    if(v1 === v2) {
    289289        return options.fn(this);
     
    292292});
    293293
    294 Handlebars.registerHelper('pluralize', function(number, single, plural) {
     294PMHandlebars.registerHelper('pluralize', function(number, single, plural) {
    295295    return (number === 1) ? single : plural;
    296296});
  • pricemesh/trunk/pricemesh.php

    r1554301 r1709494  
    44Plugin URI: https://www.pricemesh.io/plugins/wordpress/
    55Description: Extend WordPress with your own price comparison | WordPress um einen eigenen Preisvergleich erweitern.
    6 Version: 1.6.9
     6Version: 1.6.10
    77Author: pricemesh
    88Author URI: https://www.pricemesh.io
  • pricemesh/trunk/public/pricemesh-public.php

    r1554301 r1709494  
    2222     * @var     string
    2323     */
    24     const VERSION = '1.6.9';
     24    const VERSION = '1.6.10';
    2525
    2626    /**
  • pricemesh/trunk/readme.txt

    r1706090 r1709494  
    44Requires at least: 3.4
    55Tested up to: 4.8.0
    6 Stable tag: 1.6.9
     6Stable tag: 1.6.10
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset for help on using the changeset viewer.