Coder Social home page Coder Social logo

Comments (3)

rikschennink avatar rikschennink commented on June 12, 2024

I've ran into this problem in my own projects as well. But, I've setup the getModule(s) function to match the behavior of the querySelector which also searches within a given context and does not take the supplied context into account.

The develop branch contains a version of Conditioner where I tried to remedy this problem without automatically searching from the parentnode. See the updated getModule function description below.

/***
 * Returns the first [ModuleController](#modulecontroller) matching the supplied query.
 *
 * - `getModule(element)` get module on the given element
 * - `getModule(element, path)` get module with path on the given element
 * - `getModule(path)` get first module with given path
 * - `getModule(path, filter)` get first module with path in document scope
 * - `getModule(path, context)` get module with path, search within context
 * - `getModule(path, filter, context)` get module with path, search within matched elements in context
 *
 * @method getModule
 * @memberof Conditioner
 * @param {...*=} arguments
 * @returns {(ModuleController|null)} module - The found module.
 * @public
 */

from conditioner.

mark-ettema avatar mark-ettema commented on June 12, 2024

That solution is will do! When can I expect a release with this feature?

from conditioner.

rikschennink avatar rikschennink commented on June 12, 2024

I'm working on Conditioner the coming weeks so expect a small update soon.

from conditioner.

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.