vue-server
Advanced tools
Comparing version 0.4.0-beta.6 to 0.4.0-beta.7
{ | ||
"name": "vue-server", | ||
"version": "0.4.0-beta.6", | ||
"version": "0.4.0-beta.7", | ||
"description": "Vue.js server side version", | ||
@@ -11,3 +11,2 @@ "main": "index.js", | ||
"dependencies": { | ||
"colors": "^1.1.2", | ||
"html-entities": "^1.1.2", | ||
@@ -14,0 +13,0 @@ "htmlparser2": "^3.8.3", |
@@ -257,12 +257,8 @@ var Path = require('./../parsers/path'); | ||
if (options.partials) { | ||
for (var name in options.partials) { | ||
(function () { | ||
options.partials[name] = common.prepareTemplate( | ||
options.partials[name], | ||
'Partial "' + name + '"' | ||
); | ||
})(); | ||
options.partials[name] = common.prepareTemplate( | ||
options.partials[name], | ||
'Partial "' + name + '"' | ||
); | ||
} | ||
} | ||
@@ -269,0 +265,0 @@ |
@@ -26,2 +26,10 @@ var _ = require('underscore'); | ||
// Precompiling global partials | ||
for (var name in this._partials) { | ||
this._partials[name] = common.prepareTemplate( | ||
this._partials[name], | ||
'Partial "' + name + '"' | ||
); | ||
} | ||
common.$logger = that.logger; | ||
@@ -82,3 +90,3 @@ scope.$logger = that.logger; | ||
VueRoot.prototype.component = function (id, component) { | ||
VueRoot.component = function (id, component) { | ||
if (!component) { | ||
@@ -94,3 +102,3 @@ this.logger.debug('global component\'s content is empty: "' + id + '"'); | ||
VueRoot.prototype.filter = function (id, filter) { | ||
VueRoot.filter = function (id, filter) { | ||
if (!filter) { | ||
@@ -106,3 +114,3 @@ this.logger.debug('global filter\'s content is empty: "' + id + '"'); | ||
VueRoot.prototype.partial = function (id, partial) { | ||
VueRoot.partial = function (id, partial) { | ||
if (!partial) { | ||
@@ -118,2 +126,10 @@ this.logger.debug('global partial\'s content is empty: "' + id + '"'); | ||
Object.defineProperty(VueRoot, 'mixin', { | ||
get: function () { | ||
return this.prototype.mixin; | ||
}, | ||
set: function (val) { | ||
this.prototype.mixin = val; | ||
} | ||
}); | ||
@@ -179,11 +195,2 @@ // Check for VM ready | ||
Object.defineProperty(VueRoot, 'mixin', { | ||
get: function () { | ||
return this.prototype.mixin; | ||
}, | ||
set: function (val) { | ||
this.prototype.mixin = val; | ||
} | ||
}); | ||
VueRoot.prototype._logger = logger; | ||
@@ -190,0 +197,0 @@ |
@@ -1,3 +0,1 @@ | ||
var colors = require('colors'); | ||
var toString = ({}).toString, | ||
@@ -4,0 +2,0 @@ def = Object.defineProperty, |
350455
4
77
9795
- Removedcolors@^1.1.2
- Removedcolors@1.4.0(transitive)