Skip to content

Releases: ai/evil-blocks

0.7, Ranger Baker, 28th January 1951

Choose a tag to compare

@ai ai released this 26 Jan 18:08
0.7.0

Ranger Baker, 28th January 1951

- Rename `evil-blocks.debug` to `evil-blocks-debug` for Sprockets 3 support.

0.6.4

Choose a tag to compare

@ai ai released this 26 Jan 18:04
0.6.4
  • Add Sprockets 3 support.

0.6.3

Choose a tag to compare

@ai ai released this 23 Dec 08:52
0.6.3

0.6.2

Choose a tag to compare

@ai ai released this 26 Aug 11:10
0.6.2
  • Fix IE 8 support (by @dmkl).
  • Fix event name in debugger (by @jastkand).

0.6.1

Choose a tag to compare

@ai ai released this 14 May 06:46
0.6.1

0.6, Ranger Able, 27th January 1951

Choose a tag to compare

@ai ai released this 22 Apr 15:58
0.6.0

Filters

In 0.6 release Evil Blocks become to be much more flexible. It core is very tiny and only finds blocks by selectors, sets @block property and calls init method. All other features (like event bindings or @$() method) was moved to filters and can be disabled or replaced.

With your own filters you can change Evil Blocks logic, add some new shortcuts or features like mixins. For example you can create filter, which will initialize blocks only when they become to be visible:

filter = (obj) ->
  if not obj.block.is(':visible')
    checking = ->
      evil.block.vitalize(obj.block) if obj.block.is(':visible')
    setTimeout(checking, 100);

    return false

evil.block.filters.splice(0, 0, filter)

You can read more about filters in documentation.

Other Changes

Listener load on window will call immediately, if page was already loaded.

0.5.1

Choose a tag to compare

@ai ai released this 05 Mar 15:41
0.5.1
  • Fix block vitalizing, when multiple blocks was binded to same DOM node.

0.5, RDS-1, 29th August 1949

Choose a tag to compare

@ai ai released this 20 Feb 09:55
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.

0.4.2, Zebra, 14th May 1948

Choose a tag to compare

@ai ai released this 10 Feb 10:16
0.4.2

- Don’t listen bubbled events as block event. - Change license to MIT.

0.4.1, Yoke, 30th April 1948

Choose a tag to compare

@ai ai released this 10 Feb 10:16
0.4.1

- Allow to listen `body` and `window` events from object style.