diff options
author | ebith | 2015-05-30 23:45:47 +0900 |
---|---|---|
committer | ebith | 2015-05-30 23:45:47 +0900 |
commit | 4793ce6f8c78ca84b5182a335af3754f0e538ae5 (patch) | |
tree | 1d9bd86418d793961e954630de91aefeed613ccd /nicolist.js | |
parent | b483a357eaffbc572be5d4da973e68fa25804a13 (diff) | |
download | vimperator-plugins-4793ce6f8c78ca84b5182a335af3754f0e538ae5.tar.bz2 |
これは良くなかった
Diffstat (limited to 'nicolist.js')
-rw-r--r-- | nicolist.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/nicolist.js b/nicolist.js index 0ebb7a4..40f8414 100644 --- a/nicolist.js +++ b/nicolist.js @@ -249,7 +249,8 @@ function getToken (isWatchPage) { } } -Array.prototype.shuffle = function() { +Object.defineProperty(Array.prototype, 'shuffle', {value: + function() { var i = this.length; while(i){ var j = Math.floor(Math.random()*i); @@ -258,4 +259,5 @@ Array.prototype.shuffle = function() { this[j] = t; } return this; -} + } +}); |