Code Monkey home page Code Monkey logo

Comments (4)

lovestoprogram avatar lovestoprogram commented on August 10, 2024

Never mind. It was completely my fault and the issue is solved.

from cordova-plugin-nativestorage.

alokrajiv avatar alokrajiv commented on August 10, 2024

Thank you.

from cordova-plugin-nativestorage.

GillesC avatar GillesC commented on August 10, 2024

Hello,
Can you maybe post what was wrong and how you solved it? This for future
reference, for developers having the same problem?

On Wed, 14 Sep 2016, 06:45 Alok Rajiv, [email protected] wrote:

Thank you.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#39 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIOhi5P6A80A2mArzt5vMfoYrEtezWBWks5qp3vSgaJpZM4J8VUb
.

from cordova-plugin-nativestorage.

lovestoprogram avatar lovestoprogram commented on August 10, 2024

Sure. Well I called a this.doSomethingFunction() inside the success callback for setting an item, and the value of this wasn't the object I meant it to be (I forgot about the rules of "this"), so it threw an error.
The interesting thing is that when I tried to get the data it triggered the error call 5. I changed this.doSomethingFunction() to nameOfObjectThatMethodBelongsTo.doSomethingFunction() and it worked fine.

I also ran through an issue where the function that I tried to call in the success callback of setItem had a type error in it, and trying to access the value again I think triggered an error 5(I am not completely sure about this case, but it is likely). I fixed the type error, and it worked fine. Reading the .exception error helped in both cases to find the cause of the error.

All in all, if someone calls a method from another object in a success callback and a weird error occurs, see the source code for that function and use .exception to see what the error is and what caused it.

from cordova-plugin-nativestorage.

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.