diff options
author | Einar Egilsson | 2011-08-26 15:07:21 +0200 |
---|---|---|
committer | Einar Egilsson | 2011-08-26 15:07:21 +0200 |
commit | 32da992f75bf6046a8b1d829e742ef1bf0f98d89 (patch) | |
tree | 01265935a09f33c207a78177f9f84c77a24f5d5f /chrome/code/redirect.js | |
parent | 3ac1838cba725705a96a9d7b65721b15f4ec67b1 (diff) |
Upgrade half ready
Diffstat (limited to 'chrome/code/redirect.js')
-rw-r--r-- | chrome/code/redirect.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/chrome/code/redirect.js b/chrome/code/redirect.js index f9b7f00..5b977d0 100644 --- a/chrome/code/redirect.js +++ b/chrome/code/redirect.js @@ -52,6 +52,24 @@ Redirect.prototype = { this._rxExclude = this._compile(this._excludePattern); }, + toObject : function() { + return { + exampleUrl : this.exampleUrl, + includePattern : this.includePattern, + excludePattern : this.excludePattern, + redirectUrl : this.redirectUrl, + patternType : this.patternType, + unescapeMatches : this.unescapeMatches, + disabled : !!this.disabled + }; + }, + + fromObject : function(o) { + for (var prop in o) { + this[prop] = o[prop]; + } + }, + copyValues : function(other) { this.exampleUrl = other.exampleUrl; this.includePattern = other.includePattern; |