Code Monkey home page Code Monkey logo

Comments (4)

bang590 avatar bang590 commented on July 26, 2024

@cyvoit That's an other bug, also fixed in 653074f

from jspatch.

erickyim avatar erickyim commented on July 26, 2024

Great! I still use example above.
And called hello():

defineClass('JPViewController', {
    handleBtn: function(sender) {
        var tableViewCtrl = JPTableViewController.alloc().init();

        self.navigationController().pushViewController_animated(
            tableViewCtrl, YES)
        console.log("self is " + self.description());
        console.log(JPTableViewController.hello());
        console.log("self is " + self.description());
    }
})

It works and no errors.

But called hello() like this:

defineClass('JPViewController', {
    handleBtn: function(sender) {
        var tableViewCtrl = JPTableViewController.alloc().init();
        console.log(JPTableViewController.hello());
        console.log("self is " + self.description());
        self.navigationController().pushViewController_animated(
            tableViewCtrl, YES)
    }
})

It logs:

2015-05-28 10:15:50.969 JSPatchDemo[10737:267688] JSPatch.log: hello
2015-05-28 10:15:50.970 JSPatchDemo[10737:267688] JSPatch.log: I'm JPTableViewController
2015-05-28 10:15:50.970 JSPatchDemo[10737:267688] JSPatch.log: self is JPTableViewController
2015-05-28 10:15:50.970 JSPatchDemo[10737:267688] +[JPTableViewController navigationController]: unrecognized selector sent to class 0x7fe9b2d2e0b0

from jspatch.

bang590 avatar bang590 commented on July 26, 2024

@cyvoit Fixed, that's a stupid bug I made - -! Thank you!

from jspatch.

erickyim avatar erickyim commented on July 26, 2024

👍

from jspatch.

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.