
// ### Part of the [Rosy Framework](http://github.com/ff0000/rosy)
/* home.js */

// ## Local Namespace

// Home Page class

// Site-specifc namespace
var RuneScape = RuneScape || {};

// Page namespace
RuneScape.Module = RuneScape.Module || {};

// Home specific instance
RuneScape.Module.Graph = (function () {

 // Extends RuneScape.Page
 return RuneScape.Module.extend({

  vars : {
   api : "http://services.runescape.com/m=itemdb_rs/a=254/api/graph/"
  },

  // Home  page level functionality
  init : function (vars) {
   this.setDOMReferences();
   this.parseData();
  },

  setDOMReferences : function () {
   var graph = this.vars.graph;
  },

  parseData : function () {
   $.getJSON(this.vars.api + this.vars.graph.data("itemId") + ".json").then($.proxy(this.createTable, this));
  },

  createTable : function (json) {}
 });
}.call(RuneScape));

