Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd089ef6

Browse files
committed
Some fixes.
1 parent86ec838 commitd089ef6

File tree

4 files changed

+7
-13
lines changed

4 files changed

+7
-13
lines changed

‎src/datastore/index.js‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
varobserve=require('../../lib/observe-js/observe-js');
2-
31
functionlifecycleNoop(resourceName,attrs,cb){
42
cb(null,attrs);
53
}
@@ -799,7 +797,7 @@ function DSProvider() {
799797
if(typeofObject.observe!=='function'||
800798
typeofArray.observe!=='function'){
801799
$rootScope.$watch(function(){
802-
observe.Platform.performMicrotaskCheckpoint();
800+
DSUtils.observe.Platform.performMicrotaskCheckpoint();
803801
});
804802
}
805803

‎src/datastore/sync_methods/digest.js‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
varobserve=require('../../../lib/observe-js/observe-js');
2-
31
/**
42
*@doc method
53
*@id DS.sync methods:digest
@@ -22,12 +20,13 @@ var observe = require('../../../lib/observe-js/observe-js');
2220
*
2321
*/
2422
functiondigest(){
25-
if(!this.$rootScope.$$phase){
26-
this.$rootScope.$apply(function(){
27-
observe.Platform.performMicrotaskCheckpoint();
23+
var_this=this;
24+
if(!_this.$rootScope.$$phase){
25+
_this.$rootScope.$apply(function(){
26+
_this.utils.observe.Platform.performMicrotaskCheckpoint();
2827
});
2928
}else{
30-
observe.Platform.performMicrotaskCheckpoint();
29+
_this.utils.observe.Platform.performMicrotaskCheckpoint();
3130
}
3231
}
3332

‎src/datastore/sync_methods/inject.js‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
varobserve=require('../../../lib/observe-js/observe-js');
21
var_compute=require('./compute')._compute;
32

43
functionerrorPrefix(resourceName){
@@ -156,7 +155,7 @@ function _inject(definition, resource, attrs, options) {
156155
resource.collection.push(item);
157156

158157
resource.changeHistories[id]=[];
159-
resource.observers[id]=newobserve.ObjectObserver(item);
158+
resource.observers[id]=newDSUtils.observe.ObjectObserver(item);
160159
resource.observers[id].open(_react,item);
161160
resource.index.put(id,item);
162161

‎src/utils.js‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ var toPromisify = [
5656
'afterDestroy'
5757
];
5858

59-
varisRegExp=require('mout/lang/isRegExp');
6059
vardeepEquals=angular.equals;
6160

6261
varobserve=require('../lib/observe-js/observe-js');
@@ -73,7 +72,6 @@ module.exports = ['$q', function ($q) {
7372
isNumber:angular.isNumber,
7473
isFunction:angular.isFunction,
7574
isEmpty:require('mout/lang/isEmpty'),
76-
isRegExp:isRegExp,
7775
toJson:JSON.stringify,
7876
fromJson:angular.fromJson,
7977
makePath:require('mout/string/makePath'),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp