I found that I can utilize dojo just by including it as a resource and
omitting the 'no_conflict()' call, but was wondering if there was a
2.0.2 wiki in general and more about using dojo in particular.
1.5.5 doesn't appear to favor any particular library, but 2.0.2 has
some ties to jQuery. Why is that?
Regards
--
You received this message because you are subscribed to the Google Groups "JavaScriptMVC" group.
To post to this group, send email to javasc...@googlegroups.com.
To unsubscribe from this group, send email to javascriptmv...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/javascriptmvc?hl=en.
There is no JMVC no conflict mode. There is only jQuery's.
If this breaks JMVC, please tell me where and I will fix it
immediately.
On Dec 17, 4:08 pm, Justin Meyer <justinbme...@gmail.com> wrote:
> JMVC 2.0 'should' work in jQuery's no conflict mode. It doesn't have it's
> own (everything is under the jQuery namespace except include).
>
> If dojo uses $, then before you include dojo, in the first line of your app
> do:
>
> jQuery.noConflict();
>
> Why did 2.0 move to not using jQuery. Because it was too hard for me to
> maintain everything other libraries do (and in most cases did better).
> jQuery was the only popular library that didn't enforce its own set of
> best practices while also not polluting the global namespace. It was an
> easy choice.
>
> However, to encourage more people to start using parts of JMVC, we are
> breaking off the compress/test/document/error-reporting/updating parts of
> JMVC into its own project for 3.0. It will be possible to use this with any
> library.
> But, if you want to use the MVC stuff, you'll have to use jQuery.
>
> Justin Meyer
>
> Jupiter Consulting
> \Development\Training\Support
> 847-924-6039
>
>
>
> On Thu, Dec 17, 2009 at 3:58 PM, Confucius <overmei...@gmail.com> wrote:
> > The wiki appears to deal with v 1.5.5 and some depricated practices,
> > like turning on 'no conflict mode' when using other libraries.
>
> > I found that I can utilize dojo just by including it as a resource and
> > omitting the 'no_conflict()' call, but was wondering if there was a
> > 2.0.2 wiki in general and more about using dojo in particular.
>
> > 1.5.5 doesn't appear to favor any particular library, but 2.0.2 has
> > some ties to jQuery. Why is that?
>
> > Regards
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "JavaScriptMVC" group.
> > To post to this group, send email to javasc...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > javascriptmv...@googlegroups.com<javascriptmvc%2Bunsubscribe@goog legroups.com>
Adding 'MVC.no_conflict()' to my (2.0.2) apps 'init.js', gives me
this:
MVC is not defined
With 'jQuery.no_conflict()', I get this:
jQuery.no_conflict is not a function
So with these, execution stops and javascriptmvc doesn't render
anything.
2 - dojo)
I'm able to use dojo as a resource. Since I saved it in '../
resources/' as 'dojo14', I included it like this:
include.resources('dojo14/dojo/dojo');
3 - embedded jQuery)
My question stated that jmvc1.5.5 seemed to be less tied to jQuery
than 2.0.2 is, but you seem to be saying that the latter is less tied
to jQuery. Maybe so. I'm new to this so may have made a false
assumption.
Less tied to any particular JS library is the better paradigm. We just
wish there was an all-dojo mode where javascriptmvc used dojo
throughout.
To unsubscribe from this group, send email to javascriptmv...@googlegroups.com.