Giter Site home page Giter Site logo

isS is not a function about jquery.my HOT 5 CLOSED

ermouth avatar ermouth commented on July 24, 2024
isS is not a function

from jquery.my.

Comments (5)

ermouth avatar ermouth commented on July 24, 2024

I can’t locate anything like regexp from screenshot in jquerymy code, so the root issue is definitely outside jquerymy.

Since isS definition is clearly inside jquerymy, and it’a a shortcut for Object.isString() from Sugar, I think sugar.js failed to initialize, but Sugar also have nothing like that regexp inside.

The regexp is not only invalid, but very strange looking, so I think web server you use sends at least sugar.js with invalid encoding (mb 8859 instead of UTF-8), or invalid mime type (text/plain instead of text/javascript), or both. Please, check it out.

Also encoding tricks in regexp may appear due to very special combination of params of some js compressors/transformers, however it‘s much less likely.

from jquery.my.

ermouth avatar ermouth commented on July 24, 2024

@TBRickYoung please, let me know if you was able to solve the issue.

from jquery.my.

TBRickYoung avatar TBRickYoung commented on July 24, 2024

from jquery.my.

ermouth avatar ermouth commented on July 24, 2024

In short, you should make repeated child form list and bind it to an array, see http://jquerymy.com/api.html#CW-repeated-c. If you want some kind of total field, make it watch your entire list and update on list update.

Smth like:

({
  init:'<div id="rows"></div><div id="total"></div>',
  data:{rows:[{value:1}, {value:2}, {value:3}], total:0},
  ui:{
    '#rows':{
      bind:'rows',
      list:'<div><input type="number" class="row"></div>',
      manifest:{
        ui:{
          '.row':'value'
        }
      }
    },
    '#total':{
      bind:function(d){
        return d.rows.map(function(elt){return +elt.num}).sum();
      },
      watch:'#rows'
    }
  }
})

Closing issue.

from jquery.my.

TBRickYoung avatar TBRickYoung commented on July 24, 2024

from jquery.my.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.