Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Updated sample setting to be more useful and made indentations consis…

…tent.
  • Loading branch information...
commit fb3074a930b0c284af5de439f0b53abcb372e06c 1 parent 3cc4b8d
Shaun Crittenden authored February 29, 2012

Showing 1 changed file with 7 additions and 7 deletions. Show diff stats Hide diff stats

  1. 14  object.js
14  object.js
@@ -7,7 +7,7 @@ function TheObject(args){
7 7
 	
8 8
 	// Settings
9 9
 	this.settings = {
10  
-	    message : 'ouch!'
  10
+		message : 'settings.message from object instance ' + this.identifier
11 11
 	};
12 12
 	
13 13
 	this._init();
@@ -22,18 +22,18 @@ TheObject.prototype._events = function(){
22 22
 	var self = this;
23 23
 	
24 24
 	this.instance.click(function(){
25  
-	    self._.log(self.settings.message); // Sample use of settings.
  25
+		self._.log(self.settings.message); // Sample use of settings.
26 26
 	});
27 27
 };
28 28
 
29 29
 // Additional methods
30 30
 
31 31
 TheObject.prototype._ = { // Utility functions
32  
-    log : function(msg){
33  
-        if (typeof window.console.log === 'function'){
34  
-            console.log(msg);
35  
-        }
36  
-    }
  32
+	log : function(msg){
  33
+		if (typeof window.console.log === 'function'){
  34
+			console.log(msg);
  35
+		}
  36
+	}
37 37
 };
38 38
 
39 39
 $(function(){

0 notes on commit fb3074a

Please sign in to comment.
Something went wrong with that request. Please try again.