Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Eugene Shen
todomvc
Commits
b403f0ff
Commit
b403f0ff
authored
Jan 21, 2016
by
Pascal Hartig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vanilla-es6: update build artifacts
parent
429dc9d1
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
34 deletions
+34
-34
examples/vanilla-es6/dist/bundle.js
examples/vanilla-es6/dist/bundle.js
+17
-17
examples/vanilla-es6/dist/controller.js
examples/vanilla-es6/dist/controller.js
+3
-3
examples/vanilla-es6/dist/model.js
examples/vanilla-es6/dist/model.js
+5
-5
examples/vanilla-es6/dist/store.js
examples/vanilla-es6/dist/store.js
+3
-3
examples/vanilla-es6/dist/template.js
examples/vanilla-es6/dist/template.js
+3
-3
examples/vanilla-es6/dist/view.js
examples/vanilla-es6/dist/view.js
+3
-3
No files found.
examples/vanilla-es6/dist/bundle.js
View file @
b403f0ff
...
@@ -60,7 +60,7 @@ $on(window, 'hashchange', setView);
...
@@ -60,7 +60,7 @@ $on(window, 'hashchange', setView);
},{
"
./controller
"
:
2
,
"
./helpers
"
:
3
,
"
./model
"
:
4
,
"
./store
"
:
5
,
"
./template
"
:
6
,
"
./view
"
:
7
}],
2
:[
function
(
require
,
module
,
exports
){
},{
"
./controller
"
:
2
,
"
./helpers
"
:
3
,
"
./model
"
:
4
,
"
./store
"
:
5
,
"
./template
"
:
6
,
"
./view
"
:
7
}],
2
:[
function
(
require
,
module
,
exports
){
'
use strict
'
;
'
use strict
'
;
var
_createClass
=
(
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
})
();
var
_createClass
=
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
}
();
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
value
:
true
...
@@ -68,7 +68,7 @@ Object.defineProperty(exports, "__esModule", {
...
@@ -68,7 +68,7 @@ Object.defineProperty(exports, "__esModule", {
function
_classCallCheck
(
instance
,
Constructor
)
{
if
(
!
(
instance
instanceof
Constructor
))
{
throw
new
TypeError
(
"
Cannot call a class as a function
"
);
}
}
function
_classCallCheck
(
instance
,
Constructor
)
{
if
(
!
(
instance
instanceof
Constructor
))
{
throw
new
TypeError
(
"
Cannot call a class as a function
"
);
}
}
var
Controller
=
(
function
()
{
var
Controller
=
function
()
{
/**
/**
* Take a model & view, then act as controller between them
* Take a model & view, then act as controller between them
* @param {object} model The model instance
* @param {object} model The model instance
...
@@ -422,7 +422,7 @@ var Controller = (function () {
...
@@ -422,7 +422,7 @@ var Controller = (function () {
}]);
}]);
return
Controller
;
return
Controller
;
}
)
();
}();
exports
.
default
=
Controller
;
exports
.
default
=
Controller
;
},{}],
3
:[
function
(
require
,
module
,
exports
){
},{}],
3
:[
function
(
require
,
module
,
exports
){
...
@@ -489,14 +489,14 @@ function $parent(element, tagName) {
...
@@ -489,14 +489,14 @@ function $parent(element, tagName) {
},{}],
4
:[
function
(
require
,
module
,
exports
){
},{}],
4
:[
function
(
require
,
module
,
exports
){
'
use strict
'
;
'
use strict
'
;
var
_createClass
=
(
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
})();
var
_typeof
=
typeof
Symbol
===
"
function
"
&&
typeof
Symbol
.
iterator
===
"
symbol
"
?
function
(
obj
)
{
return
typeof
obj
;
}
:
function
(
obj
)
{
return
obj
&&
typeof
Symbol
===
"
function
"
&&
obj
.
constructor
===
Symbol
?
"
symbol
"
:
typeof
obj
;
};
var
_createClass
=
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
}();
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
value
:
true
});
});
function
_typeof
(
obj
)
{
return
obj
&&
typeof
Symbol
!==
"
undefined
"
&&
obj
.
constructor
===
Symbol
?
"
symbol
"
:
typeof
obj
;
}
function
_classCallCheck
(
instance
,
Constructor
)
{
if
(
!
(
instance
instanceof
Constructor
))
{
throw
new
TypeError
(
"
Cannot call a class as a function
"
);
}
}
function
_classCallCheck
(
instance
,
Constructor
)
{
if
(
!
(
instance
instanceof
Constructor
))
{
throw
new
TypeError
(
"
Cannot call a class as a function
"
);
}
}
/**
/**
...
@@ -505,7 +505,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
...
@@ -505,7 +505,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
* @param {object} storage A reference to the client side storage class
* @param {object} storage A reference to the client side storage class
*/
*/
var
Model
=
(
function
()
{
var
Model
=
function
()
{
function
Model
(
storage
)
{
function
Model
(
storage
)
{
_classCallCheck
(
this
,
Model
);
_classCallCheck
(
this
,
Model
);
...
@@ -654,13 +654,13 @@ var Model = (function () {
...
@@ -654,13 +654,13 @@ var Model = (function () {
}]);
}]);
return
Model
;
return
Model
;
}
)
();
}();
exports
.
default
=
Model
;
exports
.
default
=
Model
;
},{}],
5
:[
function
(
require
,
module
,
exports
){
},{}],
5
:[
function
(
require
,
module
,
exports
){
"
use strict
"
;
"
use strict
"
;
var
_createClass
=
(
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
})
();
var
_createClass
=
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
}
();
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
value
:
true
...
@@ -679,7 +679,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
...
@@ -679,7 +679,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
* real life you probably would be making AJAX calls
* real life you probably would be making AJAX calls
*/
*/
var
Store
=
(
function
()
{
var
Store
=
function
()
{
function
Store
(
name
,
callback
)
{
function
Store
(
name
,
callback
)
{
_classCallCheck
(
this
,
Store
);
_classCallCheck
(
this
,
Store
);
...
@@ -832,13 +832,13 @@ var Store = (function () {
...
@@ -832,13 +832,13 @@ var Store = (function () {
}]);
}]);
return
Store
;
return
Store
;
}
)
();
}();
exports
.
default
=
Store
;
exports
.
default
=
Store
;
},{}],
6
:[
function
(
require
,
module
,
exports
){
},{}],
6
:[
function
(
require
,
module
,
exports
){
'
use strict
'
;
'
use strict
'
;
var
_createClass
=
(
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
})
();
var
_createClass
=
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
}
();
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
value
:
true
...
@@ -865,7 +865,7 @@ var escapeHtmlChar = function escapeHtmlChar(chr) {
...
@@ -865,7 +865,7 @@ var escapeHtmlChar = function escapeHtmlChar(chr) {
return
htmlEscapes
[
chr
];
return
htmlEscapes
[
chr
];
};
};
var
Template
=
(
function
()
{
var
Template
=
function
()
{
function
Template
()
{
function
Template
()
{
_classCallCheck
(
this
,
Template
);
_classCallCheck
(
this
,
Template
);
...
@@ -935,13 +935,13 @@ var Template = (function () {
...
@@ -935,13 +935,13 @@ var Template = (function () {
}]);
}]);
return
Template
;
return
Template
;
}
)
();
}();
exports
.
default
=
Template
;
exports
.
default
=
Template
;
},{}],
7
:[
function
(
require
,
module
,
exports
){
},{}],
7
:[
function
(
require
,
module
,
exports
){
'
use strict
'
;
'
use strict
'
;
var
_createClass
=
(
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
})
();
var
_createClass
=
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
}
();
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
value
:
true
...
@@ -1000,7 +1000,7 @@ var _editItem = function _editItem(id, title) {
...
@@ -1000,7 +1000,7 @@ var _editItem = function _editItem(id, title) {
* Renders the given command with the options
* Renders the given command with the options
*/
*/
var
View
=
(
function
()
{
var
View
=
function
()
{
function
View
(
template
)
{
function
View
(
template
)
{
var
_this
=
this
;
var
_this
=
this
;
...
@@ -1185,7 +1185,7 @@ var View = (function () {
...
@@ -1185,7 +1185,7 @@ var View = (function () {
}]);
}]);
return
View
;
return
View
;
}
)
();
}();
exports
.
default
=
View
;
exports
.
default
=
View
;
},{
"
./helpers
"
:
3
}]},{},[
1
]);
},{
"
./helpers
"
:
3
}]},{},[
1
]);
examples/vanilla-es6/dist/controller.js
View file @
b403f0ff
'
use strict
'
;
'
use strict
'
;
var
_createClass
=
(
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
})
();
var
_createClass
=
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
}
();
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
value
:
true
...
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
...
@@ -8,7 +8,7 @@ Object.defineProperty(exports, "__esModule", {
function
_classCallCheck
(
instance
,
Constructor
)
{
if
(
!
(
instance
instanceof
Constructor
))
{
throw
new
TypeError
(
"
Cannot call a class as a function
"
);
}
}
function
_classCallCheck
(
instance
,
Constructor
)
{
if
(
!
(
instance
instanceof
Constructor
))
{
throw
new
TypeError
(
"
Cannot call a class as a function
"
);
}
}
var
Controller
=
(
function
()
{
var
Controller
=
function
()
{
/**
/**
* Take a model & view, then act as controller between them
* Take a model & view, then act as controller between them
* @param {object} model The model instance
* @param {object} model The model instance
...
@@ -362,6 +362,6 @@ var Controller = (function () {
...
@@ -362,6 +362,6 @@ var Controller = (function () {
}]);
}]);
return
Controller
;
return
Controller
;
}
)
();
}();
exports
.
default
=
Controller
;
exports
.
default
=
Controller
;
\ No newline at end of file
examples/vanilla-es6/dist/model.js
View file @
b403f0ff
'
use strict
'
;
'
use strict
'
;
var
_createClass
=
(
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
})();
var
_typeof
=
typeof
Symbol
===
"
function
"
&&
typeof
Symbol
.
iterator
===
"
symbol
"
?
function
(
obj
)
{
return
typeof
obj
;
}
:
function
(
obj
)
{
return
obj
&&
typeof
Symbol
===
"
function
"
&&
obj
.
constructor
===
Symbol
?
"
symbol
"
:
typeof
obj
;
};
var
_createClass
=
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
}();
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
value
:
true
});
});
function
_typeof
(
obj
)
{
return
obj
&&
typeof
Symbol
!==
"
undefined
"
&&
obj
.
constructor
===
Symbol
?
"
symbol
"
:
typeof
obj
;
}
function
_classCallCheck
(
instance
,
Constructor
)
{
if
(
!
(
instance
instanceof
Constructor
))
{
throw
new
TypeError
(
"
Cannot call a class as a function
"
);
}
}
function
_classCallCheck
(
instance
,
Constructor
)
{
if
(
!
(
instance
instanceof
Constructor
))
{
throw
new
TypeError
(
"
Cannot call a class as a function
"
);
}
}
/**
/**
...
@@ -16,7 +16,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
...
@@ -16,7 +16,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
* @param {object} storage A reference to the client side storage class
* @param {object} storage A reference to the client side storage class
*/
*/
var
Model
=
(
function
()
{
var
Model
=
function
()
{
function
Model
(
storage
)
{
function
Model
(
storage
)
{
_classCallCheck
(
this
,
Model
);
_classCallCheck
(
this
,
Model
);
...
@@ -165,6 +165,6 @@ var Model = (function () {
...
@@ -165,6 +165,6 @@ var Model = (function () {
}]);
}]);
return
Model
;
return
Model
;
}
)
();
}();
exports
.
default
=
Model
;
exports
.
default
=
Model
;
\ No newline at end of file
examples/vanilla-es6/dist/store.js
View file @
b403f0ff
"
use strict
"
;
"
use strict
"
;
var
_createClass
=
(
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
})
();
var
_createClass
=
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
}
();
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
value
:
true
...
@@ -19,7 +19,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
...
@@ -19,7 +19,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
* real life you probably would be making AJAX calls
* real life you probably would be making AJAX calls
*/
*/
var
Store
=
(
function
()
{
var
Store
=
function
()
{
function
Store
(
name
,
callback
)
{
function
Store
(
name
,
callback
)
{
_classCallCheck
(
this
,
Store
);
_classCallCheck
(
this
,
Store
);
...
@@ -172,6 +172,6 @@ var Store = (function () {
...
@@ -172,6 +172,6 @@ var Store = (function () {
}]);
}]);
return
Store
;
return
Store
;
}
)
();
}();
exports
.
default
=
Store
;
exports
.
default
=
Store
;
\ No newline at end of file
examples/vanilla-es6/dist/template.js
View file @
b403f0ff
'
use strict
'
;
'
use strict
'
;
var
_createClass
=
(
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
})
();
var
_createClass
=
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
}
();
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
value
:
true
...
@@ -27,7 +27,7 @@ var escapeHtmlChar = function escapeHtmlChar(chr) {
...
@@ -27,7 +27,7 @@ var escapeHtmlChar = function escapeHtmlChar(chr) {
return
htmlEscapes
[
chr
];
return
htmlEscapes
[
chr
];
};
};
var
Template
=
(
function
()
{
var
Template
=
function
()
{
function
Template
()
{
function
Template
()
{
_classCallCheck
(
this
,
Template
);
_classCallCheck
(
this
,
Template
);
...
@@ -97,6 +97,6 @@ var Template = (function () {
...
@@ -97,6 +97,6 @@ var Template = (function () {
}]);
}]);
return
Template
;
return
Template
;
}
)
();
}();
exports
.
default
=
Template
;
exports
.
default
=
Template
;
\ No newline at end of file
examples/vanilla-es6/dist/view.js
View file @
b403f0ff
'
use strict
'
;
'
use strict
'
;
var
_createClass
=
(
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
})
();
var
_createClass
=
function
()
{
function
defineProperties
(
target
,
props
)
{
for
(
var
i
=
0
;
i
<
props
.
length
;
i
++
)
{
var
descriptor
=
props
[
i
];
descriptor
.
enumerable
=
descriptor
.
enumerable
||
false
;
descriptor
.
configurable
=
true
;
if
(
"
value
"
in
descriptor
)
descriptor
.
writable
=
true
;
Object
.
defineProperty
(
target
,
descriptor
.
key
,
descriptor
);
}
}
return
function
(
Constructor
,
protoProps
,
staticProps
)
{
if
(
protoProps
)
defineProperties
(
Constructor
.
prototype
,
protoProps
);
if
(
staticProps
)
defineProperties
(
Constructor
,
staticProps
);
return
Constructor
;
};
}
();
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
Object
.
defineProperty
(
exports
,
"
__esModule
"
,
{
value
:
true
value
:
true
...
@@ -59,7 +59,7 @@ var _editItem = function _editItem(id, title) {
...
@@ -59,7 +59,7 @@ var _editItem = function _editItem(id, title) {
* Renders the given command with the options
* Renders the given command with the options
*/
*/
var
View
=
(
function
()
{
var
View
=
function
()
{
function
View
(
template
)
{
function
View
(
template
)
{
var
_this
=
this
;
var
_this
=
this
;
...
@@ -244,6 +244,6 @@ var View = (function () {
...
@@ -244,6 +244,6 @@ var View = (function () {
}]);
}]);
return
View
;
return
View
;
}
)
();
}();
exports
.
default
=
View
;
exports
.
default
=
View
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment