diff --git a/bower.json b/bower.json index 7e1aae2b3..6949db768 100644 --- a/bower.json +++ b/bower.json @@ -21,16 +21,16 @@ "package.json" ], "dependencies": { - "jquery": "1.9.0 - 2.0.3", + "jquery": ">=1.9.0", "medium-editor": "~1.9", - "handlebars": "~1.3.0", + "handlebars": "~2.0.0", "blueimp-file-upload": "~9.8.0", "jquery-sortable": "~0.9.12" }, "devDependencies": { - "qunit": "~1.12.0", - "sinon": "~1.7.0", - "sinon-qunit": "~1.0.0", + "qunit": "~1.15.0", + "sinon": "~1.10.3", + "sinon-qunit": "~2.0.0", "jquery-cycle2": "~2.1.6" } } diff --git a/examples/index.html b/examples/index.html index ca67f45f5..8b4f39d6b 100644 --- a/examples/index.html +++ b/examples/index.html @@ -77,7 +77,7 @@

License

- + diff --git a/src/js/templates.js b/src/js/templates.js index 31a86eccf..aefa1719d 100644 --- a/src/js/templates.js +++ b/src/js/templates.js @@ -1,102 +1,64 @@ this["MediumInsert"] = this["MediumInsert"] || {}; this["MediumInsert"]["Templates"] = this["MediumInsert"]["Templates"] || {}; -this["MediumInsert"]["Templates"]["src/js/templates/core-buttons.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { - this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; - var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this; - -function program1(depth0,data) { - - var buffer = "", stack1, helper; - buffer += "\n
  • "; - if (helper = helpers.label) { stack1 = helper.call(depth0, {hash:{},data:data}); } - else { helper = (depth0 && depth0.label); stack1 = typeof helper === functionType ? helper.call(depth0, {hash:{},data:data}) : helper; } - if(stack1 || stack1 === 0) { buffer += stack1; } - buffer += "
  • \n "; - return buffer; - } - - buffer += "
    \n +\n \n
    \n"; - return buffer; - }); + stack1 = ((helper = (helper = helpers.label || (depth0 != null ? depth0.label : depth0)) != null ? helper : helperMissing),(typeof helper === functionType ? helper.call(depth0, {"name":"label","hash":{},"data":data}) : helper)); + if (stack1 != null) { buffer += stack1; } + return buffer + "\n"; +},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { + var stack1, buffer = "
    \n +\n \n
    \n"; +},"useData":true}); -this["MediumInsert"]["Templates"]["src/js/templates/core-empty-line.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { - this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; - +this["MediumInsert"]["Templates"]["src/js/templates/core-empty-line.hbs"] = Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { return "


    \n"; - }); + },"useData":true}); -this["MediumInsert"]["Templates"]["src/js/templates/images-fileupload.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { - this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; - +this["MediumInsert"]["Templates"]["src/js/templates/images-fileupload.hbs"] = Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { return ""; - }); + },"useData":true}); -this["MediumInsert"]["Templates"]["src/js/templates/images-image.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { - this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; - var buffer = "", stack1, helper, functionType="function", escapeExpression=this.escapeExpression; - buffer += "
    = 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { + var helper, functionType="function", helperMissing=helpers.helperMissing, escapeExpression=this.escapeExpression; + return "
    \"\"
    "; - return buffer; - }); +},"useData":true}); -this["MediumInsert"]["Templates"]["src/js/templates/images-progressbar.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { - this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; - +this["MediumInsert"]["Templates"]["src/js/templates/images-progressbar.hbs"] = Handlebars.template({"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { return "0"; - }); - -this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handlebars.template(function (Handlebars,depth0,helpers,partials,data) { - this.compilerInfo = [4,'>= 1.0.0']; -helpers = this.merge(helpers, Handlebars.helpers); data = data || {}; - var buffer = "", stack1, functionType="function", escapeExpression=this.escapeExpression, self=this; - -function program1(depth0,data) { - - var buffer = "", stack1; - buffer += "\n "; - stack1 = helpers['if'].call(depth0, (depth0 && depth0.label), {hash:{},inverse:self.noop,fn:self.program(2, program2, data),data:data}); - if(stack1 || stack1 === 0) { buffer += stack1; } - buffer += "\n "; - return buffer; - } -function program2(depth0,data) { - - var buffer = "", stack1, helper; - buffer += "\n
  • \n \n
  • \n "; - return buffer; - } + },"useData":true}); + - buffer += "
    \n \n
    "; + +this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handlebars.template({"1":function(depth0,helpers,partials,data) { + var stack1, buffer = ""; + stack1 = helpers['if'].call(depth0, (depth0 != null ? depth0.label : depth0), {"name":"if","hash":{},"fn":this.program(2, data),"inverse":this.noop,"data":data}); + if (stack1 != null) { buffer += stack1; } return buffer; - }); \ No newline at end of file +},"2":function(depth0,helpers,partials,data) { + var stack1, helper, lambda=this.lambda, escapeExpression=this.escapeExpression, functionType="function", helperMissing=helpers.helperMissing, buffer = "
  • \n \n
  • \n"; +},"compiler":[6,">= 2.0.0-beta.1"],"main":function(depth0,helpers,partials,data) { + var stack1, buffer = "
    \n \n
    "; +},"useData":true}); \ No newline at end of file diff --git a/test.html b/test.html index 2dd0511d7..7c94599be 100644 --- a/test.html +++ b/test.html @@ -9,7 +9,7 @@
    - +