From b512cc7ee98078ad570a5e9bb51010e16a37be0c Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 13 Jan 2013 15:51:54 +0000 Subject: [PATCH] web underscorised [#81] --- modules/web/web.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/web/web.js b/modules/web/web.js index 234bfa3..b3e632b 100644 --- a/modules/web/web.js +++ b/modules/web/web.js @@ -1,4 +1,5 @@ var express = require('express'), + _ = require('underscore')._, fs = require('fs'); var webInterface = function(dbot) { @@ -16,7 +17,7 @@ var webInterface = function(dbot) { var reloadPages = function(pages) { for(var p in pages) { - if( pages.hasOwnProperty(p) ) { + if(_.has(pages, p)) { var func = pages[p]; var mod = func.module; app.get(p, (function(req, resp) {