Skip to content

Commit 08a8f55

Browse files
author
Florent Gouget
committed
it was all a very bad idea
1 parent 4868cc1 commit 08a8f55

File tree

4 files changed

+7
-37
lines changed

4 files changed

+7
-37
lines changed

build/app.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,20 +53,8 @@ function ActiveRecord(model, name) {
5353
function ActiveRecord($injector, rootUrl, options) {
5454
_classCallCheck(this, ActiveRecord);
5555

56-
//this.$injector = $injector;
57-
Object.defineProperty(this, '$injector', {
58-
get: function get() {
59-
return $injector;
60-
},
61-
enumerable: false
62-
});
63-
Object.defineProperty(this, 'rootUrl', {
64-
get: function get() {
65-
return rootUrl;
66-
},
67-
enumerable: false
68-
});
69-
56+
this.$injector = $injector;
57+
this.rootUrl = rootUrl;
7058
this.build(options);
7159
}
7260

dest/temp/ActiveRecord.js

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -52,20 +52,8 @@ function ActiveRecord(model, name) {
5252
function ActiveRecord($injector, rootUrl, options) {
5353
_classCallCheck(this, ActiveRecord);
5454

55-
//this.$injector = $injector;
56-
Object.defineProperty(this, '$injector', {
57-
get: function get() {
58-
return $injector;
59-
},
60-
enumerable: false
61-
});
62-
Object.defineProperty(this, 'rootUrl', {
63-
get: function get() {
64-
return rootUrl;
65-
},
66-
enumerable: false
67-
});
68-
55+
this.$injector = $injector;
56+
this.rootUrl = rootUrl;
6957
this.build(options);
7058
}
7159

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"author": "flogou <florent.gouget@gmail.com>",
33
"name": "angular-orm",
4-
"version": "2.0.6",
4+
"version": "2.0.7",
55
"description": "",
66
"homepage": "",
77
"dependencies": {

src/ActiveRecord.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,8 @@ export default function ActiveRecord (model, name, SManager = SessionManager(mod
2020

2121
let ActiveRecord = class {
2222
constructor ($injector, rootUrl, options) {
23-
Object.defineProperty(this, '$injector', {
24-
get: function(){return $injector},
25-
enumerable: false
26-
})
27-
Object.defineProperty(this, 'rootUrl', {
28-
get: function(){return rootUrl},
29-
enumerable: false
30-
})
23+
this.$injector = $injector
24+
this.rootUrl = rootUrl
3125
this.build(options);
3226
}
3327

0 commit comments

Comments
 (0)