<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -11,3 +11,7 @@ File.open(&quot;#{directory}/../#{filename}&quot;, &quot;w&quot;) do |file|
     file &lt;&lt; JsminImproved.jsmin(File.read(filename))
   end
 end
+
+puts &quot;building documentation&quot;
+
+`rm -rf #{directory}/../docs &amp;&amp; cd #{directory}/jsdoc-toolkit &amp;&amp; java -jar jsrun.jar app/run.js -t=templates/jsdoc -d=../../docs/ ../../src/`</diff>
      <filename>build_tools/build.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,6 @@
 #!/usr/bin/ruby
 
-puts `rm -rf ../docs &amp;&amp; cd jsdoc-toolkit &amp;&amp; java -jar jsrun.jar app/run.js -t=templates/jsdoc -d=../../docs/ ../../src/`
+directory = File.dirname(__FILE__)
+puts &quot;rm -rf #{directory}/../docs &amp;&amp; cd #{directory}/jsdoc-toolkit &amp;&amp; java -jar jsrun.jar app/run.js -t=templates/jsdoc -d=../../docs/ ../../src/&quot;
+
+puts `rm -rf #{directory}/../docs &amp;&amp; cd #{directory}/jsdoc-toolkit &amp;&amp; java -jar jsrun.jar app/run.js -t=templates/jsdoc -d=../../docs/ ../../src/`</diff>
      <filename>build_tools/create_documentation.rb</filename>
    </modified>
    <modified>
      <diff>@@ -281,7 +281,7 @@ It all starts with the Model.
 		&lt;/div&gt;
 		&lt;div class=&quot;fineprint&quot; style=&quot;clear:both&quot;&gt;
 			
-			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blankt&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sat Mar 14 2009 19:21:44 GMT-0400 (EDT)
+			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blankt&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sun Mar 15 2009 12:24:47 GMT-0400 (EDT)
 		&lt;/div&gt;
 	&lt;/body&gt;
 &lt;/html&gt;
\ No newline at end of file</diff>
      <filename>docs/files.html</filename>
    </modified>
    <modified>
      <diff>@@ -268,7 +268,7 @@ ul.inheritsList
 		&lt;/div&gt;
 		&lt;div class=&quot;fineprint&quot; style=&quot;clear:both&quot;&gt;
 			
-			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blankt&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sat Mar 14 2009 19:21:44 GMT-0400 (EDT)
+			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blankt&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sun Mar 15 2009 12:24:47 GMT-0400 (EDT)
 		&lt;/div&gt;
 	&lt;/body&gt;
 &lt;/html&gt;
\ No newline at end of file</diff>
      <filename>docs/index.html</filename>
    </modified>
    <modified>
      <diff>@@ -317,7 +317,7 @@ ul.inheritsList
 &lt;!-- ============================== footer ================================= --&gt;
 		&lt;div class=&quot;fineprint&quot; style=&quot;clear:both&quot;&gt;
 			
-			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sat Mar 14 2009 19:21:44 GMT-0400 (EDT)
+			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sun Mar 15 2009 12:24:47 GMT-0400 (EDT)
 		&lt;/div&gt;
 	&lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>docs/symbols/JsController.html</filename>
    </modified>
    <modified>
      <diff>@@ -695,7 +695,7 @@ ul.inheritsList
 &lt;!-- ============================== footer ================================= --&gt;
 		&lt;div class=&quot;fineprint&quot; style=&quot;clear:both&quot;&gt;
 			
-			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sat Mar 14 2009 19:21:44 GMT-0400 (EDT)
+			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sun Mar 15 2009 12:24:47 GMT-0400 (EDT)
 		&lt;/div&gt;
 	&lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>docs/symbols/JsModel#instance.html</filename>
    </modified>
    <modified>
      <diff>@@ -1187,7 +1187,7 @@ ul.inheritsList
 &lt;!-- ============================== footer ================================= --&gt;
 		&lt;div class=&quot;fineprint&quot; style=&quot;clear:both&quot;&gt;
 			
-			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sat Mar 14 2009 19:21:44 GMT-0400 (EDT)
+			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sun Mar 15 2009 12:24:47 GMT-0400 (EDT)
 		&lt;/div&gt;
 	&lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>docs/symbols/JsModel.html</filename>
    </modified>
    <modified>
      <diff>@@ -665,7 +665,7 @@ ul.inheritsList
 &lt;!-- ============================== footer ================================= --&gt;
 		&lt;div class=&quot;fineprint&quot; style=&quot;clear:both&quot;&gt;
 			
-			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sat Mar 14 2009 19:21:44 GMT-0400 (EDT)
+			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sun Mar 15 2009 12:24:47 GMT-0400 (EDT)
 		&lt;/div&gt;
 	&lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>docs/symbols/JsView.html</filename>
    </modified>
    <modified>
      <diff>@@ -410,7 +410,11 @@ ul.inheritsList
 					&lt;/div&gt;
 					&lt;div class=&quot;description&quot;&gt;
 						Controllers allow some decently powerful hooks. You can specify a model, and an
-        onAfterCreate, onInstanceChange, onInstanceDestroy, onInstanceCreate
+        onInstanceChange, onInstanceDestroy, onInstanceCreate.
+        
+        If your controller listens to a model, but you are not dependent on real-time updates,
+        you can add the option &quot;looselyCoupled: true&quot; and all updates will be done with
+        setTimeout, which will be a performance enhancement.
 						
 						
 					&lt;/div&gt;
@@ -418,6 +422,7 @@ ul.inheritsList
 					
 					
 					&lt;pre class=&quot;code&quot;&gt;          MBX.DesktopUploadController = MBX.JsController.create(&quot;DesktopUpload&quot;, {
+              looselyCoupled: false, // false is the default
               ANewMethod: function (something) {
                   return something;
               }
@@ -561,7 +566,7 @@ ul.inheritsList
 &lt;!-- ============================== footer ================================= --&gt;
 		&lt;div class=&quot;fineprint&quot; style=&quot;clear:both&quot;&gt;
 			
-			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sat Mar 14 2009 19:21:44 GMT-0400 (EDT)
+			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sun Mar 15 2009 12:24:47 GMT-0400 (EDT)
 		&lt;/div&gt;
 	&lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>docs/symbols/MBX.JsController.html</filename>
    </modified>
    <modified>
      <diff>@@ -522,7 +522,7 @@ ul.inheritsList
 &lt;!-- ============================== footer ================================= --&gt;
 		&lt;div class=&quot;fineprint&quot; style=&quot;clear:both&quot;&gt;
 			
-			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sat Mar 14 2009 19:21:44 GMT-0400 (EDT)
+			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sun Mar 15 2009 12:24:47 GMT-0400 (EDT)
 		&lt;/div&gt;
 	&lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>docs/symbols/MBX.JsModel.html</filename>
    </modified>
    <modified>
      <diff>@@ -439,7 +439,11 @@ ul.inheritsList
 					&lt;/div&gt;
 					&lt;div class=&quot;description&quot;&gt;
 						create a new view handler... specify a model and some
-        functions and some great magic happens
+        functions and some great magic happens.
+        
+        If your view listens to a model, but you are not dependent on real-time updates,
+        you can add the option &quot;looselyCoupled: true&quot; and all updates will be done with
+        setTimeout, which will be a performance enhancement.
 						
 						
 					&lt;/div&gt;
@@ -448,6 +452,7 @@ ul.inheritsList
 					
 					&lt;pre class=&quot;code&quot;&gt;            MBX.JsView.create({
                 model: MBX.DesktopUpload,
+                looselyCoupled: false, // false is the default
                 onCreate: function (upload) {
                     //create the upload
                 },
@@ -763,7 +768,7 @@ ul.inheritsList
 &lt;!-- ============================== footer ================================= --&gt;
 		&lt;div class=&quot;fineprint&quot; style=&quot;clear:both&quot;&gt;
 			
-			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sat Mar 14 2009 19:21:44 GMT-0400 (EDT)
+			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sun Mar 15 2009 12:24:47 GMT-0400 (EDT)
 		&lt;/div&gt;
 	&lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>docs/symbols/MBX.JsView.html</filename>
    </modified>
    <modified>
      <diff>@@ -578,7 +578,7 @@ ul.inheritsList
 &lt;!-- ============================== footer ================================= --&gt;
 		&lt;div class=&quot;fineprint&quot; style=&quot;clear:both&quot;&gt;
 			
-			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sat Mar 14 2009 19:21:44 GMT-0400 (EDT)
+			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sun Mar 15 2009 12:24:47 GMT-0400 (EDT)
 		&lt;/div&gt;
 	&lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>docs/symbols/MBX.Queue.html</filename>
    </modified>
    <modified>
      <diff>@@ -258,7 +258,7 @@ ul.inheritsList
 &lt;!-- ============================== footer ================================= --&gt;
 		&lt;div class=&quot;fineprint&quot; style=&quot;clear:both&quot;&gt;
 			
-			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sat Mar 14 2009 19:21:44 GMT-0400 (EDT)
+			Documentation generated by &lt;a href=&quot;http://www.jsdoctoolkit.org/&quot; target=&quot;_blank&quot;&gt;JsDoc Toolkit&lt;/a&gt; 2.1.0 on Sun Mar 15 2009 12:24:47 GMT-0400 (EDT)
 		&lt;/div&gt;
 	&lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>docs/symbols/_global_.html</filename>
    </modified>
    <modified>
      <diff>@@ -135,107 +135,113 @@
 &lt;span class='line'&gt;128&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;newEvent&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.model.Event.newInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
 &lt;span class='line'&gt;129&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;destroyEvent&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.model.Event.destroyInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
 &lt;span class='line'&gt;130&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;attributeEvent&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.model.Event.changeAttribute&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;131&lt;/span&gt; 
-&lt;span class='line'&gt;132&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;133&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;changeEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onInstanceChange.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;134&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;newEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onInstanceCreate.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;135&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;destroyEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onInstanceDestroy.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;136&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;attributeEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onAttributeChange.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;137&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;138&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
-&lt;span class='line'&gt;139&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/**
-&lt;span class='line'&gt;140&lt;/span&gt;             @private
-&lt;span class='line'&gt;141&lt;/span&gt;             @requires MBX.JsModel
-&lt;span class='line'&gt;142&lt;/span&gt;             @requires this.model
-&lt;span class='line'&gt;143&lt;/span&gt;         */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;144&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;_unsubscribeToEvents&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;145&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;&amp;&amp;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;NUMB&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;                
-&lt;span class='line'&gt;146&lt;/span&gt;                 &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.each&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;subscription&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;147&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;                    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.unsubscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;subscription&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;148&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;                &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;149&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;150&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;151&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;152&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
-&lt;span class='line'&gt;153&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/**
-&lt;span class='line'&gt;154&lt;/span&gt;         This is mostly used internally and is fired on MBX everytime a controller is created
-&lt;span class='line'&gt;155&lt;/span&gt;         @memberOf MBX.JsController
-&lt;span class='line'&gt;156&lt;/span&gt;         @name MBX.JsController.Event
-&lt;span class='line'&gt;157&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;158&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;publicObj.Event&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;159&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;newController&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;new_controller&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;160&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;afterRender&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;render_finished&quot;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;161&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;162&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
-&lt;span class='line'&gt;163&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/**
-&lt;span class='line'&gt;164&lt;/span&gt;         call extend() to add methods and/or attributes to ALL controllers
-&lt;span class='line'&gt;165&lt;/span&gt;         @param {Object} methsAndAttrs
-&lt;span class='line'&gt;166&lt;/span&gt;         @name MBX.JsController.extend
-&lt;span class='line'&gt;167&lt;/span&gt;         @function
-&lt;span class='line'&gt;168&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;169&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;publicObj.extend&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;170&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;171&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;Object.extend&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;JsController.prototype&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;172&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;173&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
-&lt;span class='line'&gt;174&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/**
-&lt;span class='line'&gt;175&lt;/span&gt;         Controllers allow some decently powerful hooks. You can specify a model, and an
-&lt;span class='line'&gt;176&lt;/span&gt;         onAfterCreate, onInstanceChange, onInstanceDestroy, onInstanceCreate
-&lt;span class='line'&gt;177&lt;/span&gt;           
-&lt;span class='line'&gt;178&lt;/span&gt;         @name MBX.JsController.create
-&lt;span class='line'&gt;179&lt;/span&gt;         @param {String} name the name of the controller
-&lt;span class='line'&gt;180&lt;/span&gt;         @param {Object} opts used to extend the controller methods at instantiation
-&lt;span class='line'&gt;181&lt;/span&gt;         @see JsController
-&lt;span class='line'&gt;182&lt;/span&gt;         @function
-&lt;span class='line'&gt;183&lt;/span&gt;         @example
-&lt;span class='line'&gt;184&lt;/span&gt;           MBX.DesktopUploadController = MBX.JsController.create(&quot;DesktopUpload&quot;, {
-&lt;span class='line'&gt;185&lt;/span&gt;               ANewMethod: function (something) {
-&lt;span class='line'&gt;186&lt;/span&gt;                   return something;
-&lt;span class='line'&gt;187&lt;/span&gt;               }
-&lt;span class='line'&gt;188&lt;/span&gt;           })
-&lt;span class='line'&gt;189&lt;/span&gt;           MBX.DesktopUpload.ANewMethod(&quot;boo&quot;) == &quot;boo&quot;;
-&lt;span class='line'&gt;190&lt;/span&gt;         @example
-&lt;span class='line'&gt;191&lt;/span&gt;           MBX.DesktopUploadController = MBX.JsController.create(&quot;DesktopUpload&quot;, {
-&lt;span class='line'&gt;192&lt;/span&gt;               model: MBX.DesktopUpload,
-&lt;span class='line'&gt;193&lt;/span&gt;               onInstanceCreate: function (instance) {
-&lt;span class='line'&gt;194&lt;/span&gt;                   alert(instance.get('greeting'));
-&lt;span class='line'&gt;195&lt;/span&gt;               }              
-&lt;span class='line'&gt;196&lt;/span&gt;           });
-&lt;span class='line'&gt;197&lt;/span&gt;           MBX.DesktopUpload.create({ greeting: 'hi' });  // will alert('hi');
-&lt;span class='line'&gt;198&lt;/span&gt;         @example
-&lt;span class='line'&gt;199&lt;/span&gt;           MBX.DesktopUploadController = MBX.JsController.create(&quot;DesktopUpload&quot;, {
-&lt;span class='line'&gt;200&lt;/span&gt;               model: MBX.DesktopUpload,
-&lt;span class='line'&gt;201&lt;/span&gt;               onInstanceChange: function (instance) {
-&lt;span class='line'&gt;202&lt;/span&gt;                   alert(instance.get('greeting'));
-&lt;span class='line'&gt;203&lt;/span&gt;               }              
-&lt;span class='line'&gt;204&lt;/span&gt;           });
-&lt;span class='line'&gt;205&lt;/span&gt;           var instance = MBX.DesktopUpload.create();
-&lt;span class='line'&gt;206&lt;/span&gt;           instance.set('greeting', 'hi');  // will alert('hi')
-&lt;span class='line'&gt;207&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;208&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;publicObj.create&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;209&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controllerCache&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;210&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;throw&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;Error&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;A controller with the name of &quot;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot; is already in use&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;211&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;212&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controller&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;JsController&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;213&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;typeof&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controller.afterCreate&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;function&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;214&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controller.afterCreate&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;215&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;216&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controller&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;217&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;218&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
-&lt;span class='line'&gt;219&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/**
-&lt;span class='line'&gt;220&lt;/span&gt;         Destroy a controller and unsubscribe its event listeners
-&lt;span class='line'&gt;221&lt;/span&gt;         @param {String} name the name of the controller
-&lt;span class='line'&gt;222&lt;/span&gt;         @name MBX.JsController.destroyController
-&lt;span class='line'&gt;223&lt;/span&gt;         @function
-&lt;span class='line'&gt;224&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;225&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;publicObj.destroyController&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;226&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controllerCache&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;227&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controllerCache&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;_unsubscribeToEvents&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;228&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;delete&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controllerCache&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;229&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;230&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;231&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
-&lt;span class='line'&gt;232&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;publicObj&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;233&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;234&lt;/span&gt; &lt;/span&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;
\ No newline at end of file
+&lt;span class='line'&gt;131&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.looselyCoupled&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;132&lt;/span&gt; 
+&lt;span class='line'&gt;133&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;134&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;changeEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onInstanceChange.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;135&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;newEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onInstanceCreate.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;136&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;destroyEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onInstanceDestroy.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;137&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;attributeEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onAttributeChange.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;138&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;139&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
+&lt;span class='line'&gt;140&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/**
+&lt;span class='line'&gt;141&lt;/span&gt;             @private
+&lt;span class='line'&gt;142&lt;/span&gt;             @requires MBX.JsModel
+&lt;span class='line'&gt;143&lt;/span&gt;             @requires this.model
+&lt;span class='line'&gt;144&lt;/span&gt;         */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;145&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;_unsubscribeToEvents&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;146&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;&amp;&amp;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;NUMB&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;                
+&lt;span class='line'&gt;147&lt;/span&gt;                 &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.each&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;subscription&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;148&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;                    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.unsubscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;subscription&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;149&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;                &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;150&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;151&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;152&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;153&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
+&lt;span class='line'&gt;154&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/**
+&lt;span class='line'&gt;155&lt;/span&gt;         This is mostly used internally and is fired on MBX everytime a controller is created
+&lt;span class='line'&gt;156&lt;/span&gt;         @memberOf MBX.JsController
+&lt;span class='line'&gt;157&lt;/span&gt;         @name MBX.JsController.Event
+&lt;span class='line'&gt;158&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;159&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;publicObj.Event&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;160&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;newController&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;new_controller&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;161&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;afterRender&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;render_finished&quot;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;162&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;163&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
+&lt;span class='line'&gt;164&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/**
+&lt;span class='line'&gt;165&lt;/span&gt;         call extend() to add methods and/or attributes to ALL controllers
+&lt;span class='line'&gt;166&lt;/span&gt;         @param {Object} methsAndAttrs
+&lt;span class='line'&gt;167&lt;/span&gt;         @name MBX.JsController.extend
+&lt;span class='line'&gt;168&lt;/span&gt;         @function
+&lt;span class='line'&gt;169&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;170&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;publicObj.extend&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;171&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;172&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;Object.extend&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;JsController.prototype&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;173&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;174&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
+&lt;span class='line'&gt;175&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/**
+&lt;span class='line'&gt;176&lt;/span&gt;         Controllers allow some decently powerful hooks. You can specify a model, and an
+&lt;span class='line'&gt;177&lt;/span&gt;         onInstanceChange, onInstanceDestroy, onInstanceCreate.
+&lt;span class='line'&gt;178&lt;/span&gt;         
+&lt;span class='line'&gt;179&lt;/span&gt;         If your controller listens to a model, but you are not dependent on real-time updates,
+&lt;span class='line'&gt;180&lt;/span&gt;         you can add the option &quot;looselyCoupled: true&quot; and all updates will be done with
+&lt;span class='line'&gt;181&lt;/span&gt;         setTimeout, which will be a performance enhancement.
+&lt;span class='line'&gt;182&lt;/span&gt;           
+&lt;span class='line'&gt;183&lt;/span&gt;         @name MBX.JsController.create
+&lt;span class='line'&gt;184&lt;/span&gt;         @param {String} name the name of the controller
+&lt;span class='line'&gt;185&lt;/span&gt;         @param {Object} opts used to extend the controller methods at instantiation
+&lt;span class='line'&gt;186&lt;/span&gt;         @see JsController
+&lt;span class='line'&gt;187&lt;/span&gt;         @function
+&lt;span class='line'&gt;188&lt;/span&gt;         @example
+&lt;span class='line'&gt;189&lt;/span&gt;           MBX.DesktopUploadController = MBX.JsController.create(&quot;DesktopUpload&quot;, {
+&lt;span class='line'&gt;190&lt;/span&gt;               looselyCoupled: false, // false is the default
+&lt;span class='line'&gt;191&lt;/span&gt;               ANewMethod: function (something) {
+&lt;span class='line'&gt;192&lt;/span&gt;                   return something;
+&lt;span class='line'&gt;193&lt;/span&gt;               }
+&lt;span class='line'&gt;194&lt;/span&gt;           })
+&lt;span class='line'&gt;195&lt;/span&gt;           MBX.DesktopUpload.ANewMethod(&quot;boo&quot;) == &quot;boo&quot;;
+&lt;span class='line'&gt;196&lt;/span&gt;         @example
+&lt;span class='line'&gt;197&lt;/span&gt;           MBX.DesktopUploadController = MBX.JsController.create(&quot;DesktopUpload&quot;, {
+&lt;span class='line'&gt;198&lt;/span&gt;               model: MBX.DesktopUpload,
+&lt;span class='line'&gt;199&lt;/span&gt;               onInstanceCreate: function (instance) {
+&lt;span class='line'&gt;200&lt;/span&gt;                   alert(instance.get('greeting'));
+&lt;span class='line'&gt;201&lt;/span&gt;               }              
+&lt;span class='line'&gt;202&lt;/span&gt;           });
+&lt;span class='line'&gt;203&lt;/span&gt;           MBX.DesktopUpload.create({ greeting: 'hi' });  // will alert('hi');
+&lt;span class='line'&gt;204&lt;/span&gt;         @example
+&lt;span class='line'&gt;205&lt;/span&gt;           MBX.DesktopUploadController = MBX.JsController.create(&quot;DesktopUpload&quot;, {
+&lt;span class='line'&gt;206&lt;/span&gt;               model: MBX.DesktopUpload,
+&lt;span class='line'&gt;207&lt;/span&gt;               onInstanceChange: function (instance) {
+&lt;span class='line'&gt;208&lt;/span&gt;                   alert(instance.get('greeting'));
+&lt;span class='line'&gt;209&lt;/span&gt;               }              
+&lt;span class='line'&gt;210&lt;/span&gt;           });
+&lt;span class='line'&gt;211&lt;/span&gt;           var instance = MBX.DesktopUpload.create();
+&lt;span class='line'&gt;212&lt;/span&gt;           instance.set('greeting', 'hi');  // will alert('hi')
+&lt;span class='line'&gt;213&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;214&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;publicObj.create&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;215&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controllerCache&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;216&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;throw&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;Error&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;A controller with the name of &quot;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot; is already in use&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;217&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;218&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controller&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;JsController&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;219&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;typeof&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controller.initialize&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;function&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;220&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controller.initialize&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;221&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;222&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controller&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;223&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;224&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
+&lt;span class='line'&gt;225&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/**
+&lt;span class='line'&gt;226&lt;/span&gt;         Destroy a controller and unsubscribe its event listeners
+&lt;span class='line'&gt;227&lt;/span&gt;         @param {String} name the name of the controller
+&lt;span class='line'&gt;228&lt;/span&gt;         @name MBX.JsController.destroyController
+&lt;span class='line'&gt;229&lt;/span&gt;         @function
+&lt;span class='line'&gt;230&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;231&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;publicObj.destroyController&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;232&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controllerCache&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;233&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controllerCache&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;_unsubscribeToEvents&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;234&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;delete&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;controllerCache&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;name&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;235&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;236&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;237&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
+&lt;span class='line'&gt;238&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;publicObj&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;239&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;240&lt;/span&gt; &lt;/span&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;
\ No newline at end of file</diff>
      <filename>docs/symbols/src/src_js_controller.js.html</filename>
    </modified>
    <modified>
      <diff>@@ -76,8 +76,8 @@
 &lt;span class='line'&gt; 69&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._subscribeToEvents&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
 &lt;span class='line'&gt; 70&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
 &lt;span class='line'&gt; 71&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
-&lt;span class='line'&gt; 72&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;typeof&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.afterCreate&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;'function'&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt; 73&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.afterCreate&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt; 72&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;typeof&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.initialize&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;'function'&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt; 73&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.initialize&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
 &lt;span class='line'&gt; 74&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
 &lt;span class='line'&gt; 75&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
 &lt;span class='line'&gt; 76&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
@@ -143,178 +143,185 @@
 &lt;span class='line'&gt;136&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;newEvent&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.model.Event.newInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
 &lt;span class='line'&gt;137&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;destroyEvent&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.model.Event.destroyInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
 &lt;span class='line'&gt;138&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;attributeEvent&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.model.Event.changeAttribute&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;139&lt;/span&gt; 
-&lt;span class='line'&gt;140&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;141&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;changeEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onInstanceChange.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;142&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;newEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onInstanceCreate.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;143&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;destroyEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onInstanceDestroy.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;144&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;attributeEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onAttributeChange.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;145&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;146&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
-&lt;span class='line'&gt;147&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** return the CSS class for the model associated with this view
-&lt;span class='line'&gt;148&lt;/span&gt;             @param {String} prePend any string to prepend to the model
-&lt;span class='line'&gt;149&lt;/span&gt;             @see MBX.JsView.modelCSS
-&lt;span class='line'&gt;150&lt;/span&gt;         */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;151&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;modelCSS&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;prePend&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;152&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.JsView.modelCSS&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.model&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;prePend&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;153&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;154&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
-&lt;span class='line'&gt;155&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** given an instance of a model, give the recommended instance class
-&lt;span class='line'&gt;156&lt;/span&gt;             @see MBX.JsView.cssForInstance
-&lt;span class='line'&gt;157&lt;/span&gt;         */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;158&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;cssForInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;prePend&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;159&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.JsView.cssForInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;prePend&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;160&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;161&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
-&lt;span class='line'&gt;162&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** given an instance, return the relevent elements
-&lt;span class='line'&gt;163&lt;/span&gt;             @param {JsModel#instance} instance the instance you want to find elements
-&lt;span class='line'&gt;164&lt;/span&gt;             @returns {Array} an array of extended dom elements that match the relevent class names
-&lt;span class='line'&gt;165&lt;/span&gt;         */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;166&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;elementsFromInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;167&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;$$&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.modelCSS&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;.&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;cssForInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;.&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;168&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;169&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
-&lt;span class='line'&gt;170&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** return all the various collections of dom elements that have the appropriate classes
-&lt;span class='line'&gt;171&lt;/span&gt;             @returns {Array} array of extended dom elements that match collection CSS
-&lt;span class='line'&gt;172&lt;/span&gt;         */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;173&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;domCollections&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;174&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;findString&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;jsElementClass&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.modelCSS&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;.&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;'.collection'&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;join&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;''&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;175&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;$$&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;findString&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;176&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;177&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
-&lt;span class='line'&gt;178&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;179&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
-&lt;span class='line'&gt;180&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** create a new view handler... specify a model and some
-&lt;span class='line'&gt;181&lt;/span&gt;         functions and some great magic happens
-&lt;span class='line'&gt;182&lt;/span&gt;         @name MBX.JsView.create
-&lt;span class='line'&gt;183&lt;/span&gt;         @function
-&lt;span class='line'&gt;184&lt;/span&gt;         @param {Object} opts the various options specified for a view
-&lt;span class='line'&gt;185&lt;/span&gt;         @example
-&lt;span class='line'&gt;186&lt;/span&gt;             MBX.JsView.create({
-&lt;span class='line'&gt;187&lt;/span&gt;                 model: MBX.DesktopUpload,
-&lt;span class='line'&gt;188&lt;/span&gt;                 onCreate: function (upload) {
-&lt;span class='line'&gt;189&lt;/span&gt;                     //create the upload
-&lt;span class='line'&gt;190&lt;/span&gt;                 },
-&lt;span class='line'&gt;191&lt;/span&gt;                 onChange: function (upload) {
-&lt;span class='line'&gt;192&lt;/span&gt;                     // any upload changes
-&lt;span class='line'&gt;193&lt;/span&gt;                 },
-&lt;span class='line'&gt;194&lt;/span&gt;                 onDestroy: function (upload) {
-&lt;span class='line'&gt;195&lt;/span&gt;                     // handle destroys
-&lt;span class='line'&gt;196&lt;/span&gt;                 }
-&lt;span class='line'&gt;197&lt;/span&gt;             });
-&lt;span class='line'&gt;198&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;199&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.create&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;200&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;View&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;201&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;202&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
-&lt;span class='line'&gt;203&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/**
-&lt;span class='line'&gt;204&lt;/span&gt;         call extend() to add methods and/or attributes to ALL views
-&lt;span class='line'&gt;205&lt;/span&gt;         @param {Object} methsAndAttrs
-&lt;span class='line'&gt;206&lt;/span&gt;         @name MBX.JsView.extend
-&lt;span class='line'&gt;207&lt;/span&gt;         @function
-&lt;span class='line'&gt;208&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;209&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.extend&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;210&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;211&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;Object.extend&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;View.prototype&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;212&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;213&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
-&lt;span class='line'&gt;214&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** Added to prototype elements when a view is created
-&lt;span class='line'&gt;215&lt;/span&gt;         allows you to observe particular keys of a model object
-&lt;span class='line'&gt;216&lt;/span&gt;         @name MBX.JsView.updatesOn
-&lt;span class='line'&gt;217&lt;/span&gt;         @function
-&lt;span class='line'&gt;218&lt;/span&gt;         @param {JsModel#instance} obj the model instance to watch
-&lt;span class='line'&gt;219&lt;/span&gt;         @param {String} key the key to watch
-&lt;span class='line'&gt;220&lt;/span&gt;         @param {Object} opts handler or preProcess functions to execute
-&lt;span class='line'&gt;221&lt;/span&gt;         @returns {DOM element} the dom element that was called (for chaining)
-&lt;span class='line'&gt;222&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;223&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.updatesOn&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;224&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;225&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;throw&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;Error&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;You must specify a key or an object with updatesOn&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;226&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;227&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;228&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;229&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
-&lt;span class='line'&gt;230&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;changeHandler&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;evt&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;231&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj.get&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;232&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts.preProcess&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;233&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;                &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts.preProcess&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;234&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;235&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts.handler&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;236&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;                &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts.handler&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;237&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;238&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;                &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.update&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;239&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;240&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;241&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
-&lt;span class='line'&gt;242&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;sub&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;_changed&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;changeHandler&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;243&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
-&lt;span class='line'&gt;244&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewSubscriptions&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewSubscriptions&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;       
-&lt;span class='line'&gt;245&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;sub&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;246&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
-&lt;span class='line'&gt;247&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj.__JsViewSubscriptions&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj.__JsViewSubscriptions&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;248&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj.__JsViewSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;sub&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;249&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
-&lt;span class='line'&gt;250&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts.updateNow&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;251&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;changeHandler&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;252&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;139&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.looselyCoupled&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;140&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            
+&lt;span class='line'&gt;141&lt;/span&gt;             &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;142&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;changeEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onInstanceChange.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;143&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;newEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onInstanceCreate.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;144&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;destroyEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onInstanceDestroy.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;145&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.eventSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;attributeEvent&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this._onAttributeChange.bind&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;this&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;defer&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;146&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;147&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
+&lt;span class='line'&gt;148&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** return the CSS class for the model associated with this view
+&lt;span class='line'&gt;149&lt;/span&gt;             @param {String} prePend any string to prepend to the model
+&lt;span class='line'&gt;150&lt;/span&gt;             @see MBX.JsView.modelCSS
+&lt;span class='line'&gt;151&lt;/span&gt;         */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;152&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;modelCSS&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;prePend&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;153&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.JsView.modelCSS&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.model&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;prePend&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;154&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;155&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
+&lt;span class='line'&gt;156&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** given an instance of a model, give the recommended instance class
+&lt;span class='line'&gt;157&lt;/span&gt;             @see MBX.JsView.cssForInstance
+&lt;span class='line'&gt;158&lt;/span&gt;         */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;159&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;cssForInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;prePend&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;160&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.JsView.cssForInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;prePend&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;161&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;162&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
+&lt;span class='line'&gt;163&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** given an instance, return the relevent elements
+&lt;span class='line'&gt;164&lt;/span&gt;             @param {JsModel#instance} instance the instance you want to find elements
+&lt;span class='line'&gt;165&lt;/span&gt;             @returns {Array} an array of extended dom elements that match the relevent class names
+&lt;span class='line'&gt;166&lt;/span&gt;         */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;167&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;elementsFromInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;168&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;$$&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.modelCSS&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;.&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot; &quot;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;cssForInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;.&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;169&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;170&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
+&lt;span class='line'&gt;171&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** return all the various collections of dom elements that have the appropriate classes
+&lt;span class='line'&gt;172&lt;/span&gt;             @returns {Array} array of extended dom elements that match collection CSS
+&lt;span class='line'&gt;173&lt;/span&gt;         */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;174&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;domCollections&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;175&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;findString&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;jsElementClass&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;this.modelCSS&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;.&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;'.collection'&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;join&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;''&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;176&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;$$&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;findString&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;177&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;178&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
+&lt;span class='line'&gt;179&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;180&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
+&lt;span class='line'&gt;181&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** create a new view handler... specify a model and some
+&lt;span class='line'&gt;182&lt;/span&gt;         functions and some great magic happens.
+&lt;span class='line'&gt;183&lt;/span&gt;         
+&lt;span class='line'&gt;184&lt;/span&gt;         If your view listens to a model, but you are not dependent on real-time updates,
+&lt;span class='line'&gt;185&lt;/span&gt;         you can add the option &quot;looselyCoupled: true&quot; and all updates will be done with
+&lt;span class='line'&gt;186&lt;/span&gt;         setTimeout, which will be a performance enhancement.
+&lt;span class='line'&gt;187&lt;/span&gt;         
+&lt;span class='line'&gt;188&lt;/span&gt;         @name MBX.JsView.create
+&lt;span class='line'&gt;189&lt;/span&gt;         @function
+&lt;span class='line'&gt;190&lt;/span&gt;         @param {Object} opts the various options specified for a view
+&lt;span class='line'&gt;191&lt;/span&gt;         @example
+&lt;span class='line'&gt;192&lt;/span&gt;             MBX.JsView.create({
+&lt;span class='line'&gt;193&lt;/span&gt;                 model: MBX.DesktopUpload,
+&lt;span class='line'&gt;194&lt;/span&gt;                 looselyCoupled: false, // false is the default
+&lt;span class='line'&gt;195&lt;/span&gt;                 onCreate: function (upload) {
+&lt;span class='line'&gt;196&lt;/span&gt;                     //create the upload
+&lt;span class='line'&gt;197&lt;/span&gt;                 },
+&lt;span class='line'&gt;198&lt;/span&gt;                 onChange: function (upload) {
+&lt;span class='line'&gt;199&lt;/span&gt;                     // any upload changes
+&lt;span class='line'&gt;200&lt;/span&gt;                 },
+&lt;span class='line'&gt;201&lt;/span&gt;                 onDestroy: function (upload) {
+&lt;span class='line'&gt;202&lt;/span&gt;                     // handle destroys
+&lt;span class='line'&gt;203&lt;/span&gt;                 }
+&lt;span class='line'&gt;204&lt;/span&gt;             });
+&lt;span class='line'&gt;205&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;206&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.create&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;207&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;View&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;208&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;209&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
+&lt;span class='line'&gt;210&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/**
+&lt;span class='line'&gt;211&lt;/span&gt;         call extend() to add methods and/or attributes to ALL views
+&lt;span class='line'&gt;212&lt;/span&gt;         @param {Object} methsAndAttrs
+&lt;span class='line'&gt;213&lt;/span&gt;         @name MBX.JsView.extend
+&lt;span class='line'&gt;214&lt;/span&gt;         @function
+&lt;span class='line'&gt;215&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;216&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.extend&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;217&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;218&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;Object.extend&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;View.prototype&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;methsAndAttrs&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;219&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;220&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
+&lt;span class='line'&gt;221&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** Added to prototype elements when a view is created
+&lt;span class='line'&gt;222&lt;/span&gt;         allows you to observe particular keys of a model object
+&lt;span class='line'&gt;223&lt;/span&gt;         @name MBX.JsView.updatesOn
+&lt;span class='line'&gt;224&lt;/span&gt;         @function
+&lt;span class='line'&gt;225&lt;/span&gt;         @param {JsModel#instance} obj the model instance to watch
+&lt;span class='line'&gt;226&lt;/span&gt;         @param {String} key the key to watch
+&lt;span class='line'&gt;227&lt;/span&gt;         @param {Object} opts handler or preProcess functions to execute
+&lt;span class='line'&gt;228&lt;/span&gt;         @returns {DOM element} the dom element that was called (for chaining)
+&lt;span class='line'&gt;229&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;230&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.updatesOn&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;231&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;232&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;throw&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;Error&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;You must specify a key or an object with updatesOn&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;233&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;234&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;235&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;236&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
+&lt;span class='line'&gt;237&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;changeHandler&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;evt&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;238&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj.get&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;239&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts.preProcess&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;240&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;                &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts.preProcess&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;241&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;242&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts.handler&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;243&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;                &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts.handler&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;244&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;245&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;                &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.update&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;content&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;246&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;247&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;248&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
+&lt;span class='line'&gt;249&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;sub&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.subscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;key&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;STRN&quot;&gt;&quot;_changed&quot;&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;changeHandler&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;250&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
+&lt;span class='line'&gt;251&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewSubscriptions&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewSubscriptions&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;       
+&lt;span class='line'&gt;252&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;sub&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
 &lt;span class='line'&gt;253&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
-&lt;span class='line'&gt;254&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;255&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;256&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
-&lt;span class='line'&gt;257&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** stop updating this instance, all event handlers are removed
-&lt;span class='line'&gt;258&lt;/span&gt;         Preferred method of accessing this function is through extended elements
-&lt;span class='line'&gt;259&lt;/span&gt;         @name MBX.JsView.stopUpdating
-&lt;span class='line'&gt;260&lt;/span&gt;         @function
-&lt;span class='line'&gt;261&lt;/span&gt;         @param {DOM Element} element the element to stop observing - this will usually be filled for you by prototype
-&lt;span class='line'&gt;262&lt;/span&gt;         @returns {DOM Element} element for chaining
-&lt;span class='line'&gt;263&lt;/span&gt;         @example
-&lt;span class='line'&gt;264&lt;/span&gt;           $(&quot;el&quot;).stopUpdating();
-&lt;span class='line'&gt;265&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;266&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.stopUpdating&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;267&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;268&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewSubscriptions&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;269&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;while&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewSubscriptions.length&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;&gt;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NUMB&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;270&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;                &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.unsubscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewSubscriptions.pop&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;271&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;272&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;273&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;274&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;275&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
-&lt;span class='line'&gt;276&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** attach a JsModel#instance to this DOM element
-&lt;span class='line'&gt;277&lt;/span&gt;         Preferred method of accessing this function is through extended elements
-&lt;span class='line'&gt;278&lt;/span&gt;         @name MBX.JsView.assignInstance
-&lt;span class='line'&gt;279&lt;/span&gt;         @function
-&lt;span class='line'&gt;280&lt;/span&gt;         @example
-&lt;span class='line'&gt;281&lt;/span&gt;           $(&quot;el&quot;).assignInstance(instance);
-&lt;span class='line'&gt;282&lt;/span&gt;           $(&quot;el&quot;).getInstance();  // == instance
-&lt;span class='line'&gt;283&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;284&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.assignInstance&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;285&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;286&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewMvcInstance&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;287&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.addClassName&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.JsView.modelCSS&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance.parentClass&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;288&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.addClassName&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.JsView.cssForInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;289&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;290&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;291&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
-&lt;span class='line'&gt;292&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** fetch a JsModel#instance from this DOM element
-&lt;span class='line'&gt;293&lt;/span&gt;         Preferred method of accessing this function is through extended elements
-&lt;span class='line'&gt;294&lt;/span&gt;         @name MBX.JsView.getInstance
-&lt;span class='line'&gt;295&lt;/span&gt;         @function
-&lt;span class='line'&gt;296&lt;/span&gt;         @example
-&lt;span class='line'&gt;297&lt;/span&gt;           $(&quot;el&quot;).assignInstance(instance);
-&lt;span class='line'&gt;298&lt;/span&gt;           $(&quot;el&quot;).getInstance();  // == instance
-&lt;span class='line'&gt;299&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;300&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.getInstance&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;301&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewMvcInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;302&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;303&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
-&lt;span class='line'&gt;304&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;Element.addMethods&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;305&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;updatesOn&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.updatesOn&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;306&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;stopUpdating&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.stopUpdating&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;307&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;assignInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.assignInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;308&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;getInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.getInstance&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;309&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;254&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj.__JsViewSubscriptions&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj.__JsViewSubscriptions&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;||&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;]&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;255&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;obj.__JsViewSubscriptions.push&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;sub&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;256&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
+&lt;span class='line'&gt;257&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;opts.updateNow&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;258&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;changeHandler&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;259&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;260&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        
+&lt;span class='line'&gt;261&lt;/span&gt;         &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;262&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;263&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
+&lt;span class='line'&gt;264&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** stop updating this instance, all event handlers are removed
+&lt;span class='line'&gt;265&lt;/span&gt;         Preferred method of accessing this function is through extended elements
+&lt;span class='line'&gt;266&lt;/span&gt;         @name MBX.JsView.stopUpdating
+&lt;span class='line'&gt;267&lt;/span&gt;         @function
+&lt;span class='line'&gt;268&lt;/span&gt;         @param {DOM Element} element the element to stop observing - this will usually be filled for you by prototype
+&lt;span class='line'&gt;269&lt;/span&gt;         @returns {DOM Element} element for chaining
+&lt;span class='line'&gt;270&lt;/span&gt;         @example
+&lt;span class='line'&gt;271&lt;/span&gt;           $(&quot;el&quot;).stopUpdating();
+&lt;span class='line'&gt;272&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;273&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.stopUpdating&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;274&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;275&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewSubscriptions&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;276&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;while&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewSubscriptions.length&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;&gt;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NUMB&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;277&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;                &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.EventHandler.unsubscribe&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewSubscriptions.pop&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;278&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;            &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;279&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;280&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;281&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;282&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
+&lt;span class='line'&gt;283&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** attach a JsModel#instance to this DOM element
+&lt;span class='line'&gt;284&lt;/span&gt;         Preferred method of accessing this function is through extended elements
+&lt;span class='line'&gt;285&lt;/span&gt;         @name MBX.JsView.assignInstance
+&lt;span class='line'&gt;286&lt;/span&gt;         @function
+&lt;span class='line'&gt;287&lt;/span&gt;         @example
+&lt;span class='line'&gt;288&lt;/span&gt;           $(&quot;el&quot;).assignInstance(instance);
+&lt;span class='line'&gt;289&lt;/span&gt;           $(&quot;el&quot;).getInstance();  // == instance
+&lt;span class='line'&gt;290&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;291&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.assignInstance&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;292&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;293&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewMvcInstance&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;294&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.addClassName&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.JsView.modelCSS&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance.parentClass&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;295&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.addClassName&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;MBX.JsView.cssForInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;296&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;297&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;298&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
+&lt;span class='line'&gt;299&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;COMM&quot;&gt;/** fetch a JsModel#instance from this DOM element
+&lt;span class='line'&gt;300&lt;/span&gt;         Preferred method of accessing this function is through extended elements
+&lt;span class='line'&gt;301&lt;/span&gt;         @name MBX.JsView.getInstance
+&lt;span class='line'&gt;302&lt;/span&gt;         @function
+&lt;span class='line'&gt;303&lt;/span&gt;         @example
+&lt;span class='line'&gt;304&lt;/span&gt;           $(&quot;el&quot;).assignInstance(instance);
+&lt;span class='line'&gt;305&lt;/span&gt;           $(&quot;el&quot;).getInstance();  // == instance
+&lt;span class='line'&gt;306&lt;/span&gt;     */&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;307&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.getInstance&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;function&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;instance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;308&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;element.__JsViewMvcInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;309&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
 &lt;span class='line'&gt;310&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
-&lt;span class='line'&gt;311&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;312&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
-&lt;span class='line'&gt;313&lt;/span&gt; &lt;/span&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;
\ No newline at end of file
+&lt;span class='line'&gt;311&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;Element.addMethods&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;{&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;312&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;updatesOn&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.updatesOn&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;313&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;stopUpdating&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.stopUpdating&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;314&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;assignInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.assignInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;315&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;        &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;getInstance&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self.getInstance&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;316&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;317&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;    
+&lt;span class='line'&gt;318&lt;/span&gt;     &lt;/span&gt;&lt;span class=&quot;KEYW&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt; &lt;/span&gt;&lt;span class=&quot;NAME&quot;&gt;self&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;319&lt;/span&gt; &lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;}&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;PUNC&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;WHIT&quot;&gt;
+&lt;span class='line'&gt;320&lt;/span&gt; &lt;/span&gt;&lt;/pre&gt;&lt;/body&gt;&lt;/html&gt;
\ No newline at end of file</diff>
      <filename>docs/symbols/src/src_js_view.js.html</filename>
    </modified>
    <modified>
      <diff>@@ -3,8 +3,8 @@ if(!(&quot;MBX&quot;in window)){MBX={};}
 MBX.JsController=(function(){var publicObj={};var controllerCache={};var jsElementClass='.js_updateable';JsController=function(name,opts){opts=opts||{};if(!name){throw new Error(&quot;A name must be specified&quot;);}
 if(controllerCache[name]){throw new Error(&quot;A controller by that name exists&quot;);}
 this.controllerName=name;Object.extend(this,opts);if(opts.model){this._subscribeToEvents();}
-controllerCache[name]=this;MBX.EventHandler.fireCustom(MBX,publicObj.Event.newController,{object:this});};JsController.prototype={_onInstanceChange:function(evt){if(this.onInstanceChange){this.onInstanceChange(evt.object,evt.key);}},_onInstanceCreate:function(evt){if(this.onInstanceCreate){this.onInstanceCreate(evt.object);}},fireAfterRender:function(){MBX.EventHandler.fireCustom(MBX,this.controllerName+&quot;_&quot;+MBX.JsController.Event.afterRender);},_onInstanceDestroy:function(evt){if(this.onInstanceDestroy){this.onInstanceDestroy(evt.object);}},_onAttributeChange:function(evt){if(typeof this.onAttributeChange=='function'){this.onAttributeChange(evt.key);}},_subscribeToEvents:function(){var changeEvent=this.model.Event.changeInstance;var newEvent=this.model.Event.newInstance;var destroyEvent=this.model.Event.destroyInstance;var attributeEvent=this.model.Event.changeAttribute;var defer=this.loosleyCoupled;this.eventSubscriptions=[];this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,changeEvent,this._onInstanceChange.bind(this),{defer:defer}));this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,newEvent,this._onInstanceCreate.bind(this),{defer:defer}));this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,destroyEvent,this._onInstanceDestroy.bind(this),{defer:defer}));this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,attributeEvent,this._onAttributeChange.bind(this),{defer:defer}));},_unsubscribeToEvents:function(){if(this.eventSubscriptions&amp;&amp;this.eventSubscriptions[0]){this.eventSubscriptions.each(function(subscription){MBX.EventHandler.unsubscribe(subscription);});}}};publicObj.Event={newController:&quot;new_controller&quot;,afterRender:&quot;render_finished&quot;};publicObj.extend=function(methsAndAttrs){methsAndAttrs=methsAndAttrs||{};Object.extend(JsController.prototype,methsAndAttrs);};publicObj.create=function(name,opts){if(controllerCache[name]){throw new Error(&quot;A controller with the name of &quot;+name+&quot; is already in use&quot;);}
-var controller=new JsController(name,opts);if(typeof controller.afterCreate==&quot;function&quot;){controller.afterCreate();}
+controllerCache[name]=this;MBX.EventHandler.fireCustom(MBX,publicObj.Event.newController,{object:this});};JsController.prototype={_onInstanceChange:function(evt){if(this.onInstanceChange){this.onInstanceChange(evt.object,evt.key);}},_onInstanceCreate:function(evt){if(this.onInstanceCreate){this.onInstanceCreate(evt.object);}},fireAfterRender:function(){MBX.EventHandler.fireCustom(MBX,this.controllerName+&quot;_&quot;+MBX.JsController.Event.afterRender);},_onInstanceDestroy:function(evt){if(this.onInstanceDestroy){this.onInstanceDestroy(evt.object);}},_onAttributeChange:function(evt){if(typeof this.onAttributeChange=='function'){this.onAttributeChange(evt.key);}},_subscribeToEvents:function(){var changeEvent=this.model.Event.changeInstance;var newEvent=this.model.Event.newInstance;var destroyEvent=this.model.Event.destroyInstance;var attributeEvent=this.model.Event.changeAttribute;var defer=this.looselyCoupled;this.eventSubscriptions=[];this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,changeEvent,this._onInstanceChange.bind(this),{defer:defer}));this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,newEvent,this._onInstanceCreate.bind(this),{defer:defer}));this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,destroyEvent,this._onInstanceDestroy.bind(this),{defer:defer}));this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,attributeEvent,this._onAttributeChange.bind(this),{defer:defer}));},_unsubscribeToEvents:function(){if(this.eventSubscriptions&amp;&amp;this.eventSubscriptions[0]){this.eventSubscriptions.each(function(subscription){MBX.EventHandler.unsubscribe(subscription);});}}};publicObj.Event={newController:&quot;new_controller&quot;,afterRender:&quot;render_finished&quot;};publicObj.extend=function(methsAndAttrs){methsAndAttrs=methsAndAttrs||{};Object.extend(JsController.prototype,methsAndAttrs);};publicObj.create=function(name,opts){if(controllerCache[name]){throw new Error(&quot;A controller with the name of &quot;+name+&quot; is already in use&quot;);}
+var controller=new JsController(name,opts);if(typeof controller.initialize==&quot;function&quot;){controller.initialize();}
 return controller;};publicObj.destroyController=function(name){if(controllerCache[name]){controllerCache[name]._unsubscribeToEvents();delete controllerCache[name];}};return publicObj;})();
 if(!(&quot;MBX&quot;in window)){MBX={};}
 MBX.Constructor=function(o){function F(){}
@@ -23,7 +23,7 @@ return true;},extendInstances:function(attrs){attrs=attrs||{};Object.extend(this
 this.attributes[key]=value;if(changed){MBX.EventHandler.fireCustom(MBX,this.Event.changeAttribute,{object:this,key:key});MBX.EventHandler.fireCustom(this,key+&quot;_changed&quot;);}},get:function(key){return this.attributes[key];},onInstanceCreate:function(func){return MBX.EventHandler.subscribe(MBX,this.Event.newInstance,func);},onInstanceDestroy:function(func){return MBX.EventHandler.subscribe(MBX,this.Event.destroyInstance,func);},onInstanceChange:function(func){return MBX.EventHandler.subscribe(MBX,this.Event.changeInstance,func);}};publicObj.Event={newModel:&quot;new_model&quot;};publicObj.create=function(name,opts){return new JsModel(name,opts);};publicObj.nextGUID=function(){return currentGUID++;};publicObj.extend=function(methsAndAttrs){methsAndAttrs=methsAndAttrs||{};Object.extend(JsModel.prototype,methsAndAttrs);};publicObj.extendInstancePrototype=function(methsAndAttrs){Object.extend(oneJsModelInstance,methsAndAttrs);};publicObj.destroyModel=function(name){delete modelCache[name];};return publicObj;})();
 if(!(&quot;MBX&quot;in window)){MBX={};}
 MBX.JsView=(function(){var self={};var jsElementClass='.js_updateable';self.modelCSS=function(model,prePend){prePend=prePend||&quot;&quot;;return prePend+model.modelName.toLowerCase();};self.cssForInstance=function(instance,prePend){prePend=prePend||&quot;&quot;;return prePend+self.modelCSS(instance.parentClass)+&quot;_&quot;+instance.primaryKey().toLowerCase().gsub(/[^\w\-]/,&quot;_&quot;);};var View=function(opts){opts=opts||{};Object.extend(this,opts);if(this.model){this._subscribeToEvents();}
-if(typeof this.afterCreate=='function'){this.afterCreate();}};View.prototype={div:function(className,opts){opts=opts||{};Object.extend(opts,{className:className});return new Element('div',opts);},imageTag:function(src,opts){opts=opts||{};Object.extend(opts,{src:src});return new Element(&quot;img&quot;,opts);},_onInstanceChange:function(evt){if(typeof this.onInstanceChange=='function'){this.onInstanceChange(evt.object,evt.key);}},_onInstanceCreate:function(evt){if(typeof this.onInstanceCreate=='function'){this.onInstanceCreate(evt.object);}},_onInstanceDestroy:function(evt){if(typeof this.onInstanceDestroy=='function'){this.onInstanceDestroy(evt.object);}},_onAttributeChange:function(evt){if(typeof this.onAttributeChange=='function'){this.onAttributeChange(evt.key);}},_subscribeToEvents:function(){var changeEvent=this.model.Event.changeInstance;var newEvent=this.model.Event.newInstance;var destroyEvent=this.model.Event.destroyInstance;var attributeEvent=this.model.Event.changeAttribute;var defer=this.looselyCoupled;this.eventSubscriptions=[];this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,changeEvent,this._onInstanceChange.bind(this),{defer:defer}));this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,newEvent,this._onInstanceCreate.bind(this),{defer:defer}));this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,destroyEvent,this._onInstanceDestroy.bind(this),{defer:defer}));this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,attributeEvent,this._onAttributeChange.bind(this),{defer:defer}));},modelCSS:function(prePend){return MBX.JsView.modelCSS(this.model,prePend);},cssForInstance:function(instance,prePend){return MBX.JsView.cssForInstance(instance,prePend);},elementsFromInstance:function(instance){return $$(this.modelCSS(&quot;.&quot;)+&quot; &quot;+cssForInstance(&quot;.&quot;));},domCollections:function(){var findString=[jsElementClass,this.modelCSS(&quot;.&quot;),'.collection'].join('');return $$(findString);}};self.create=function(opts){return new View(opts);};self.extend=function(methsAndAttrs){methsAndAttrs=methsAndAttrs||{};Object.extend(View.prototype,methsAndAttrs);};self.updatesOn=function(element,obj,key,opts){if(!obj||!key){throw new Error(&quot;You must specify a key or an object with updatesOn&quot;);}
+if(typeof this.initialize=='function'){this.initialize();}};View.prototype={div:function(className,opts){opts=opts||{};Object.extend(opts,{className:className});return new Element('div',opts);},imageTag:function(src,opts){opts=opts||{};Object.extend(opts,{src:src});return new Element(&quot;img&quot;,opts);},_onInstanceChange:function(evt){if(typeof this.onInstanceChange=='function'){this.onInstanceChange(evt.object,evt.key);}},_onInstanceCreate:function(evt){if(typeof this.onInstanceCreate=='function'){this.onInstanceCreate(evt.object);}},_onInstanceDestroy:function(evt){if(typeof this.onInstanceDestroy=='function'){this.onInstanceDestroy(evt.object);}},_onAttributeChange:function(evt){if(typeof this.onAttributeChange=='function'){this.onAttributeChange(evt.key);}},_subscribeToEvents:function(){var changeEvent=this.model.Event.changeInstance;var newEvent=this.model.Event.newInstance;var destroyEvent=this.model.Event.destroyInstance;var attributeEvent=this.model.Event.changeAttribute;var defer=this.looselyCoupled;this.eventSubscriptions=[];this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,changeEvent,this._onInstanceChange.bind(this),{defer:defer}));this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,newEvent,this._onInstanceCreate.bind(this),{defer:defer}));this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,destroyEvent,this._onInstanceDestroy.bind(this),{defer:defer}));this.eventSubscriptions.push(MBX.EventHandler.subscribe(MBX,attributeEvent,this._onAttributeChange.bind(this),{defer:defer}));},modelCSS:function(prePend){return MBX.JsView.modelCSS(this.model,prePend);},cssForInstance:function(instance,prePend){return MBX.JsView.cssForInstance(instance,prePend);},elementsFromInstance:function(instance){return $$(this.modelCSS(&quot;.&quot;)+&quot; &quot;+cssForInstance(&quot;.&quot;));},domCollections:function(){var findString=[jsElementClass,this.modelCSS(&quot;.&quot;),'.collection'].join('');return $$(findString);}};self.create=function(opts){return new View(opts);};self.extend=function(methsAndAttrs){methsAndAttrs=methsAndAttrs||{};Object.extend(View.prototype,methsAndAttrs);};self.updatesOn=function(element,obj,key,opts){if(!obj||!key){throw new Error(&quot;You must specify a key or an object with updatesOn&quot;);}
 element=$(element);opts=opts||{};var changeHandler=function(evt){var content=obj.get(key);if(opts.preProcess){content=opts.preProcess(obj,content,key);}
 if(opts.handler){opts.handler(obj,element,content);}else{element.update(content);}};var sub=MBX.EventHandler.subscribe(obj,key+&quot;_changed&quot;,changeHandler);element.__JsViewSubscriptions=element.__JsViewSubscriptions||[];element.__JsViewSubscriptions.push(sub);obj.__JsViewSubscriptions=obj.__JsViewSubscriptions||[];obj.__JsViewSubscriptions.push(sub);if(opts.updateNow){changeHandler();}
 return element;};self.stopUpdating=function(element){element=$(element);if(element.__JsViewSubscriptions){while(element.__JsViewSubscriptions.length&gt;0){MBX.EventHandler.unsubscribe(element.__JsViewSubscriptions.pop());}}</diff>
      <filename>mamoo_min.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>86417e6d8cf05b640a503016caf1ce94cf40c17e</id>
    </parent>
  </parents>
  <author>
    <name>topper</name>
    <email>topper@toppingdesign.com</email>
  </author>
  <url>http://github.com/tobowers/mamoo/commit/42759f886436161bdce26088631ec23358693516</url>
  <id>42759f886436161bdce26088631ec23358693516</id>
  <committed-date>2009-03-15T09:25:09-07:00</committed-date>
  <authored-date>2009-03-15T09:25:09-07:00</authored-date>
  <message>rebuild based on last changes</message>
  <tree>5d67805ae796d9b46cc072facfa669352919db2e</tree>
  <committer>
    <name>topper</name>
    <email>topper@toppingdesign.com</email>
  </committer>
</commit>
