Skip to content

Commit

Permalink
Bumping to v0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim-Intellipharm committed Mar 6, 2015
1 parent e3c24ea commit 89a1b26
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 17 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "angular-cakephp",
"description": "An AngularJS data modelling framework that ties in with a CakePHP REST API",
"version": "0.2.0",
"version": "0.2.1",
"homepage": "https://github.com/intellipharm/angular-cakephp",
"repository": {
"type": "git",
Expand Down
15 changes: 4 additions & 11 deletions dist/angular-cakephp.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*!
* angular-cakephp v0.2.0
* angular-cakephp v0.2.1
* http://intellipharm.com/
*
* Copyright 2015 Intellipharm
*
* 2015-02-27 11:45:15
* 2015-03-06 10:29:32
*
*/
(function() {
Expand Down Expand Up @@ -84,9 +84,9 @@
model.active_record_class.prototype = Object.create(BaseActiveRecord.prototype);

// create new active record instance
//var instance = active_record;
var instance = new model.active_record_class(data);


// set instance properties
instance.model = model;

Expand Down Expand Up @@ -208,13 +208,6 @@
}
});

// this doesn't work in karma for some reason
// this also blocks associations, so we need to find a better solution
/*var observer = new ObjectObserver(this);
observer.open(function(added, removed, changed, getOldValueFn) {
self.virtualFieldUpdate(name);
});*/

// trigger the setter
this.virtualFieldUpdate(name);

Expand Down Expand Up @@ -843,7 +836,7 @@
* @param config
*/
this.handleErrorResponse = function(resolve, reject, model, response, status, headers, config) {
reject({message: response.message});
reject({data: response.data, message: response.message});
};
};

Expand Down
6 changes: 3 additions & 3 deletions dist/angular-cakephp.min.js

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

Loading

0 comments on commit 89a1b26

Please sign in to comment.