From e94de0418dc9291df49e90288a0919529f2649fc Mon Sep 17 00:00:00 2001 From: MacTheZazou Date: Mon, 16 Feb 2015 17:12:24 +0100 Subject: [PATCH] remove function slice in postsLoaded: function() slice() function is unnecessary and can be confusing for the beginner... --- post-service/post-service.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/post-service/post-service.html b/post-service/post-service.html index cea0a55..6daacbe 100644 --- a/post-service/post-service.html +++ b/post-service/post-service.html @@ -68,7 +68,7 @@ }, postsLoaded: function() { // Make a copy of the loaded data - this.posts = this.$.ajax.response.slice(0); + this.posts = this.$.ajax.response; }, /** * Update the service with the current favorite value.