mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-02 08:13:34 +03:00
152ab286b5
This avoids the creation of two views per row, which will make a big difference for large blogs.
10 lines
297 B
JavaScript
10 lines
297 B
JavaScript
import itemView from 'ghost/views/item-view';
|
|
|
|
var PostItemView = itemView.extend({
|
|
openEditor: function () {
|
|
this.get('controller').send('openEditor', this.get('context')); // send action to handle transition to editor route
|
|
}.on("doubleClick")
|
|
});
|
|
|
|
export default PostItemView;
|