Skip to content

Release 1.2.0

Compare
Choose a tag to compare
@wichert wichert released this 13 Jul 07:48
· 6606 commits to master since this release
  • Update the website design.
  • Packaging changes:
    • New bootstrap to handle installation of all dependencies and build bundles.
    • Switch dependency management from jamjs to bungle. Remove all third party packages from the source tree.
  • The setclass pattern was removed in favour of the newer switch pattern. Ticket 270
  • Add a new select-option pattern to faciliate styling of select elements. Ticket 276
  • Zoom pattern: make zoom fallback control (text input field) react properly to change events.
  • Improve documentation for the image-crop pattern.
  • Fix handling of position hints for tooltips.
  • Autoscale pattern:
    • Avoid creating infinite loops with the resize handler in IE8. This could load to browser crashes.
    • Use the scale method on IE 9 as well. Ticket 281
  • Injection pattern:
    • Add missing dependency on jquery.form. Ticket 267
    • Also rebase URLs for video and source elements.
    • Modify attribute value escaping in HTML parser to always use " for double quotes. This fixes problems attribute values containing double quotes.
    • Rewrite URL rebasing logic to use the browser''s HTML parser again. This should improve robustness when dealing with non-standard markup.
  • Depends pattern:
    • Really hide/show elements if no transition type was specified (or none was specified explicitly).
    • Add support for a ~= operator to test for substrings.
    • Make the easing used for animations configurable.
  • Form-State pattern: add form-state-saved signal.
  • Modal pattern:
    • Automatically position modals using javascript to fix problems with IE9 and make sure they always fit in the viewport.
    • Make sure elements inside a modal do not accidentily loose their focus. This broke the handling of autofocus in modals. Ticket 266
  • Check-list pattern: send change event when a checkbox is toggled. This fixes interaction with other patterns such as the checked-flag pattern.
  • Collapsible pattern:
    • Add new option to specify an (external) triggering element. Ticket 274
    • Make it possible to specify the transition effect to use when opening or closing a panel.
  • Markdown pattern:
    • Include section selector in data-src attribute. Ticket 259
    • Correct detection of the end of a extracted sections. Ticket 268
    • Make sure we correctly identify autoloaded markdown content referenced from a just-injected HTML fragment. Ticket 188
    • Use a new markdown converter for every pattern. This fixes problems with shared converter state if the pattern tried to convert two pieces of markdown at the exact same time.
  • Placeholder pattern: remove Modernizr dependency.
  • Sortable pattern: fix weird behaviour when element is dropped on self.
  • Core logic changes:
    • Patterns main.js returns registry, you have to call patterns.init() manually. For the bundles this happens automatically. Depend on patterns/autoinit, if you really want an auto-initializing modular patterns library.
    • Registry: Add option to registry.scan to let init exceptions through.
    • Registry: rescans the DOM for patterns registered after the initial DOM scan.
    • Include pattern name in the parser log output. This makes it much easier to debug problems.
    • HTML parser:
      • Correctly handle tag and attribute names containing a colon.
      • Correct escaping of double quotes in attribute values.