julianshapiro/velocity

Deprecated "options.display" used, this is now a property: block

Frohmen opened this issue · 5 comments

Your system information

  • VelocityJS version: 2.0.5

I don't understand what I should do instead, and the documentation doesn't mention anything about this.

That's about as plain English as it can be. Use it as a property...

element.velocity({left:"10px", display:"block"});

That is exactly what I'm doing and what's causing the error.

No, to cause the error you're doing:

element.velocity({left:"10px"}, {display:"block"}); // Don't do, this is wrong!!!

What about: First argument (slideDown) was not a property map, a known action, or a registered redirect. Aborting.