Created
March 11, 2016 17:23
-
-
Save julesbou/0ff7d500f48cd63775ae 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 ItemView = Backbone.View.extend({ | |
method: function() { | |
this.log('method() called'); | |
} | |
}); | |
var items = [ | |
new ItemView(), | |
new ItemView(), | |
new ItemView() | |
]; | |
items[_.random(0, 2)].method(); // [view?] method() called; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment