diff --git a/ui (gen4)/doc/NOTES b/ui (gen4)/doc/NOTES
index 91cbe901..b7b7fbb9 100755
--- a/ui (gen4)/doc/NOTES
+++ b/ui (gen4)/doc/NOTES
@@ -37,3 +37,50 @@ This seems a bit confusing, so at least the naming convention should be
revised.
+
+Runtimes
+========
+
+ImageGrid.Viewer can be run in a number of runtimes on multiple platforms.
+
+Browser
+-------
+
+npm install
+index.html
+
+
+
+Node.js
+-------
+
+npm install
+node ig.js --help
+
+
+
+NW.js
+-----
+
+npm install
+npm start
+
+
+
+Electron
+--------
+
+XXX EXPERIMENTAL -- mostly runs in restricted (browser-like) mode...
+
+npm install
+electron e.js
+
+
+
+Cordova/PhoneGap
+----------------
+
+XXX
+
+
+
diff --git a/ui (gen4)/experiments/native-scroll-ribbon-infinite.html b/ui (gen4)/experiments/native-scroll-ribbon-infinite.html
new file mode 100755
index 00000000..2005dd42
--- /dev/null
+++ b/ui (gen4)/experiments/native-scroll-ribbon-infinite.html
@@ -0,0 +1,361 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ui (gen4)/features/core.js b/ui (gen4)/features/core.js
index da25f0d4..bff88382 100755
--- a/ui (gen4)/features/core.js
+++ b/ui (gen4)/features/core.js
@@ -164,8 +164,12 @@ ImageGridFeatures.__actions__ =
// nw or node...
if(typeof(process) != 'undefined'){
+ // Electron...
+ if(process.versions['electron'] != null){
+ ImageGridFeatures.runtime = 'electron'
+
// nw.js 0.13+
- if(typeof(nw) != 'undefined'){
+ } else if(typeof(nw) != 'undefined'){
ImageGridFeatures.runtime = 'nw'
// NOTE: jli is patching the Date object and with two separate
diff --git a/ui (gen4)/index.html b/ui (gen4)/index.html
index fcfb988c..9f45c2a0 100755
--- a/ui (gen4)/index.html
+++ b/ui (gen4)/index.html
@@ -38,6 +38,10 @@ if(window.require && window.nw){
}
+
+
+
+
@@ -65,6 +69,12 @@ if(window.require && window.nw){
+
+
+
+
+
+
diff --git a/ui (gen4)/lib/util.js b/ui (gen4)/lib/util.js
index 0ccdd77e..358e0835 100755
--- a/ui (gen4)/lib/util.js
+++ b/ui (gen4)/lib/util.js
@@ -8,7 +8,6 @@
/*********************************************************************/
-
/*********************************************************************/
String.prototype.capitalize = function(){
@@ -157,6 +156,10 @@ Object.defineProperty(Array.prototype, 'len', {
return Object.keys(this).length
},
set : function(val){},
+
+ // NOTE: this is hear to enable running this module multiple times
+ // without any side-effects...
+ configurable: true,
});