File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,9 @@ function Class() {
333
333
}
334
334
335
335
extend ( Constructor , superclass , args [ 0 ] ) ;
336
- update ( Constructor , args [ 1 ] ) ;
336
+ if ( args [ 1 ] ) {
337
+ update ( Constructor , args [ 1 ] ) ;
338
+ }
337
339
args = args . slice ( 2 ) ;
338
340
Array . forEach ( args , function ( obj ) {
339
341
if ( callable ( obj ) )
Original file line number Diff line number Diff line change 7
7
8
8
/** @scope modules */
9
9
10
+ const VERSION = Services . appinfo . platformVersion ;
11
+
10
12
plugins . contexts = { } ;
11
13
const Script = Class ( "Script" , {
12
14
init : function ( file ) {
@@ -330,7 +332,7 @@ const IO = Module("io", {
330
332
this . _lastRunCommand = "" ; // updated whenever the users runs a command with :!
331
333
this . _scriptNames = [ ] ;
332
334
333
- if ( services . get ( "vc" ) . compare ( Application . version , "26.0a1" ) < 0 ) {
335
+ if ( services . get ( "vc" ) . compare ( VERSION , "26.0a1" ) < 0 ) {
334
336
this . downloadListener = {
335
337
onDownloadStateChange : function ( state , download ) {
336
338
if ( download . state == services . get ( "downloads" ) . DOWNLOAD_FINISHED ) {
@@ -372,7 +374,7 @@ const IO = Module("io", {
372
374
} ,
373
375
374
376
destroy : function ( ) {
375
- if ( services . get ( "vc" ) . compare ( Application . version , "26.0a1" ) < 0 ) {
377
+ if ( services . get ( "vc" ) . compare ( VERSION , "26.0a1" ) < 0 ) {
376
378
services . get ( "downloads" ) . removeListener ( this . downloadListener ) ;
377
379
} else {
378
380
let { Downloads} = Cu . import ( "resource://gre/modules/Downloads.jsm" , { } ) ;
Original file line number Diff line number Diff line change 5
5
let uri = Components.classes["@mozilla.org/network/io-service;1"]
6
6
.getService(Components.interfaces.nsIIOService)
7
7
.newURI("liberator://help/options", null, null);
8
- Application.activeWindow.open(uri).focus(); // TODO: generalise for Muttator et al.
8
+ <!-- Application.activeWindow.open(uri).focus(); // TODO: generalise for Muttator et al.-->
9
9
window.close();
10
10
</script >
11
11
</window >
Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ const Util = Module("util", {
426
426
null
427
427
) ;
428
428
429
- if ( services . get ( "vc" ) . compare ( Application . version , "33" ) >= 0
429
+ if ( services . get ( "vc" ) . compare ( VERSION , "33" ) >= 0
430
430
&& Cu . isXrayWrapper ( result ) ) {
431
431
let xr = result ;
432
432
You can’t perform that action at this time.
0 commit comments