mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
notes and minr tweaking....
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
fa61d33f67
commit
b99a152175
@ -109,6 +109,7 @@ requirejs([
|
|||||||
make('a'),
|
make('a'),
|
||||||
'b')
|
'b')
|
||||||
make('---')
|
make('---')
|
||||||
|
// XXX not yet visible...
|
||||||
make('...')
|
make('...')
|
||||||
make('e')
|
make('e')
|
||||||
// embeded browser...
|
// embeded browser...
|
||||||
|
|||||||
@ -930,22 +930,25 @@ var BrowserPrototype = {
|
|||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
|
||||||
// item shorthands...
|
// special-case: item shorthands...
|
||||||
if(item.value in options.elementShorthand){
|
if(item.value in options.elementShorthand){
|
||||||
var text = null
|
|
||||||
item = options.elementShorthand[item.value]
|
item = options.elementShorthand[item.value]
|
||||||
|
|
||||||
|
// NOTE: this is a bit of a cheat, but it saves us from either
|
||||||
|
// parsing or restricting the format...
|
||||||
var elem = $(item.html)[0]
|
var elem = $(item.html)[0]
|
||||||
elem.classList.add(...item['class'].split(/\s+/))
|
elem.classList.add(
|
||||||
|
...(item['class'] instanceof Array ?
|
||||||
|
item['class']
|
||||||
|
: item['class'].split(/\s+/g)))
|
||||||
|
|
||||||
return elem
|
return elem
|
||||||
}
|
}
|
||||||
|
|
||||||
// normal items...
|
// Base DOM...
|
||||||
var elem = document.createElement('div')
|
var elem = document.createElement('div')
|
||||||
var text = JSON.stringify(item.value || item)
|
var text = JSON.stringify(item.value || item)
|
||||||
|
|
||||||
|
|
||||||
// classes...
|
// classes...
|
||||||
elem.classList.add(...['item']
|
elem.classList.add(...['item']
|
||||||
// user classes...
|
// user classes...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user