mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
bugfix + refactoring...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
0838c313e3
commit
67d4d2420b
@ -16,6 +16,10 @@ var walk = require('lib/walk').walk
|
|||||||
|
|
||||||
|
|
||||||
/*********************************************************************/
|
/*********************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------
|
||||||
// Helpers...
|
// Helpers...
|
||||||
|
|
||||||
// Collect a list of literal values and "make(..) calls" into an array...
|
// Collect a list of literal values and "make(..) calls" into an array...
|
||||||
@ -75,7 +79,7 @@ var collectItems = function(make, items){
|
|||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
// Items...
|
// Item constructors...
|
||||||
//
|
//
|
||||||
// XXX general design:
|
// XXX general design:
|
||||||
// - each of these can take either a value or a function (constructor)
|
// - each of these can take either a value or a function (constructor)
|
||||||
@ -429,7 +433,7 @@ Items.DisplayItemInfo = function(make, options){
|
|||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
// Item...
|
// Base Item...
|
||||||
|
|
||||||
var BaseItemClassPrototype = {
|
var BaseItemClassPrototype = {
|
||||||
text: function(elem){
|
text: function(elem){
|
||||||
@ -872,6 +876,7 @@ function(event, {handler, action, default_item, filter, options={}, getter='sear
|
|||||||
skipDisabled: true,
|
skipDisabled: true,
|
||||||
// XXX should this be the default...
|
// XXX should this be the default...
|
||||||
skipUnresolved: true,
|
skipUnresolved: true,
|
||||||
|
rawResults: true,
|
||||||
},
|
},
|
||||||
options instanceof Function ?
|
options instanceof Function ?
|
||||||
options.call(this)
|
options.call(this)
|
||||||
@ -1121,6 +1126,7 @@ var makeItemEventToggler2 = function(get_state, set_state, unset_state, default_
|
|||||||
|
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
// Base Browser...
|
||||||
|
|
||||||
var BaseBrowserClassPrototype = {
|
var BaseBrowserClassPrototype = {
|
||||||
}
|
}
|
||||||
@ -3734,6 +3740,7 @@ object.makeConstructor('BaseBrowser',
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
|
|
||||||
var KEYBOARD_CONFIG =
|
var KEYBOARD_CONFIG =
|
||||||
@ -3989,6 +3996,7 @@ var updateElemClass = function(action, cls, handler){
|
|||||||
|
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
// HTML Browser...
|
||||||
|
|
||||||
var HTMLBrowserClassPrototype = {
|
var HTMLBrowserClassPrototype = {
|
||||||
__proto__: BaseBrowser, }
|
__proto__: BaseBrowser, }
|
||||||
@ -5093,12 +5101,6 @@ object.makeConstructor('HTMLBrowser',
|
|||||||
HTMLBrowserPrototype)
|
HTMLBrowserPrototype)
|
||||||
|
|
||||||
|
|
||||||
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
||||||
// shorthans...
|
|
||||||
|
|
||||||
module.Item = HTMLItem
|
|
||||||
module.Browser = HTMLBrowser
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------
|
//---------------------------------------------------------------------
|
||||||
@ -5165,6 +5167,14 @@ object.makeConstructor('TextBrowser',
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//---------------------------------------------------------------------
|
||||||
|
// shorthans...
|
||||||
|
|
||||||
|
module.Item = HTMLItem
|
||||||
|
module.Browser = HTMLBrowser
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**********************************************************************
|
/**********************************************************************
|
||||||
* vim:set ts=4 sw=4 : */ return module })
|
* vim:set ts=4 sw=4 : */ return module })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user