Browse Source

cleanup

dev
Evan You 9 years ago
parent
commit
551df9a3b3
  1. 12
      src/compiler/html-parser.js
  2. 8
      src/vdom/index.js

12
src/compiler/html-parser.js

@ -62,18 +62,6 @@ function makeAttrsMap (attrs) {
* http://erik.eae.net/simplehtmlparser/simplehtmlparser.js
*/
/*
* // Use like so:
* HTMLParser(htmlString, {
* start: function(tag, attrs, unary) {},
* end: function(tag) {},
* chars: function(text) {},
* comment: function(text) {}
* });
*/
/* global ActiveXObject, DOMDocument */
function makeMap(values) {
values = values.split(/,/)
var map = {}

8
src/vdom/index.js

@ -1,3 +1,9 @@
/**
* Virtual DOM implementation based on Snabbdom by
* Simon Friis Vindum (@paldepind)
* with custom modifications.
*/
import createPatchFunction from './patch'
import h from './h'
import _class from './modules/class'
@ -7,7 +13,7 @@ import attrs from './modules/attrs'
import events from './modules/events'
const patch = createPatchFunction([
_class, // makes it easy to toggle classes
_class,
props,
style,
attrs,

Loading…
Cancel
Save