javascript - adding json data using taffydb in durandal -


I'm trying to use taffydb with durandal. I have a simple. JSS- I'm able to add data (How a colleague showed me :-))

Now I want to save it using Taffydub.

The main. JS:

  requirejs.config ({path: {'tabhi': '../lib/db-master/taffy' ...}});  

participant.js:

  Define (['durandle / app', 'knockout', 'model / user', 'tax'], The function whenever I add it:  
  var db = taffy; db.insert ({record: 1, data: "test"});  

I get this error:

Uncustom Type error: The method of the undefined can not place the 'Insert' call

Excluding the test data will be added as expected. I'm holding 'dornal' wrongly?

If you are loading, then you are in the configuration passing through RequireJS because TAFT is not AMD-aware. I believe That this should work:

  shim: {taffy: {exports: "TAFFY"}}  

I have never used Taffy So I do not know what the dependency can be. deps: [...] to add fields to the shell, so that dependency can be extended To.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -