Skip to content

Commit

Permalink
Merge pull request tastejs#628 from Roland1975/gh-pages
Browse files Browse the repository at this point in the history
Refine selector by providing a context
  • Loading branch information
sindresorhus committed Jul 11, 2013
2 parents 5a2db4c + c4fdbfc commit 777a74a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions architecture-examples/jquery/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,14 @@ jQuery(function ($) {
this.todoTemplate = Handlebars.compile($('#todo-template').html());
this.footerTemplate = Handlebars.compile($('#footer-template').html());
this.$todoApp = $('#todoapp');
this.$newTodo = $('#new-todo');
this.$toggleAll = $('#toggle-all');
this.$main = $('#main');
this.$todoList = $('#todo-list');
this.$header = this.$todoApp.find('#header');
this.$main = this.$todoApp.find('#main');
this.$footer = this.$todoApp.find('#footer');
this.$count = $('#todo-count');
this.$clearBtn = $('#clear-completed');
this.$newTodo = this.$header.find('#new-todo');
this.$toggleAll = this.$main.find('#toggle-all');
this.$todoList = this.$main.find('#todo-list');
this.$count = this.$footer.find('#todo-count');
this.$clearBtn = this.$footer.find('#clear-completed');
},
bindEvents: function () {
var list = this.$todoList;
Expand Down

0 comments on commit 777a74a

Please sign in to comment.