mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-07 22:53:32 +02:00
Use builtin String.startsWith, String.endsWith, and String.contains methods where appropriate.
This commit is contained in:
@@ -358,7 +358,7 @@ var Overlay = Module("Overlay", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReferen
|
||||
delete desc.writable;
|
||||
desc.get = function get() value;
|
||||
desc.set = function set(val) {
|
||||
if (!callable(val) || Function.prototype.toString(val).indexOf(sentinel) < 0)
|
||||
if (!callable(val) || !Function.prototype.toString(val).contains(sentinel))
|
||||
Class.replaceProperty(this, k, val);
|
||||
else {
|
||||
let package_ = util.newURI(Components.stack.caller.filename).host;
|
||||
|
||||
Reference in New Issue
Block a user