Skip to content

Commit

Permalink
https://github.com/RubyLouvre/avalon/issues/1091
Browse files Browse the repository at this point in the history
  • Loading branch information
qitmac000408 authored and qitmac000408 committed Oct 8, 2015
1 parent 43e72f2 commit 0cd99e4
Show file tree
Hide file tree
Showing 13 changed files with 713 additions and 719 deletions.
8 changes: 4 additions & 4 deletions avalon.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http://weibo.com/jslouvre/
Released under the MIT license
avalon.js 1.5.3 built in 2015.10.4
avalon.js 1.5.3 built in 2015.10.9
support IE6+ and other browsers
==================================================*/
(function(global, factory) {
Expand Down Expand Up @@ -1128,7 +1128,7 @@ function observeObject(source, options) {
options = options || nullObject
var force = options.force || nullObject
var old = options.old
var oldAccessors = typeof old === "object" ? old.$accessors : nullObject
var oldAccessors = old && old.$accessors || nullObject
var $vmodel = new Component() //要返回的对象, 它在IE6-8下可能被偷龙转凤
var accessors = {} //监控属性
var hasOwn = {}
Expand Down Expand Up @@ -3316,10 +3316,10 @@ function scanExpr(str) {
}

function scanText(textNode, vmodels, index) {
var bindings = []
var bindings = [],
tokens = scanExpr(textNode.data)
if (tokens.length) {
for (var i = 0; token = tokens[i++];) {
for (var i = 0, token; token = tokens[i++];) {
var node = DOC.createTextNode(token.expr) //将文本转换为文本节点,并替换原来的文本节点
if (token.type) {
token.expr = token.expr.replace(roneTime, function () {
Expand Down
8 changes: 4 additions & 4 deletions dist/avalon.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
http://weibo.com/jslouvre/
Released under the MIT license
avalon.js 1.5.3 built in 2015.10.4
avalon.js 1.5.3 built in 2015.10.9
support IE6+ and other browsers
==================================================*/
(function(global, factory) {
Expand Down Expand Up @@ -1128,7 +1128,7 @@ function observeObject(source, options) {
options = options || nullObject
var force = options.force || nullObject
var old = options.old
var oldAccessors = typeof old === "object" ? old.$accessors : nullObject
var oldAccessors = old && old.$accessors || nullObject
var $vmodel = new Component() //要返回的对象, 它在IE6-8下可能被偷龙转凤
var accessors = {} //监控属性
var hasOwn = {}
Expand Down Expand Up @@ -3316,10 +3316,10 @@ function scanExpr(str) {
}

function scanText(textNode, vmodels, index) {
var bindings = []
var bindings = [],
tokens = scanExpr(textNode.data)
if (tokens.length) {
for (var i = 0; token = tokens[i++];) {
for (var i = 0, token; token = tokens[i++];) {
var node = DOC.createTextNode(token.expr) //将文本转换为文本节点,并替换原来的文本节点
if (token.type) {
token.expr = token.expr.replace(roneTime, function () {
Expand Down
6 changes: 3 additions & 3 deletions dist/avalon.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 0cd99e4

Please sign in to comment.