Skip to content

Commit

Permalink
没有必要就不要转换了
Browse files Browse the repository at this point in the history
  • Loading branch information
RubyLouvre committed Nov 20, 2014
1 parent 40f7463 commit 26b7723
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 55 deletions.
3 changes: 1 addition & 2 deletions avalon.js
Original file line number Diff line number Diff line change
Expand Up @@ -1874,7 +1874,6 @@
var c = ronduplex.test(data.type) ? data : fn.apply(0, data.args)
data.handler(c, data.element, data)
} catch (e) {
console.log(fn + "")
log("warning:exception throwed in [registerSubscriber] " + e)
delete data.evaluator
var node = data.element
Expand Down Expand Up @@ -2465,7 +2464,7 @@
if (!assigns.length && dataType === "duplex") {
return
}
if (dataType !== "duplex") {
if (dataType !== "duplex" && (code.indexOf("||") > -1 || code.indexOf("&&") > -1)) {
//https://github.com/RubyLouvre/avalon/issues/583
data.vars.forEach(function(v) {
var reg = new RegExp("\\b" + v + "(?:\\.\\w+|\\[\\w+\\])+", "ig")
Expand Down
Loading

0 comments on commit 26b7723

Please sign in to comment.