mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-28 18:00:09 +00:00
cleanup and tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
c3acf39c0b
commit
e03749131c
@ -141,7 +141,7 @@ requirejs([
|
||||
})
|
||||
})
|
||||
|
||||
dialog_1.__root = $('.container').first()[0]
|
||||
dialog_1.parent = $('.container').first()[0]
|
||||
|
||||
dialog_1.render()
|
||||
|
||||
|
||||
@ -405,7 +405,7 @@ var BaseBrowserPrototype = {
|
||||
update: function(options){
|
||||
return this
|
||||
.make(options)
|
||||
.render(this, options) },
|
||||
.render(options) },
|
||||
|
||||
|
||||
// XXX item API...
|
||||
@ -459,13 +459,26 @@ var BrowserPrototype = {
|
||||
renderHidden: false,
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
get parent(){
|
||||
return this.__parent },
|
||||
set parent(value){
|
||||
var dom = this.dom
|
||||
this.__parent = value
|
||||
// transfer the dom to the new parent...
|
||||
dom && (this.dom = dom)
|
||||
},
|
||||
|
||||
get dom(){
|
||||
return this.__root },
|
||||
return this.parent ?
|
||||
this.parent.querySelector('.browse-widget')
|
||||
: this.__dom },
|
||||
set dom(value){
|
||||
this.__root ?
|
||||
this.__root.replaceWith(value)
|
||||
: (this.__root = value)},
|
||||
this.parent ?
|
||||
$(this.parent).empty().append($(value))
|
||||
: (this.__dom = value) },
|
||||
|
||||
|
||||
// XXX instrument interactions...
|
||||
renderList: function(items, options){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user