Browse Source
Merge pull request #1085 from dsgh/handle-add-bind Closes #1084
Bind handleAdd to AssetsView
pull/1042/merge
Artur Arseniev
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/asset_manager/view/AssetsView.js
|
|
|
@ -59,7 +59,7 @@ module.exports = Backbone.View.extend({ |
|
|
|
this.getAssetsEl().scrollTop = 0; |
|
|
|
|
|
|
|
if (handleAdd) { |
|
|
|
handleAdd(url); |
|
|
|
handleAdd.bind(this)(url); |
|
|
|
} else { |
|
|
|
this.options.globalCollection.add(url, { at: 0 }); |
|
|
|
} |
|
|
|
|