Skip to content

Commit

Permalink
fix #62
Browse files Browse the repository at this point in the history
  • Loading branch information
leeluolee committed Dec 8, 2015
1 parent 1629974 commit 137f154
Show file tree
Hide file tree
Showing 7 changed files with 804 additions and 750 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ example
npm-debug.log
*/tmp/*
test/tmp/*
test/runner/*.js
test/runner/dom*
test/coverage/*
coverage*
out/*
Expand Down
4 changes: 3 additions & 1 deletion dist/regular.js
Original file line number Diff line number Diff line change
Expand Up @@ -2110,6 +2110,8 @@ return /******/ (function(modules) { // webpackBootstrap
var newList = getListFromValue( newValue, nType );
var oldList = getListFromValue( oldValue, oType );

var rawNewValue;


var nlen = newList && newList.length;
var olen = oldList && oldList.length;
Expand All @@ -2120,7 +2122,7 @@ return /******/ (function(modules) { // webpackBootstrap
if(altGroup.destroy) altGroup.destroy(true);
}

if( nType === 'object' ) var rawNewValue = newValue;
if( nType === 'object' ) rawNewValue = newValue;

if(track === true){
updateSimple( newList, oldList, rawNewValue );
Expand Down
2 changes: 1 addition & 1 deletion dist/regular.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ var karmaCommonConf = {
// source files, that you wanna generate coverage for
// do not include tests or libraries
// (these files will be instrumented by Istanbul)
'test/regular.js': ['coverage']
'src/**/*.js': ['coverage']
},

// optionally, configure the reporter
Expand Down
4 changes: 3 additions & 1 deletion src/walkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ walkers.list = function(ast, options){
var newList = getListFromValue( newValue, nType );
var oldList = getListFromValue( oldValue, oType );

var rawNewValue;


var nlen = newList && newList.length;
var olen = oldList && oldList.length;
Expand All @@ -172,7 +174,7 @@ walkers.list = function(ast, options){
if(altGroup.destroy) altGroup.destroy(true);
}

if( nType === 'object' ) var rawNewValue = newValue;
if( nType === 'object' ) rawNewValue = newValue;

if(track === true){
updateSimple( newList, oldList, rawNewValue );
Expand Down
Loading

0 comments on commit 137f154

Please sign in to comment.