Revert "Fix docs error"

This commit is contained in:
Isiah Meadows 2016-01-22 08:18:19 -05:00
parent f2540f3d04
commit a8eb0fb082

View file

@ -327,12 +327,12 @@ var ctrl = new TemperatureConverter.controller();
assert(ctrl.kelvinToCelsius(273.15) == 0) assert(ctrl.kelvinToCelsius(273.15) == 0)
//test the template //test the template
var tpl = TemperatureConverter.view(ctrl, {value: 273.15}) var tpl = TemperatureConverter.view(null, {value: 273.15})
assert(tpl.children[1] == 0) assert(tpl.children[1] == 0)
//test with real DOM //test with real DOM
var testRoot = document.createElement("div") var testRoot = document.createElement("div")
m.render(testRoot, TemperatureConverter.view(ctrl, {value: 273.15})) m.render(testRoot, TemperatureConverter.view(null, {value: 273.15}))
assert(testRoot.innerHTML.indexOf("celsius:0") > -1) assert(testRoot.innerHTML.indexOf("celsius:0") > -1)
``` ```
@ -603,3 +603,4 @@ where:
- **returns Component parameterizedComponent** - **returns Component parameterizedComponent**
A component with arguments bound A component with arguments bound