Permalink
Browse files

update template

  • Loading branch information...
yiminghe committed Jan 10, 2012
1 parent f5379bc commit 00436e480a089c15fe00d034857bb25f7b715228
Showing with 7 additions and 7 deletions.
  1. +3 −3 build/template-min.js
  2. +3 −3 build/template.js
  3. +1 −1 src/template/base.js
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,7 +1,7 @@
/*
-Copyright 2011, KISSY UI Library v1.20
+Copyright 2012, KISSY UI Library v1.20
MIT Licensed
-build time: Dec 8 16:21
+build time: Jan 10 19:03
*/
/**
* @fileoverview KISSY Template Engine.
@@ -108,7 +108,7 @@ KISSY.add('template/base', function(S) {
// expression
Statements = {
'if': {
- start: 'if(' + KS_TEMPL_STAT_PARAM + '){',
+ start: 'if(typeof (' + KS_TEMPL_STAT_PARAM + ') !=="undefined" && ' + KS_TEMPL_STAT_PARAM + '){',
end: '}'
},
View
@@ -103,7 +103,7 @@ KISSY.add('template/base', function(S) {
// expression
Statements = {
'if': {
- start: 'if(' + KS_TEMPL_STAT_PARAM + '){',
+ start: 'if(typeof (' + KS_TEMPL_STAT_PARAM + ') !=="undefined" && ' + KS_TEMPL_STAT_PARAM + '){',
end: '}'
},

0 comments on commit 00436e4

Please sign in to comment.