Skip to content

Commit

Permalink
fix some typo error
Browse files Browse the repository at this point in the history
  • Loading branch information
leeluolee committed Sep 29, 2015
2 parents ef3b0a4 + 2181893 commit 787683f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion dist/regular-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1618,7 +1618,7 @@ return /******/ (function(modules) { // webpackBootstrap

//http://www.w3.org/html/wg/drafts/html/master/single-page.html#void-elements
_.isVoidTag = _.makePredicate("area base br col embed hr img input keygen link menuitem meta param source track wbr r-content");
_.isBooleanAttr = _.makePredicate('selected checked disabled readOnly required open autofocus controls autoplay compact loop defer multiple');
_.isBooleanAttr = _.makePredicate('selected checked disabled readonly required open autofocus controls autoplay compact loop defer multiple');

_.isFalse - function(){return false}
_.isTrue - function(){return true}
Expand Down
8 changes: 4 additions & 4 deletions dist/regular.js
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ Regular.implement({
if(computedProperty){
if(computedProperty.type==='expression' && !computedProperty.get) this._touchExpr(computedProperty);
if(computedProperty.get) return computedProperty.get(this);
else _.log("the computed '" + path + "' don't define the get function, get data."+path + " altnately", "error")
else _.log("the computed '" + path + "' don't define the get function, get data."+path + " altnately", "warn")
}
}
if(typeof defaults === "undefined" || typeof path == "undefined" ){
Expand Down Expand Up @@ -723,7 +723,7 @@ Regular.implement({
}
if(computedProperty) {
if(computedProperty.set) return computedProperty.set(this, value);
else _.log("the computed '" + path + "' don't define the set function, assign data."+path + " altnately", "error" )
else _.log("the computed '" + path + "' don't define the set function, assign data."+path + " altnately", "warn" )
}
data[path] = value;
return value;
Expand Down Expand Up @@ -1183,7 +1183,7 @@ _.log = function(msg, type){

//http://www.w3.org/html/wg/drafts/html/master/single-page.html#void-elements
_.isVoidTag = _.makePredicate("area base br col embed hr img input keygen link menuitem meta param source track wbr r-content");
_.isBooleanAttr = _.makePredicate('selected checked disabled readOnly required open autofocus controls autoplay compact loop defer multiple');
_.isBooleanAttr = _.makePredicate('selected checked disabled readonly required open autofocus controls autoplay compact loop defer multiple');

_.isFalse - function(){return false}
_.isTrue - function(){return true}
Expand Down Expand Up @@ -1499,7 +1499,7 @@ walkers.element = function(ast, options){
ref, group, element;

if( tag === 'r-content' ){
_.log('r-content is deprecated, use {#inc this.$body} instead (`{#include}` as same)', 'error');
_.log('r-content is deprecated, use {#inc this.$body} instead (`{#include}` as same)', 'warn');
return this.$body && this.$body();
}

Expand Down
2 changes: 1 addition & 1 deletion dist/regular.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/Regular.js
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ Regular.implement({
if(computedProperty){
if(computedProperty.type==='expression' && !computedProperty.get) this._touchExpr(computedProperty);
if(computedProperty.get) return computedProperty.get(this);
else _.log("the computed '" + path + "' don't define the get function, get data."+path + " altnately", "error")
else _.log("the computed '" + path + "' don't define the get function, get data."+path + " altnately", "warn")
}
}
if(typeof defaults === "undefined" || typeof path == "undefined" ){
Expand Down Expand Up @@ -512,7 +512,7 @@ Regular.implement({
}
if(computedProperty) {
if(computedProperty.set) return computedProperty.set(this, value);
else _.log("the computed '" + path + "' don't define the set function, assign data."+path + " altnately", "error" )
else _.log("the computed '" + path + "' don't define the set function, assign data."+path + " altnately", "warn" )
}
data[path] = value;
return value;
Expand Down
2 changes: 1 addition & 1 deletion src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ _.log = function(msg, type){

//http://www.w3.org/html/wg/drafts/html/master/single-page.html#void-elements
_.isVoidTag = _.makePredicate("area base br col embed hr img input keygen link menuitem meta param source track wbr r-content");
_.isBooleanAttr = _.makePredicate('selected checked disabled readOnly required open autofocus controls autoplay compact loop defer multiple');
_.isBooleanAttr = _.makePredicate('selected checked disabled readonly required open autofocus controls autoplay compact loop defer multiple');

_.isFalse - function(){return false}
_.isTrue - function(){return true}
Expand Down
2 changes: 1 addition & 1 deletion src/walkers.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ walkers.element = function(ast, options){
ref, group, element;

if( tag === 'r-content' ){
_.log('r-content is deprecated, use {#inc this.$body} instead (`{#include}` as same)', 'error');
_.log('r-content is deprecated, use {#inc this.$body} instead (`{#include}` as same)', 'warn');
return this.$body && this.$body();
}

Expand Down
8 changes: 4 additions & 4 deletions test/regular.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ Regular.implement({
if(computedProperty){
if(computedProperty.type==='expression' && !computedProperty.get) this._touchExpr(computedProperty);
if(computedProperty.get) return computedProperty.get(this);
else _.log("the computed '" + path + "' don't define the get function, get data."+path + " altnately", "error")
else _.log("the computed '" + path + "' don't define the get function, get data."+path + " altnately", "warn")
}
}
if(typeof defaults === "undefined" || typeof path == "undefined" ){
Expand Down Expand Up @@ -721,7 +721,7 @@ Regular.implement({
}
if(computedProperty) {
if(computedProperty.set) return computedProperty.set(this, value);
else _.log("the computed '" + path + "' don't define the set function, assign data."+path + " altnately", "error" )
else _.log("the computed '" + path + "' don't define the set function, assign data."+path + " altnately", "warn" )
}
data[path] = value;
return value;
Expand Down Expand Up @@ -1181,7 +1181,7 @@ _.log = function(msg, type){

//http://www.w3.org/html/wg/drafts/html/master/single-page.html#void-elements
_.isVoidTag = _.makePredicate("area base br col embed hr img input keygen link menuitem meta param source track wbr r-content");
_.isBooleanAttr = _.makePredicate('selected checked disabled readOnly required open autofocus controls autoplay compact loop defer multiple');
_.isBooleanAttr = _.makePredicate('selected checked disabled readonly required open autofocus controls autoplay compact loop defer multiple');

_.isFalse - function(){return false}
_.isTrue - function(){return true}
Expand Down Expand Up @@ -1497,7 +1497,7 @@ walkers.element = function(ast, options){
ref, group, element;

if( tag === 'r-content' ){
_.log('r-content is deprecated, use {#inc this.$body} instead (`{#include}` as same)', 'error');
_.log('r-content is deprecated, use {#inc this.$body} instead (`{#include}` as same)', 'warn');
return this.$body && this.$body();
}

Expand Down

0 comments on commit 787683f

Please sign in to comment.