Created
December 26, 2012 21:02
-
-
Save masaru-b-cl/4383144 to your computer and use it in GitHub Desktop.
「Backbone.js:別ファイル定義のViewではelの定義にjQueryオブジェクトを使ってはいけない」のサンプル用hoge.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="http://code.jquery.com/jquery-1.8.3.js"/> | |
/// <reference path="backbone-0.9.9.js" /> | |
var Hoge = Backbone.View.extend({ | |
el : $("#hoge"), | |
initialize: function(){ | |
this.render(); | |
}, | |
render : function(){ | |
this.$el.text("hoge"); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment