Skip to content

Commit

Permalink
Script._file has no setter
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvold committed Jul 28, 2013
1 parent bc292d8 commit d76fb0f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions extension/modules/script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -741,7 +741,6 @@ Script.prototype = {
this._version = newScript._version;

if (!scriptInjector) {
this._file = newScript._file;
this._basedir = newScript._basedir;
this._filename = newScript._filename;
this._icon = newScript._icon;
Expand All @@ -751,7 +750,8 @@ Script.prototype = {
this._css = newScript._css;
this._modified = newScript._modified;
this._dependhash = newScript._dependhash;
if (newScript._downloadURL) this._downloadURL = newScript._downloadURL;
if (newScript._downloadURL)
this._downloadURL = newScript._downloadURL;
}
else {
var dependhash = tools.Scriptish_cryptoHash(newScript._rawMeta);
Expand All @@ -778,7 +778,8 @@ Script.prototype = {
Cu.import("resource://scriptish/config/configdownloader.js", tools);
// Redownload dependencies.
tools.Scriptish_configDownloader.refetchDependencies(this);
} else {
}
else {
Scriptish.notify(this, "scriptish-script-modified", {saved: true, reloadUI: true});
}
}
Expand Down

0 comments on commit d76fb0f

Please sign in to comment.