// Provide a default path to dwr.engine if (dwr == null) var dwr = {}; if (dwr.engine == null) dwr.engine = {}; if (DWREngine == null) var DWREngine = dwr.engine; if (newsShortModel == null) var newsShortModel = {}; newsShortModel._path = '/newsShort/dwr'; newsShortModel.getLatestNews = function(callback) { dwr.engine._execute(newsShortModel._path, 'newsShortModel', 'getLatestNews', callback); } newsShortModel.getNewById = function(p0, callback) { dwr.engine._execute(newsShortModel._path, 'newsShortModel', 'getNewById', p0, callback); } newsShortModel.getPastNews = function(callback) { dwr.engine._execute(newsShortModel._path, 'newsShortModel', 'getPastNews', callback); } newsShortModel.getUpcomingNews = function(callback) { dwr.engine._execute(newsShortModel._path, 'newsShortModel', 'getUpcomingNews', callback); }