Download:
child 148:7a236aa969f8
parent 146:2d697b839e93
147:af2c69b87882
Anton Shestakov <av6@dwimlabs.net>, Sun, 30 Jul 2017 22:54:22 +0800
workspaces: use this.$() shortcut instead of this.$el.find()

1 файлов изменено, 2 вставок(+), 2 удалений(-) [+]
static/js/framework/views/workspaces.js file | annotate | diff | comparison | revisions
--- a/static/js/framework/views/workspaces.js Sun Jul 30 22:53:22 2017 +0800
+++ b/static/js/framework/views/workspaces.js Sun Jul 30 22:54:22 2017 +0800
@@ -18,7 +18,7 @@
},
activate: function(workspace) {
- this.$el.find('[data-workspace]').removeClass('active');
- this.$el.find('[data-workspace="' + workspace + '"]').addClass('active');
+ this.$('[data-workspace]').removeClass('active');
+ this.$('[data-workspace="' + workspace + '"]').addClass('active');
}
});