From 8846e9a1748e9a96f23ca6691e6f5a8797275313 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Sun, 22 Sep 2013 23:12:13 -0500 Subject: [PATCH] Created base view controller class --- js/ionic-viewcontroller.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/js/ionic-viewcontroller.js b/js/ionic-viewcontroller.js index 4237eee689..b98b26b4b6 100644 --- a/js/ionic-viewcontroller.js +++ b/js/ionic-viewcontroller.js @@ -1,13 +1,14 @@ -(function(window, document, ion) { - - ion.controllers = ion.controllers || {}; - - ion.controllers.ViewController = function(options) { +(function(ionic) { + ionic.ViewController = function(options) { + this.init(); }; - ion.controllers.ViewController.prototype = { + ion.ViewController.prototype = { + // Initialize this view controller + init: function() { + }, // Destroy this view controller, including all child views destroy: function() { } }; -})(this, document, ion = this.ion || {}); +})(this.ionic);