This repository has been archived on 2023-08-29. You can view files and clone it, but cannot push or open issues/pull-requests.
yutent
/
anot.js
Archived
1
0
Fork 0

更新配置文件;修复由于拆分代码导致一个函数返回值异常的bug

1.x 1.0.1
宇天 2018-08-05 19:21:34 +08:00
parent ce42149f94
commit 6d61e12c58
3 changed files with 5 additions and 3 deletions

View File

@ -74,6 +74,9 @@ const PAD_END_NEXT = Buffer.from(`
var CSS_DEPS = {} var CSS_DEPS = {}
function getBaseUrl() { function getBaseUrl() {
if(window.LIBS_BASE_URL){
return
}
var stack var stack
try { try {
throw new Error() // 强制报错,以便捕获e.stack throw new Error() // 强制报错,以便捕获e.stack

View File

@ -1,6 +1,6 @@
{ {
"name": "anot", "name": "anot",
"version": "1.0.0", "version": "1.0.1",
"description": "Anot - 迷你mvvm框架", "description": "Anot - 迷你mvvm框架",
"main": "dist/anot.js", "main": "dist/anot.js",
"files": [ "files": [

View File

@ -166,8 +166,7 @@ function modelFactory(source, options) {
} }
function isSkip(k) { function isSkip(k) {
return return k.charAt(0) === '$' || k.slice(0, 2) === '__' || kernelProps[k]
k.charAt(0) === '$' || k.slice(0, 2) === '__' || kernelProps[k]
} }
//监听对象属性值的变化(注意,数组元素不是数组的属性),通过对劫持当前对象的访问器实现 //监听对象属性值的变化(注意,数组元素不是数组的属性),通过对劫持当前对象的访问器实现