Chinaunix首页 | 论坛 | 博客
  • 博客访问: 29896696
  • 博文数量: 708
  • 博客积分: 12163
  • 博客等级: 上将
  • 技术积分: 8240
  • 用 户 组: 普通用户
  • 注册时间: 2007-12-04 20:59
文章分类

全部博文(708)

分类: JavaScript

2015-05-13 20:28:20

1. Cannot call method 'replace' of undefined backbone.js
template: _.template($('#tmpl_sourcelist').html()),
instead with
window.SourceListView = Backbone.View.extend({ tagName:"li", initialize:function () { this.template = _.template($('#tmpl_sourcelist').html()); //...




2. Cannot read property 'bind' of undefined
 _.bindAll(this, 'insideMenuHandler', 'outsideMenuHandler');

make sure all function names are existed.


阅读(1808) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~