Skip to content

Commit

Permalink
Build v0.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
bseth99 committed Dec 8, 2013
1 parent a0c3035 commit 0811df6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
16 changes: 15 additions & 1 deletion backbone-fiber.js
Original file line number Diff line number Diff line change
Expand Up @@ -422,12 +422,26 @@
return {};
},

/**
* Default logic to unset data and allow for an event to trigger
*/

clearData: function() {
var dm = this.data();
this.unbindData();
this.model = null;
this.collection = null;
this.trigger('undata', dm );
return this;

},

/**
* Default logic to set data on the view. Takes a hash with either model or collection set to the new data value.
* Any custom functions must ensure they properly bind and unbind data. The trigger is optional.
* Returns itself for chaining.
*/

setData: function( data ) {

var dm = null;
Expand Down
2 changes: 1 addition & 1 deletion backbone-fiber.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "backbone-fiber",
"version": "0.1.3",
"version": "0.1.4",
"ignore": [
"bower_components",
"node_modules",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "Backbone.Fiber",
"title": "",
"description": "",
"version": "0.1.3",
"version": "0.1.4",
"author": {
"name": "Ben Olson",
"url": "http://bseth99.github.com/"
Expand Down

0 comments on commit 0811df6

Please sign in to comment.