File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,9 +17,9 @@ const utils = require('./utils')
1717// causes the bowser to lose all its work in tat window and navigate to another page
1818UI . aclControl . preventBrowserDropEvents = function ( document ) {
1919 console . log ( 'preventBrowserDropEvents called.' )
20- if ( typeof tabulator !== 'undefined' ) {
21- if ( tabulator . preventBrowserDropEventsDone ) return
22- tabulator . preventBrowserDropEventsDone = true
20+ if ( typeof window !== 'undefined' ) {
21+ if ( window . preventBrowserDropEventsDone ) return
22+ window . preventBrowserDropEventsDone = true
2323 }
2424
2525 function preventDrag ( e ) {
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ const UI = {
5151 matrix : require ( './matrix' ) ,
5252 messageArea : require ( './messageArea' ) ,
5353 pad : require ( './pad' ) ,
54+ preferences : require ( './preferences' ) ,
5455 store : require ( './store' ) ,
5556 table : require ( './table' ) ,
5657 tabs : require ( './tabs' ) ,
Original file line number Diff line number Diff line change 1- // thisModule = {}
2-
1+ // Namespaces we commonly use and have acommon prefixes for around solid
2+ //
33var thisModule = { }
44
55module . exports = thisModule
66
7- // tabulator.trace = thisModule // @@@@@@@@@@
8-
97var $rdf = require ( 'rdflib' )
108
119// This used to be a faw function (no ".expand" but that caused the module exports all to be dropped)
@@ -27,7 +25,7 @@ thisModule.doap = $rdf.Namespace('http://usefulinc.com/ns/doap#')
2725thisModule . foaf = $rdf . Namespace ( 'http://xmlns.com/foaf/0.1/' )
2826thisModule . http = $rdf . Namespace ( 'http://www.w3.org/2007/ont/http#' )
2927thisModule . httph = $rdf . Namespace ( 'http://www.w3.org/2007/ont/httph#' )
30- thisModule . ical = $rdf . Namespace ( 'http://www.w3.org/2002/12/cal/icaltzd#' )
28+ thisModule . icalTZ = $rdf . Namespace ( 'http://www.w3.org/2002/12/cal/icaltzd#' ) // Beware: not cal:
3129thisModule . ldp = $rdf . Namespace ( 'http://www.w3.org/ns/ldp#' )
3230thisModule . link = thisModule . tab = thisModule . tabont = $rdf . Namespace ( 'http://www.w3.org/2007/ont/link#' )
3331thisModule . log = $rdf . Namespace ( 'http://www.w3.org/2000/10/swap/log#' )
Original file line number Diff line number Diff line change 1+ // Solid-UI temporary preferences
2+ // ==============================
3+ //
4+
5+ // This was tabulator . preferences in the tabulator
6+ //
7+ module . exports = { // used for storing user name
8+ value : [ ] ,
9+ get : function ( k ) {
10+ return this . value [ k ]
11+ } ,
12+ set : function ( k , v ) {
13+ if ( typeof v !== 'string' ) {
14+ console . log ( 'Non-string value of preference ' + k + ': ' + v )
15+ throw new Error ( 'Non-string value of preference ' + k + ': ' + v )
16+ }
17+ this . value [ k ] = v
18+ }
19+ }
20+ // ends
You can’t perform that action at this time.
0 commit comments