Created
September 4, 2014 14:23
-
-
Save dameleon/dd75190a7c939ba31706 to your computer and use it in GitHub Desktop.
This file contains 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
var view = new Backbone.View.extend({ | |
str: 'hoge', | |
arr: [], | |
init: function() {} | |
}); | |
// 全部 __proto__ に生える | |
view.__proto__.str; // -> hoge | |
view.__proto__.arr; // -> [] | |
view.__proto__.init; // -> fn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment