mcongrove / ChariTi

Please do not use: this is out-dated
Other
113 stars 85 forks source link

SlideMenu crashes if no menu headers #197

Closed mcongrove closed 10 years ago

mcongrove commented 10 years ago

If there are no menu headers present, the SlideMenu will die:

Script Error {
    backtrace = "#0 () at file:///Users/matthewcongrove/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/99D16CC8-AE82-4426-ABA4-44AFC003F782/ChariTi.app/core.js:163\n#1 () at file:///Users/matthewcongrove/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/99D16CC8-AE82-4426-ABA4-44AFC003F782/ChariTi.app/core.js:148\n#2 () at file:///Users/matthewcongrove/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/99D16CC8-AE82-4426-ABA4-44AFC003F782/ChariTi.app/core.js:70\n#3 () at file:///Users/matthewcongrove/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/99D16CC8-AE82-4426-ABA4-44AFC003F782/ChariTi.app/alloy/controllers/peek.js:153\n#4 () at file:///Users/matthewcongrove/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/99D16CC8-AE82-4426-ABA4-44AFC003F782/ChariTi.app/update.js:81\n#5 () at file:///Users/matthewcongrove/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/99D16CC8-AE82-4426-ABA4-44AFC003F782/ChariTi.app/http.js:22";
    line = 109;
    message = "'undefined' is not an object (evaluating 'sections[currentSection].add')";
    name = TypeError;
    sourceId = 307605408;
    sourceURL = "file:///Users/matthewcongrove/Library/Application%20Support/iPhone%20Simulator/7.0.3/Applications/99D16CC8-AE82-4426-ABA4-44AFC003F782/ChariTi.app/alloy/widgets/com.chariti.slideMenu/controllers/widget.js";
}