Skip to content

Commit

Permalink
bower and build fixes, model micro optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitarChristoff committed Dec 16, 2013
1 parent a753a95 commit 280d71a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Epitome",
"version": "0.4.1",
"version": "0.6.0",
"main": [
"Epitome-min.js",
"src/epitome.js",
Expand Down
4 changes: 2 additions & 2 deletions dist/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ var http = require('http'),
}),
generateUID = function(){
var now = new Date();
return Math.floor(Math.random() * 10) + parseInt(now.getTime()).toString(36).toUpperCase();
return Math.floor(Math.random() * 10) + parseInt(now.getTime(),10).toString(36).toUpperCase();
};

function respond(res, code, contents){
Expand Down Expand Up @@ -62,7 +62,7 @@ http.createServer(function(req, res){
}
});

req.on('close', function(err){
req.on('close', function(/*error*/){
res.end();
});

Expand Down
4 changes: 2 additions & 2 deletions src/epitome-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@

empty: function(){
// empty the model and fire change event
var keys = Object.keys(this.toJSON()),
var keys = Object.keys(this._attributes),
self = this;

// let the instance know.
Expand All @@ -153,7 +153,7 @@
// fire change for all keys in the model.
Array.each(keys, function(key){
self.trigger('change:' + key, null);
}, this);
});

this._attributes = {};
this.trigger('empty');
Expand Down

0 comments on commit 280d71a

Please sign in to comment.