Loading...
aivian avatar aivian 51 Точки

Защо this е празен в remove middleware?

Имам следната схема и middleware за собственик: http://pastebin.com/JTSS0zc3

Хващам request - а с този код: http://pastebin.com/rYScSiVQ

Като изтрия собственик, влиза в middleware - а, но ми казва, че this е празен обект, а уж би трябвало this - а да ми е документа, който съм изтеглил от базата. Някой знае ли защо се получава така?

Тагове:
0
Express.js Web Development
KrasiNedew avatar KrasiNedew 65 Точки

Пробвай да замениш arrow function-a с обикновен.

(function (params) {} вместо (params) => {})
Имал съм случаи, в които this се държи различно с arrow function-ите (като се замисля, всеки случай, в който this e динамичен).

1
28/10/2016 19:02:07
aivian avatar aivian 51 Точки

Оправи се. Мерси.

0
lavernwalter avatar lavernwalter 1 Точки

My life had found its missing piece
So as long as I live I love you
Will have and hold you  run 3

 
 

 

0
MollyEskam avatar MollyEskam 0 Точки

Offshore Hosting with 100% DMCA ignored Hosting, Offshore Dedicated Server, Offshore VPS Hosting. offshorededi is the Most Secure Offshore Host.

0
stephen23 avatar stephen23 1 Точки
Thanks  for every other informative site. The place else may just I get that kind of information written in such an ideal means? I have a venture that I’m just now operating on, and I have been on the look out for such information.
buy to let mortgage advisor
 
0
stephen23 avatar stephen23 1 Точки
Awesome article!  I want people to know just how good this information is in your article.  It’s interesting, compelling content.  Your views are much like my own concerning this subject.
bet365가상축구
 
0
stephen23 avatar stephen23 1 Точки
This is such a great resource that you are providing and you give it away for free. I love seeing blog that understand the value of providing a quality resource for free.
바카라 사이트
 
0
stephen23 avatar stephen23 1 Точки
howdy, your websites are really good. I appreciate your work.
nba중계
 
0
stephen23 avatar stephen23 1 Точки
Its a great pleasure reading your post.Its full of information I am looking for and I love to post a comment that "The content of your post is awesome" Great work. 
クホームズの特徴 
 
0
stephen23 avatar stephen23 1 Точки
Thanks a lot for sharing us about this update. Hope you will not get tired on making posts as informative as this. 
game slot online
 
0
stephen23 avatar stephen23 1 Точки
Very useful post. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. Really its great article. Keep it up. 
Buy Linzhi Phoenix ETH Miner 2600 MH/s 
 
0
stephen23 avatar stephen23 1 Точки
I recently came across your blog and have been reading along. I thought I would leave my first comment. I don't know what to say except that I have enjoyed reading. Nice blog. I will keep visiting this blog very often.
incorporate company in Hong Kong 
 
0
stephen23 avatar stephen23 1 Точки
Admiring the time and effort you put into your blog and detailed information you offer!..  
live casino
 
0
stephen23 avatar stephen23 1 Точки
Thanks so much for this information.  I have to let you know I concur on several of the points you make here and others may require some further review, but I can see your viewpoint.
먹튀사이트
 
0
stephen23 avatar stephen23 1 Точки
I read that Post and got it fine and informative. Please share more like that...
토토사이트 
 
0
stephen23 avatar stephen23 1 Точки
You’ve got some interesting points in this article. I would have never considered any of these if I didn’t come across this. Thanks!.
crossdresser bodysuit 
 
0
stephen23 avatar stephen23 1 Точки
I really loved reading your blog. It was very well authored and easy to undertand. Unlike additional blogs I have read which are really not tht good. I also found your posts very interesting. In fact after reading, I had to go show it to my friend and he ejoyed it as well!  
Clinica Odontológica 24 horas 
 
0
stephen23 avatar stephen23 1 Точки
This is very interesting content!  I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them.  You are great.  
press release distribution company 
 
0
stephen23 avatar stephen23 1 Точки
Hello I am so delighted I located your blog, I really located you by mistake, while I was watching on google for something else, Anyways I am here now and could just like to say thank for a tremendous post and a all round entertaining website. Please do keep up the great work. 
search engine optimization
 
0
stephen23 avatar stephen23 1 Точки
This is just the information I am finding everywhere. Thanks for your blog, I just subscribe your blog. This is a nice blog..
office cleaning
0
stephen23 avatar stephen23 1 Точки
Thank you for helping people get the information they need. Great stuff as usual. Keep up the great work!!!  
sa gaming
 
0
stephen23 avatar stephen23 1 Точки
This is such a great resource that you are providing and you give it away for free. I love seeing websites that understand the value of providing a quality resource for free. It is the old what goes around comes around routine.
Private I.T Technology
 
0
stephen23 avatar stephen23 1 Точки
I admire this article for the well-researched content and excellent wording.  I got so involved in this material that I couldn’t stop reading.  I am impressed with your work and skill.  Thank you so much.  
poker88
 
0
stephen23 avatar stephen23 1 Точки
Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. 
Free Mobile Number Search Engine 
 
0
stephen23 avatar stephen23 1 Точки
Hi there! Nice stuff, do keep me posted when you post again something like this!
kids boutique online
 
0
stephen23 avatar stephen23 1 Точки
An interesting dialogue is price comment. I feel that it is best to write more on this matter, it may not be a taboo topic however usually individuals are not enough to talk on such topics. To the next. Cheers.  
lindo
 
0
stephen23 avatar stephen23 1 Точки
Great post, you have pointed out some excellent points, I as well believe this is a very superb website. 
hotels for sale
 
0
stephen23 avatar stephen23 1 Точки
Hello There. I found your blog using msn. This is an extremely well written article. I will be sure to bookmark it and return to read more of your useful information. Thanks for the post. I’ll certainly comeback.  
AR 15 Complete Parts Kit
 
0
stephen23 avatar stephen23 1 Точки
Wow, cool post. I’d like to write like this too – taking time and real hard work to make a great article… but I put things off too much and never seem to get started. Thanks though. 
The Witcher 3 free download
 
0
stephen23 avatar stephen23 1 Точки
Fantastic blog! Do you have any tips and hints for aspiring writers? I’m planning to start my own website soon but I’m a little lost on everything. Would you propose starting with a free platform like WordPress or go for a paid option? There are so many options out there that I’m completely overwhelmed .. Any suggestions? Many thanks! 
토토커뮤니티
 
0
stephen23 avatar stephen23 1 Точки
I’ve been surfing online more than three hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. In my opinion, if all webmasters and bloggers made good content as you did, the web will be a lot more useful than ever before.  
royal canin hydrolyzed protein dog food side effects
 
0
stephen23 avatar stephen23 1 Точки
Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there! Appreciate it. 
進撃の巨人 全巻無料
 
0
stephen23 avatar stephen23 1 Точки
The information you have posted is very useful. The sites you have referred was good. Thanks for sharing...  
ดูหนังHD
 
0
stephen23 avatar stephen23 1 Точки
I’ve been searching for some decent stuff on the subject and haven't had any luck up until this point, You just got a new biggest fan!..  
ดูหนังHD
 
0
Можем ли да използваме бисквитки?
Ние използваме бисквитки и подобни технологии, за да предоставим нашите услуги. Можете да се съгласите с всички или част от тях.
Назад
Функционални
Използваме бисквитки и подобни технологии, за да предоставим нашите услуги. Използваме „сесийни“ бисквитки, за да Ви идентифицираме временно. Те се пазят само по време на активната употреба на услугите ни. След излизане от приложението, затваряне на браузъра или мобилното устройство, данните се трият. Използваме бисквитки, за да предоставим опцията „Запомни Ме“, която Ви позволява да използвате нашите услуги без да предоставяте потребителско име и парола. Допълнително е възможно да използваме бисквитки за да съхраняваме различни малки настройки, като избор на езика, позиции на менюта и персонализирано съдържание. Използваме бисквитки и за измерване на маркетинговите ни усилия.
Рекламни
Използваме бисквитки, за да измерваме маркетинг ефективността ни, броене на посещения, както и за проследяването дали дадено електронно писмо е било отворено.