new api fixed

This commit is contained in:
Evan You 2013-08-15 11:47:05 -04:00
parent c98c8a68cb
commit dddb255074
4 changed files with 4 additions and 6 deletions

View File

@ -3,7 +3,7 @@
<head>
<title></title>
<meta charset="utf-8">
<script src="dist/seed.js"></script>
<script src="../dist/seed.js"></script>
</head>
<body>
<div sd-template="todo" sd-text="hi" sd-on="click:hello"></div>

View File

@ -1,4 +1,4 @@
Seed.config({ debug: true })
Seed.config({ debug: false })
var filters = {
all: function () { return true },

View File

@ -257,7 +257,7 @@ CompilerProto.bindContexts = function (bindings) {
* Unbind and remove element
*/
CompilerProto.destroy = function () {
console.log('compiler destroyed: ', this.vm.$el)
utils.log('compiler destroyed: ', this.vm.$el)
var i, key, dir, listener, inss
// remove all directives that are instances of external bindings
i = this.directives.length

View File

@ -3,9 +3,7 @@ var config = require('./config'),
toString = Object.prototype.toString,
aproto = Array.prototype,
arrayMutators = ['push','pop','shift','unshift','splice','sort','reverse'],
templates = {},
indentation = 0,
indent = ''
templates = {}
var arrayAugmentations = {
remove: function (index) {