Permalink
Browse files

adding LABjs script loading chain

  • Loading branch information...
addyosmani committed Apr 30, 2011
1 parent 43a2192 commit c3ca67d6b8349db10479e55f6ab90e517edf771a
Showing with 232 additions and 188 deletions.
  1. +2 −2 app/application.js
  2. +15 −11 index.html
  3. +5 −0 lib/LAB.min.js
  4. +210 −175 lib/spine.js
View
@@ -27,7 +27,7 @@ jQuery(function($){
},
render: function(){
- this.el.html(this.template(this.item.reload()));
+ this.el.html(this.template(this.item));
return this;
},
@@ -100,7 +100,7 @@ jQuery(function($){
render: function(){
if ( !this.item ) return;
- this.el.html(this.template(this.item.reload()));
+ this.el.html(this.template(this.item));
},
change: function(item){
View
@@ -3,17 +3,21 @@
<head>
<link rel="stylesheet" href="css/application.css" type="text/css" charset="utf-8">
- <script src="lib/json2.js" type="text/javascript" charset="utf-8"></script>
- <script src="lib/jquery.js" type="text/javascript" charset="utf-8"></script>
- <script src="lib/jquery.tmpl.js" type="text/javascript" charset="utf-8"></script>
- <script src="lib/jquery.bitly.js" type="text/javascript" charset="utf-8"></script>
- <script src="lib/store.min.js" type="text/javascript" charset="utf-8"></script>
- <script src="lib/spine.js" type="text/javascript" charset="utf-8"></script>
- <script src="lib/spine.model.local.js" type="text/javascript" charset="utf-8"></script>
- <script src="lib/spine.controller.manager.js" type="text/javascript" charset="utf-8"></script>
- <script src="lib/spine.route.js" type="text/javascript" charset="utf-8"></script>
- <script src="app/models/url.js" type="text/javascript" charset="utf-8"></script>
- <script src="app/application.js" type="text/javascript" charset="utf-8"></script>
+ <script src="lib/LAB.min.js" type="text/javascript" charset="utf-8"></script>
+ <script type="text/javascript">
+ $LAB
+ .script("lib/json.js")
+ .script("lib/jquery.js")
+ .script("lib/jquery.tmpl.js")
+ .script("lib/jquery.bitly.js")
+ .script("lib/store.min.js")
+ .script("lib/spine.js")
+ .script("lib/spine.model.local.js")
+ .script("lib/spine.controller.manager.js")
+ .script("lib/spine.route.js")
+ .script("app/models/url.js")
+ .script("app/application.js");
+ </script>
<script type="text/x-jquery-tmpl" id="urlTemplate">
<div class="item">
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit c3ca67d

Please sign in to comment.