mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 580878: removing some underutilized Utils functions: getMilliseconds, and testLogging
--HG-- extra : rebase_source : 28ff49903f395240a3aca3b3761c7638ee6d4b7d
This commit is contained in:
parent
ff7ecda676
commit
8dd2ae9572
@ -646,17 +646,6 @@ var Utils = {
|
||||
return s;
|
||||
},
|
||||
|
||||
// ----------
|
||||
// Funtion: testLogging
|
||||
// Prints some test messages with the various logging methods.
|
||||
testLogging: function() {
|
||||
this.log('beginning logging test');
|
||||
this.error('this is an error');
|
||||
this.trace('this is a trace');
|
||||
this.log(1, null, {'foo': 'hello', 'bar': 2}, 'whatever');
|
||||
this.log('ending logging test');
|
||||
},
|
||||
|
||||
// ___ Misc
|
||||
|
||||
// ----------
|
||||
@ -667,18 +656,9 @@ var Utils = {
|
||||
return (event.which == 3);
|
||||
if (event.button)
|
||||
return (event.button == 2);
|
||||
|
||||
return false;
|
||||
},
|
||||
|
||||
// ----------
|
||||
// Function: getMilliseconds
|
||||
// Returns the total milliseconds on the system clock right now.
|
||||
getMilliseconds: function() {
|
||||
var date = new Date();
|
||||
return date.getTime();
|
||||
},
|
||||
|
||||
// ----------
|
||||
// Function: isDOMElement
|
||||
// Returns true if the given object is a DOM element.
|
||||
|
Loading…
Reference in New Issue
Block a user