Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Allow jQlite only mode ($.controller breaks) #6644

Closed
@adewinter

Description

@adewinter

Basically, setting jQuery.prototype.controller is a really bad move. AngularJS does that when it detects the presence of jQuery (see here: https://github.com/angular/angular.js/blob/master/src/Angular.js#L1303). As far as I can tell, this is purely for convenience. Unfortunately, because this method isn't namespaced you run into serious issues when other js libs rely on $.controller doing something not angular related.

In our case, JavascriptMVC expects $.controller to exist for it's purposes. When angularJS subsequently loads, it causes JavascriptMVC code to break in a serious way.

Is there some way we could include a way that you can specify that AngularJS should continue to use jQLite even if jQuery is available? Or better yet, have those convenience functions be namespaced?

Thanks,
Anton

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions