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
monicaphillipa avatar monicaphillipa 2 Точки

Yea this happened with me too, When I was writing the code for a professional SEO services provider. But now that I took the code that the guy gave me in the comments it worked and now things look pretty good to me. Thanks for helping. It means a lot and if anyone of you needs any help in regards to SEO let me know.

0
stephen23 avatar stephen23 1 Точки
That is the excellent mindset, nonetheless is just not help to make every sence whatsoever preaching about that mather. Virtually any method many thanks in addition to i had endeavor to promote your own article in to delicius nevertheless it is apparently a dilemma using your information sites can you please recheck the idea. thanks once more.  
Viego Runes
 
0
GreysonAustin avatar GreysonAustin 0 Точки

Really very happy to say, your post is very interesting to read. I never stop myself to say something about it. You’re doing a great job.Keep it up

office.com/setup

 

0
walter821 avatar walter821 2 Точки

Excellent post. Please keep up the great work. You may check our website also Visit: free fonts

0
stephen23 avatar stephen23 1 Точки
Thank you very much for this useful article. I like it.
Hoki GarenaQQ
 
0
stephen23 avatar stephen23 1 Точки
Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts. 
토토사이트
 
0
yogitiger avatar yogitiger 1 Точки

For Download and install the full version of Microsoft Office on your device.Please Follow the direct download link and instructions for guidance on installing Microsoft Office 365 on your computer for more click office.com/setup

0
stephen23 avatar stephen23 1 Точки
Someone Sometimes with visits your blog regularly and recommended it in my experience to read as well. The way of writing is excellent and also the content is top-notch.  Thanks for that insight you provide the readers!
agen judi terpercaya
 
0
stephen23 avatar stephen23 1 Точки
It's a very easy on the eyes which makes it much more enjoyable for me to come here and visit more often. Did you hire out a designer to create your theme? Fantastic work!
qiu online
 
0
stephen23 avatar stephen23 1 Точки
I'm glad I found this web site, I couldn't find any knowledge on this matter prior to.Also operate a site and if you are ever interested in doing some visitor writing for me if possible feel free to let me know, im always look for people to check out my web site.  
Zip Wallets
 
0
MollyEskam avatar MollyEskam 0 Точки

Offshore Hosting with 100% DMCA ignored Hosting, Offshore Dedicated Server, Offshore VPS Hosting.

-1
paultroy122 avatar paultroy122 1 Точки

Very informative post! This post gives truly quality information. I find that this post is really amazing. Thank you for this brief explanation and very nice information. hope to see you again. Office.com/setup | Mcafee.com/activate

-1
Gome2z avatar Gome2z 0 Точки

Nice post, thanks for sharing the info regarding this topic mcdvoice

-1
stephen23 avatar stephen23 1 Точки
Good website! I truly love how it is easy on my eyes it is. I am wondering how I might be notified whenever a new post has been made. I have subscribed to your RSS which may do the trick? Have a great day!
logo online shop

 

 
-1
28/11/2020 12:11:31
stephen23 avatar stephen23 1 Точки
Wonderful article, thanks for putting this together! This is obviously one great post. Thanks for the valuable information and insights you have so provided here.
Gun store near me 
 
-1
dZf1aeA-minion89 avatar dZf1aeA-minion89 9 Точки

The article is very meticulous and insightful. it provided me with a fair amount of knowledge. help a lot for my work.
bubble shooter

-1
stephen23 avatar stephen23 1 Точки

 

Nice to be visiting your blog again, it has been months for me. Well this article that i’ve been waited for so long. I need this article to complete my assignment in the college, and it has same topic with your article. Thanks, great share.  
auto like instagram

 

 
-1
Можем ли да използваме бисквитки?
Ние използваме бисквитки и подобни технологии, за да предоставим нашите услуги. Можете да се съгласите с всички или част от тях.
Назад
Функционални
Използваме бисквитки и подобни технологии, за да предоставим нашите услуги. Използваме „сесийни“ бисквитки, за да Ви идентифицираме временно. Те се пазят само по време на активната употреба на услугите ни. След излизане от приложението, затваряне на браузъра или мобилното устройство, данните се трият. Използваме бисквитки, за да предоставим опцията „Запомни Ме“, която Ви позволява да използвате нашите услуги без да предоставяте потребителско име и парола. Допълнително е възможно да използваме бисквитки за да съхраняваме различни малки настройки, като избор на езика, позиции на менюта и персонализирано съдържание. Използваме бисквитки и за измерване на маркетинговите ни усилия.
Рекламни
Използваме бисквитки, за да измерваме маркетинг ефективността ни, броене на посещения, както и за проследяването дали дадено електронно писмо е било отворено.