cesine / todomvc-for-chrome-extensions

Chrome Extension Tested - MV* Todo apps for Backbone.js, JavaScriptMVC, Ember.js, Dojo, Spine.js, YUILibrary, Knockout.js and more
http://addyosmani.github.com/todomvc
Other
11 stars 1 forks source link

Test Knockback.js in a Chrome Extension #12

Closed cesine closed 12 years ago

cesine commented 12 years ago

Status: broken (cant add an item)

cesine commented 12 years ago

Uncaught Error: Code generation from strings disallowed for this context knockback-full-stack-0.16.7.min.js:168

cesine commented 12 years ago

Knockback uses Backbone, Underscore and Knockout. Like the backbone example, it looks like its also depending on Underscore templates, which use a eval/ new Function

Line 168: s.search(/[:]/) < 0 || (s = "{" + s + "}"), i = (new Function("", "return ( " + s + " )"))(

Same Two options: