Merge branch 'next' of https://github.com/impinball/mithril.js into speed
(Update topic branch)
This commit is contained in:
commit
565f9cf334
7 changed files with 852 additions and 131 deletions
|
|
@ -1197,6 +1197,9 @@ var m = (function app(window, undefined) {
|
|||
var controller = function() {
|
||||
return (component.controller || noop).apply(this, args) || this
|
||||
}
|
||||
if (component.controller) {
|
||||
controller.prototype = component.controller.prototype
|
||||
}
|
||||
var view = function(ctrl) {
|
||||
for (var i = 1; i < arguments.length; i++) {
|
||||
args.push(arguments[i])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue