Comments (3)
Hey @erikcw! I'm moving this to the wishlist thread so it can be centrally coordinated there #3.
Just to confirm: when you say wrapping 3rd party libraries, are you referring to things like say..google analytics or a retweet widget? Given that many of these now come with just a single external link to their JS source and some minor markup, I'm wondering if you're talking about wrapping this or the actual source in AMD.
Would most developers want to touch third party libraries in this way? (just thinking out loud) :)
from backbone-fundamentals.
Hi @addyosmani
I'm referring to a library like a jquery plugin, or https://github.com/PaulUithol/backbone-tastypie for example.
This library isn't currently setup to support AMD loaders, so to use it you have to create a require.js wrapper module and then access that wrapper from within the rest of your modules. Does that make sense? If there is a better pattern for this, I'm all ears.
from backbone-fundamentals.
Very closely related to this (perhaps the same?) is keeping the global namespace clean when loading 3rd party libraries with requireJS. It would be great if there was a canonical way to load a library that doesn't have a noConflict method and still preserve the global namespace prior to loading your 3rd party JS in a page.
from backbone-fundamentals.
Related Issues (20)
- Clarification of tagName
- Using quotes and double quotes in the same line
- TodoApp is using classes nowdays HOT 1
- Clarification on 'Backbone.Model.extend' vs 'Backbone.Model'
- Dead links in boilerplate markup
- Exercise #1 - Incorrect CSS file HOT 1
- Code doesn't work
- The right css file of Exercise 1 (Todos) HOT 2
- Broken links on chapter/02-fundamentals.md
- book redesign
- Remove inconsistent bracing spaces
- Todo example index.css using .class selector rather than #id selector HOT 1
- Bug with directory location in the server.js file in the Book Library app HOT 2
- Issue triage sprint
- Connect to database Open String Error (Easy fix) HOT 1
- Is it me or ... Confusing example at Backbone Basics / View / Understanding render(): HOT 2
- Example 1 code uses IDs, the linked css file uses classes
- Mistake in text
- Check Request send forms on Inventory Pages
- Homepage: Change Linktext "BoatShow Special"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backbone-fundamentals.