From 4793ce6f8c78ca84b5182a335af3754f0e538ae5 Mon Sep 17 00:00:00 2001 From: ebith Date: Sat, 30 May 2015 23:45:47 +0900 Subject: これは良くなかった --- nicolist.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'nicolist.js') 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; -} + } +}); -- cgit v1.2.3