- Fixed AMD loader.
- Added
Giraffe.noConflict
andGiraffe.Contrib.noConflict
. Contrib
now attaches itself asroot.GiraffeContrib
in addition to the existingGiraffe.Contrib
.
- Fixed module loader for r.js optimizer.
-
Configured objects (including all Giraffe objects) now have the following no-op function hooks for you to implement:
beforeDispose
,afterDispose
,beforeInitialize
, andafterInitialize
. -
Disposed objects have a new property
_dispose
set totrue
.
- Support optional params for Router#isCaused and Router#cause. Optional static routes remain unsupported. See issue 19 for more.
- Contrib can now be required from the root:
require('backbone.giraffe/contrib')
. - All invariants now throw errors instead of logging.
- Allow passing routing options to Giraffe.Router#cause.
- Fixed support for 0 as a path param.
- Added Backbone and Underscore CommonJS requires to Giraffe.Contrib.
- Fixed AMD loader check.
-
Added support for AMD and node-style loaders.
-
Put contributors in one place, the AUTHORS file.
-
Using accurate semantic versioning, starting...now.
-
Added events around several view methods:
rendering
,rendered
,attaching
,attached
,detaching
,detached
-
BREAKING CHANGE:
dispose
now acts onthis
instead of taking the target object as an argument. RemoveddisposeThis
as it's now redundant. -
Registered as a Bower package:
bower install backbone.giraffe
-
Added the function
Giraffe.configure
which mixes several Giraffe features into any object. Used in the constructors of all Giraffe objects. -
omittedOptions
can be used to preventGiraffe.configure
from extending particular properties. If the value istrue
, all properties are omitted. -
The document event prefix
'data-gf-'
is now configurable viaGiraffe.View.setDocumentEventPrefix
and as a parameter toGiraffe.View.setDocumentEvents
andGiraffe.View.removeDocumentEvents
. -
BREAKING CHANGE:
dispose
is now mixed into configured objects with a default function, and is only copied if it doesn't exist. As a result, calls to super indispose
no longer make sense. UseGiraffe.dispose
instead. -
beforeDispose
,afterDispose
,beforeInitialize
, andafterInitialize
are called if defined on all configured objects. Some are used by Giraffe objects so override with care. -
Added
Giraffe.wrapFn
which calls 'beforeFnName' and 'afterFnName' versions of a function name on an object. Here's a reference for future development - Backbone.Advice