Permalink
Browse files

updating to 0.7.0

  • Loading branch information...
delambo committed Dec 13, 2013
1 parent 83b5091 commit 0049dee1953e184ae104eb0a5f0e55c0ad6e079d
Showing with 15 additions and 14 deletions.
  1. +6 −5 Gruntfile.js
  2. +5 −5 README.md
  3. +4 −4 package.json
View
@@ -82,11 +82,12 @@ module.exports = function(grunt) {
compress: {
gz: {
options: {
archive: 'dist/backbone.stickit.gz'
mode: 'gzip'
},
files: [
{src: 'dist/backbone.stickit.min.js'}
]
expand: true,
cwd: 'dist/',
src: ['backbone.stickit.min.js'],
dest: 'dist/'
},
zip: {
options: {
@@ -112,7 +113,7 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-compress');
grunt.registerTask('build', ['jshint', 'clean:build', 'uglify:nasty', 'concat', 'docco', 'compress:gz', 'cp-docs', 'compress:zip']);
grunt.registerTask('build', ['jshint', 'clean:build', 'uglify:nasty', 'concat', 'compress:gz', 'cp-docs', 'compress:zip']);
grunt.registerTask('cp-docs', function() {
grunt.file.copy('docs/docco.css', 'dist/docs/annotated/docco.css');
View
@@ -1,4 +1,4 @@
[-> **Documentation for current/stable release: 0.6.3**](http://nytimes.github.com/backbone.stickit/)
[-> **Documentation for current/stable release: 0.7.0**](http://nytimes.github.com/backbone.stickit/)
**The following is documentation for the code in master/edge version...**
@@ -10,7 +10,7 @@ Stickit is a Backbone data binding plugin that binds Model attributes to View el
## Download + Source
[download v0.6.3](http://nytimes.github.com/backbone.stickit/downloads/backbone.stickit_0.6.3.zip)
[download v0.7.0](http://nytimes.github.com/backbone.stickit/downloads/backbone.stickit_0.7.0.zip)
[download master/edge](https://raw.github.com/NYTimes/backbone.stickit/master/backbone.stickit.js)
@@ -640,24 +640,24 @@ If you are writing a custom frontend, then you're going to need to write custom
### Dependencies
Backbone 0.9, underscore.js, and jQuery or Zepto (with data module; see `selectOptions`)
Backbone 1.0, underscore.js, and jQuery or Zepto (with data module; see `selectOptions`)
### License
MIT
## Change Log
#### Master
#### 0.7.0
- **Breaking Change**: the `bindKey` that was passed into the Backbone `change:attr` (undocumented) options was changed to `stickitChange` which is assigned the binding options which have a unique `bindId`.
- **Breaking Change**: the default events for input, textarea, and contenteditable form elements changed from [`keyup`, `cut`, `paste`, `change`] to [`propertychange`, `input`, `change`].
- **Breaking Change**: removed support for `input[type="number"]`. Instead, use `onSet` to format Number values, if needed.
- **Breaking Change**: The `updateModel` method parameters changed so the `event` is now passed as the second parameter. `updateModel(val, options)` -> `updateModel(val, event, options)`
- Stickit will now load using the UMD pattern so it is compatible with AMD, Node.js, and CommonJS.
- A view's `bindings` configuration can be defined as a function.
- When observing an array, if `onSet` or `getVal` return an array of values, Stickit will match the values to their respective attributes defined in `observe` and set them in the model. If you don't desire this change, then you can override this behavior with the following change:
- Added a `set` callback which by default calls `model#set`
- **Breaking Change**: The `updateModel` method parameters changed so the `event` is now passed as the second parameter. `updateModel(val, options)` -> `updateModel(val, event, options)`
- Added the `destroy` binding callback to compliment `initialize`.
- Trigger `stickit:unstick` for each model that is unbound in `unstickit` (or `view.remove`).
- Added handling for `observe` in function form.
View
@@ -1,7 +1,7 @@
{
"name": "backbone.stickit",
"description": "Model binding in Backbone style.",
"version": "0.6.3",
"version": "0.7.0",
"author": "Matthew DeLambo <delambo@gmail.com>",
"repository": {
"type": "git",
@@ -13,14 +13,14 @@
},
"devDependencies": {
"grunt-contrib": "~0.4.0",
"grunt-docco": "~0.1.2",
"grunt": "~0.4.0",
"grunt-docco": "~0.3.0",
"grunt": "~0.4.2",
"grunt-contrib-concat": "~0.1.3",
"grunt-contrib-jshint": "~0.2.0",
"grunt-contrib-qunit": "~0.2.0",
"grunt-contrib-uglify": "~0.1.2",
"grunt-contrib-clean": "~0.4.0",
"grunt-contrib-compress": "~0.4.1"
"grunt-contrib-compress": "~0.5.3"
},
"bugs": {
"url": "http://github.com/nytimes/backbone.stickit/issues"

0 comments on commit 0049dee

Please sign in to comment.