Skip to content

0.5, RDS-1, 29th August 1949

Choose a tag to compare

@ai ai released this 20 Feb 09:55
· 80 commits to master since this release
0.5.0

API Changes

Version 0.5 contains three API changes, so you need to update your code. This changes is not so big and you can fix your application by grep. I promise, that next version will not have same dramatic changes.

  • Current event target was moved from listener first argument to event.el.
  • Function to find inside block was renamed from @(selector) to @$(selector).
  • Old deprecated function style API was removed.

New Features

  • New @@block alias to [data-block=block]. You should use it for block selector in evil.block.
  • Evil Blocks now contains debugger. Just add evil-blocks.debug.js to your page and you will see all events inside blocks.

Vitalizing Changes

  • Function evil.blocks.vitalize() don’t vitalize block twice. So you can safer call it on new content without any arguments. In 0.5 version it will find blocks inside document by default.
  • Blocks initializers will call only after all event bindings. So now you can safely trigger another block in init.
  • Evil Blocks now Initialize blocks on next tick after page ready to safely use libraries, which can be defined after blocks.

Integration Changes

  • Now you can use latest version from GitHub master in Ruby Bundler.
  • Add Bower support.