javascript - KnockoutJS Mapping Plugin not working on a Linux box -


I have a knockout JS Mapping that works well on OS X. However, the same code fails with a Linux box "Unwanted Type Error: Object Function is Not" Error in knockout.mapping.js? Body = 1: 467

  var mapping = {key: function (data) {return data.id; }, Deployment: {create: function (options) {// code var of this part is not working mapping = {'inspection': ["current_tag", "current_serial", "component.available_tags"], 'ignored ': ["Created_it", "update_tite"]} inner innermodel = to.mapping.frames (optionsdata, decimalment mapping); // Internal modification of non-working code. Corrent_tag darringflag = new ko.dirtyFlag (innerModel.current_tag); Internal model Corrent_sialial darisflag = new to.ic flag (insertmodelour_ourierial); InternalModel.degaged_tag ​​= co.au.il.wbnwaswwable (InarmmodelCournt_tag ()); InternalModel.Commercial_ Serial = Co.UttleInWebObswaveable (InRermodelCourant_Esreal ()); Return Internal Model; },},} Var viewModel = ko.mapping.fromJS (jsondata, mapping);  

If I remove deploymentsMapping from ko.mapping.fromJS () then it works fine.

Any ideas what can be wrong? This same code works very well with OS X on my laptop.


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 -