summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Davis <thomasalwyndavis@gmail.com>2014-12-31 18:04:21 +1000
committerThomas Davis <thomasalwyndavis@gmail.com>2014-12-31 18:04:21 +1000
commit26860068e15c2217ebffa0e51ae9879df6decacd (patch)
treeaf81c3fdec0d86d4e9e4e560c8b51737171148ea
parentceed98b4ce05ce8ce3d3f5d24e7107a5cd1b56ce (diff)
parent738c685b0d746ac92e7bdc8776a3a975e1dad633 (diff)
downloadbackbonetutorials-26860068e15c2217ebffa0e51ae9879df6decacd.zip
backbonetutorials-26860068e15c2217ebffa0e51ae9879df6decacd.tar.gz
backbonetutorials-26860068e15c2217ebffa0e51ae9879df6decacd.tar.bz2
Merge pull request #126 from ClimbsRocks/patch-4
Updated underscore links to point to underscorejs.org
-rw-r--r--_posts/2011-01-28-what-is-a-view.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/_posts/2011-01-28-what-is-a-view.md b/_posts/2011-01-28-what-is-a-view.md
index 69a110d..a282332 100644
--- a/_posts/2011-01-28-what-is-a-view.md
+++ b/_posts/2011-01-28-what-is-a-view.md
@@ -7,7 +7,7 @@ posturl: http://backbonetutorials.com/what-is-a-view
# What is a view?
-Backbone views are used to reflect what your applications' data models look like. They are also used to listen to events and react accordingly. This tutorial will not be addressing how to bind models and collections to views but will focus on view functionality and how to use views with a JavaScript templating library, specifically [Underscore.js's _.template](http://documentcloud.github.com/underscore/#template).
+Backbone views are used to reflect what your applications' data models look like. They are also used to listen to events and react accordingly. This tutorial will not be addressing how to bind models and collections to views but will focus on view functionality and how to use views with a JavaScript templating library, specifically [Underscore.js's _.template](http://underscorejs.org/#template).
We will be using [jQuery 1.8.2](http://jquery.com/) as our DOM manipulator. It's possible to use other libraries such as [MooTools](http://mootools.net/) or [Sizzle](http://sizzlejs.com/), but official Backbone.js documentation endorses jQuery. Backbone.View events may not work with libraries other than jQuery.
@@ -49,7 +49,7 @@ _Note: Keep in mind that this binds the container element. Any events we trigger
## Loading a template
-Backbone.js is dependent on Underscore.js, which includes its own micro-templating solution. Refer to [Underscore.js's documentation](http://documentcloud.github.com/underscore/) for more information.
+Backbone.js is dependent on Underscore.js, which includes its own micro-templating solution. Refer to [Underscore.js's documentation](http://underscorejs.org/) for more information.
Let us implement a "render()" function and call it when the view is initialized. The "render()" function will load our template into the view's "el" property using jQuery.