node package manager

urturn-expression-api expression API


  • FIX: ready event triggered twice if registered after edit.
  • NEW: Video data added
  • NEW: Use scroll() to get the current scroll position and scroll({top: 123}) or scroll({bottom: 0}) to scroll to specific positions.
  • NEW: Added the method UT.Post.queueUp(name, callback) that will retrieve the next available number in the sequence name.
  • NEW: Expression starting from 0.8.0 must support to be resized in width at runtime.
  • NEW: use size() to retrieve the current size.
  • REFACTOR: Listen on 'scroll' instead of 'scrollChanged' to get notified when the scroll has been updated.
  • REFACTOR: use size(args) instead of resize(args) to resize the post.
  • REFACTOR: post.size() and post.scroll() now accept an optional callback that will be triggered once the operation complete. The global events post.on('scroll') and post.on('resize') will be called as well as before.
  • FIX: scroll event is fixed.
  • FIX: post.users('current') now have valid numberOfPost and numberOfUse values (notes that there might be some delays to the update).
  • FIX: fixed a bug where parent data collection was preventing expression loading on mobile.
  • FIX: context use indiferently 'editor' or 'edit'. Now use 'editor' or 'player' syntax.
  • REFACTOR UT.Collection / UT.PublicCollection: Collection and PublicCollection are now two different classes given the fact their roles are indeed very differrent.
  • ADD: UT.PublicCollection.find() retrieve the most recent item of the collection. This open the door to a whole new kind of expression where viewer items are used directly rather than with their comments.
  • ADD: UT.User, representing a user
  • ADD: UT.Post#users([items], callback) a method that retrieve an array of UT.User for a given array of items, the current user when 'current' is given as first parameter or an UT.User instance if only one item is given.
  • ADD: UT.Post#isOwner(user) return true if the given user is the post owner
  • ADD: UT.Post#isCurrentUser(user) return true if the given user is the current user
  • FIX: a bug where .dialog callback was not called when user close the library
  • FIX: a bug that prevent .on('media') to work correctly with bookmarklet.
  • ADD User API: let you retrieve information on current user.
  • ADD: support for new UT.Image(URL) : let you create an UT.Image form an url.
  • ADD: pause event on post, called when post is hedded and media should pause.
  • FIXED : Multiple bugs in user collection
  • Fix a bug where array cannot be serialized
  • Fix a bug where items with null value was not fully removed
  • Fix a bug where undefined items was not removed
  • Fix a bug where setting an item to null was throwing an exception on save (issue #8381)
  • Fix a bug where storage was accepting functions, now throw an Error
  • Better tests of collections sanitization method
  • Refactor the tests to avoid using public collections for everything
  • Implements the 'flat API'.
  • add a new method to get Parent Document data when use Urturn. Use expression.getParentData() to get parent document data. Return an empty object if no data are set.
  • new method signature for Post#textInput([options], [callback]) where options support keys value, max and multiline, and callback receive the resulting string or null if none are typed.

We use Grunt to build the package and bower to manage our internal dependencies. Every dependencies must have a valid bower.json file that will list their main resources.

Copyright Webdoc Inc. 2012, all rights reserved