aboutsummaryrefslogtreecommitdiffstats
path: root/nicolist.js
diff options
context:
space:
mode:
authorebith2015-05-30 23:45:47 +0900
committerebith2015-05-30 23:45:47 +0900
commit4793ce6f8c78ca84b5182a335af3754f0e538ae5 (patch)
tree1d9bd86418d793961e954630de91aefeed613ccd /nicolist.js
parentb483a357eaffbc572be5d4da973e68fa25804a13 (diff)
downloadvimperator-plugins-4793ce6f8c78ca84b5182a335af3754f0e538ae5.tar.bz2
これは良くなかった
Diffstat (limited to 'nicolist.js')
-rw-r--r--nicolist.js6
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;
-}
+ }
+});