diff options
| author | Einar Egilsson <einar@einaregilsson.com> | 2009-10-20 14:36:34 +0000 | 
|---|---|---|
| committer | Einar Egilsson <einar@einaregilsson.com> | 2009-10-20 14:36:34 +0000 | 
| commit | 7a35fcd096f1fc4f81fc9cbc5d41ced28b752a89 (patch) | |
| tree | 199914c15f332fceaf4af7e071381b54ca520d45 | |
| parent | fac1dc90b505c5bf0e8833bc1aecf4f53a7348b5 (diff) | |
Fixed small bug
git-svn-id: http://einaregilsson.googlecode.com/svn/mozilla/redirector/trunk@287 119bf307-c92d-0410-89bd-8f53e6181181
| -rw-r--r-- | chrome/content/code/redirect.js | 3 | ||||
| -rw-r--r-- | components/interfaces/rdIMatchResult.idl | 12 | ||||
| -rw-r--r-- | components/interfaces/rdIRedirect.idl | 2 | 
3 files changed, 7 insertions, 10 deletions
| diff --git a/chrome/content/code/redirect.js b/chrome/content/code/redirect.js index 2be8fc9..c4fddf8 100644 --- a/chrome/content/code/redirect.js +++ b/chrome/content/code/redirect.js @@ -2,6 +2,7 @@  Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
 +
  function Redirect(exampleUrl, includePattern, redirectUrl, patternType, excludePattern, unescapeMatches, disabled) {
  	this._init(exampleUrl, includePattern, redirectUrl, patternType, excludePattern, unescapeMatches, disabled);
  }
 @@ -29,7 +30,7 @@ Redirect.prototype = {  		this._rxExclude = this._compile(value); 
  	},
 -	redirectTo : null,
 +	redirectUrl : null,
  	get patternType() { return this._patternType; },
  	set patternType(value) { 
 diff --git a/components/interfaces/rdIMatchResult.idl b/components/interfaces/rdIMatchResult.idl index 16de67c..371a7d7 100644 --- a/components/interfaces/rdIMatchResult.idl +++ b/components/interfaces/rdIMatchResult.idl @@ -4,14 +4,10 @@  [scriptable, uuid(cf89b480-bce3-11de-a0dd-028037ec0200)]
  interface rdIMatchResult : nsISupports {
 -	/* Result constants */
 -	const short NO_MATCH = 0;
 -	const short MATCH = 1;
 -	const short DISABLED_MATCH = 2;
 -	const short EXCLUDED_MATCH = 3;
 -
  	/* Attributes */
 -	attribute wstring redirectTo;	
 -	attribute short result;
 +	readonly attribute wstring redirectTo;	
 +	readonly attribute boolean isMatch;
 +	readonly attribute boolean isExcludeMatch;
 +	readonly attribute boolean isDisabledMatch;
  };
 diff --git a/components/interfaces/rdIRedirect.idl b/components/interfaces/rdIRedirect.idl index cd67b30..0421d8e 100644 --- a/components/interfaces/rdIRedirect.idl +++ b/components/interfaces/rdIRedirect.idl @@ -9,7 +9,7 @@ interface rdIRedirect : nsISupports {  	attribute wstring exampleUrl;	  	attribute wstring includePattern;  	attribute wstring excludePattern; -	attribute wstring redirectTo; +	attribute wstring redirectUrl;  	attribute wchar patternType;  	attribute boolean unescapeMatches;  	attribute boolean disabled; | 
