Skip to content

Commit

Permalink
Release-v0.7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan You committed Jan 10, 2014
1 parent 212990a commit 8c7ee32
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 39 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue",
"version": "0.7.3",
"version": "0.7.4",
"main": "dist/vue.js",
"description": "Simple, Fast & Composable MVVM for building interative interfaces",
"authors": ["Evan You <yyx990803@gmail.com>"],
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue",
"version": "0.7.3",
"version": "0.7.4",
"main": "src/main.js",
"author": "Evan You <yyx990803@gmail.com>",
"description": "Simple, Fast & Composable MVVM for building interative interfaces",
Expand Down
68 changes: 34 additions & 34 deletions dist/vue.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
VueJS v0.7.3
VueJS v0.7.4
(c) 2014 Evan You
License: MIT
*/
Expand Down Expand Up @@ -2265,7 +2265,9 @@ module.exports = Directive
});
require.register("vue/src/exp-parser.js", function(exports, require, module){
var utils = require('./utils'),
hasOwn = Object.prototype.hasOwnProperty
hasOwn = Object.prototype.hasOwnProperty,
stringSaveRE = /"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'/g,
stringRestoreRE = /"(\d+)"/g

// Variable extraction scooped from https://github.com/RubyLouvre/avalon

Expand Down Expand Up @@ -2388,6 +2390,8 @@ module.exports = {
}
vars = utils.unique(vars)
var accessors = '',
has = utils.hash(),
strings = [],
// construct a regex to extract all valid variable paths
// ones that begin with "$" are particularly tricky
// because we can't use \b for them
Expand All @@ -2396,16 +2400,35 @@ module.exports = {
vars.map(escapeDollar).join('|') +
")[$\\w\\.]*\\b", 'g'
),
body = ('return ' + exp).replace(pathRE, function (path) {
// keep track of the first char
var c = path.charAt(0)
path = path.slice(1)
var val = 'this.' + getRel(path, compiler) + path
accessors += val + ';'
// don't forget to put that first char back
return c + val
})
body = ('return ' + exp)
.replace(stringSaveRE, saveStrings)
.replace(pathRE, replacePath)
.replace(stringRestoreRE, restoreStrings)
body = accessors + body

function saveStrings (str) {
var i = strings.length
strings[i] = str
return '"' + i + '"'
}

function replacePath (path) {
// keep track of the first char
var c = path.charAt(0)
path = path.slice(1)
var val = 'this.' + getRel(path, compiler) + path
if (!has[path]) {
accessors += val + ';'
has[path] = 1
}
// don't forget to put that first char back
return c + val
}

function restoreStrings (str, i) {
return strings[i]
}

return makeGetter(body, exp)
}
}
Expand Down Expand Up @@ -2808,10 +2831,6 @@ module.exports = {
this.el.innerHTML = utils.toText(value)
},

visible: function (value) {
this.el.style.visibility = value ? '' : 'hidden'
},

show: function (value) {
var el = this.el,
target = value ? '' : 'none',
Expand All @@ -2833,27 +2852,8 @@ module.exports = {
this.lastVal = value
}
}
},

style: {
bind: function () {
this.arg = convertCSSProperty(this.arg)
},
update: function (value) {
this.el.style[this.arg] = value
}
}
}

/**
* convert hyphen style CSS property to Camel style
*/
var CONVERT_RE = /-(.)/g
function convertCSSProperty (prop) {
if (prop.charAt(0) === '-') prop = prop.slice(1)
return prop.replace(CONVERT_RE, function (m, char) {
return char.toUpperCase()
})
}
});
require.register("vue/src/directives/if.js", function(exports, require, module){
Expand Down
4 changes: 2 additions & 2 deletions dist/vue.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue",
"version": "0.7.3",
"version": "0.7.4",
"author": {
"name": "Evan You",
"email": "yyx990803@gmail.com",
Expand Down

0 comments on commit 8c7ee32

Please sign in to comment.