Permalink
Browse files

The JavaScript new operator is now optional when creating instances o…

…f Uize subclasses, and you can make the new operator optional for your own object constructors using the newly added Uize.noNew static method.
  • Loading branch information...
UIZE committed Dec 23, 2011
1 parent d626e85 commit aeb0b7dec104e5c2a573ef241caba54785c888f2
Showing 1,593 changed files with 6,506 additions and 5,074 deletions.
View
@@ -68,7 +68,7 @@
],
builder:function () {
/*** create the hover fader child widget ***/
- var hoverFader = new Uize.Widget.HoverFader ({
+ var hoverFader = Uize.Widget.HoverFader ({
nodes:{root:'helloWorld',tagName:'div'},
defaultStyle:{color:'#3',fontSize:50,textIndent:0},
hoverStyle:{color:'#ffa200',fontSize:100,textIndent:-15},
View
@@ -1,5 +1,5 @@
{
- alwaysBuild:false,
+ alwaysBuild:true,
buildFolderPath:'',
buildSequence:[
/* IMPORTANT:
View
@@ -86,7 +86,7 @@ <h1 class="document-title">
Uize.module ({
required:'UizeDotCom.Page.library',
- builder:function () {(window.page = new UizeDotCom.Page).wireUi ()}
+ builder:function () {(window.page = UizeDotCom.Page ()).wireUi ()}
});
</script>
View
@@ -190,7 +190,7 @@ <h2 class="heading2" title="2. Terms -&gt; 2.11. Thinterface"><span class="headi
'UizeDotCom.Page.Doc.library',
'UizeDotCom.Page.Doc'
],
- builder:function () {(window.page = new UizeDotCom.Page.Doc).wireUi ()}
+ builder:function () {(window.page = UizeDotCom.Page.Doc ()).wireUi ()}
});
</script>
@@ -226,7 +226,7 @@ <h2 class="heading2" title="4. General Practices -&gt; 4.2. Keep Commented Out C
'UizeDotCom.Page.Doc.library',
'UizeDotCom.Page.Doc'
],
- builder:function () {(window.page = new UizeDotCom.Page.Doc).wireUi ()}
+ builder:function () {(window.page = UizeDotCom.Page.Doc ()).wireUi ()}
});
</script>
@@ -635,7 +635,7 @@ <h2 class="heading2" title="6. Interfaces -&gt; 6.4. Don&apos;t Access Globals F
'UizeDotCom.Page.Doc.library',
'UizeDotCom.Page.Doc'
],
- builder:function () {(window.page = new UizeDotCom.Page.Doc).wireUi ()}
+ builder:function () {(window.page = UizeDotCom.Page.Doc ()).wireUi ()}
});
</script>
@@ -262,7 +262,7 @@ <h1 class="heading1" title="3. UIZE Trivia"><span class="headingNumber"><a href=
'UizeDotCom.Page.Doc.library',
'UizeDotCom.Page.Doc'
],
- builder:function () {(window.page = new UizeDotCom.Page.Doc).wireUi ()}
+ builder:function () {(window.page = UizeDotCom.Page.Doc ()).wireUi ()}
});
</script>
@@ -942,7 +942,7 @@ <h3 class="heading3" title="3. Answers -&gt; 3.10. ANSWER: Split List String, Us
'UizeDotCom.Page.Doc.library',
'UizeDotCom.Page.Doc'
],
- builder:function () {(window.page = new UizeDotCom.Page.Doc).wireUi ()}
+ builder:function () {(window.page = UizeDotCom.Page.Doc ()).wireUi ()}
});
</script>
@@ -878,7 +878,7 @@ <h2 class="heading2" title="5. General Code Performance Optimization -&gt; 5.1.
'UizeDotCom.Page.Doc.library',
'UizeDotCom.Page.Doc'
],
- builder:function () {(window.page = new UizeDotCom.Page.Doc).wireUi ()}
+ builder:function () {(window.page = UizeDotCom.Page.Doc ()).wireUi ()}
});
</script>
@@ -313,7 +313,7 @@ <h2 class="heading2" title="4. Coverage -&gt; 4.12. 2006-06-05 - UIZE (web2weblo
'UizeDotCom.Page.Doc.library',
'UizeDotCom.Page.Doc'
],
- builder:function () {(window.page = new UizeDotCom.Page.Doc).wireUi ()}
+ builder:function () {(window.page = UizeDotCom.Page.Doc ()).wireUi ()}
});
</script>
View
@@ -99,7 +99,7 @@ <h1 class="document-title">
Uize.module ({
required:'UizeDotCom.Page.library',
- builder:function () {(window.page = new UizeDotCom.Page).wireUi ()}
+ builder:function () {(window.page = UizeDotCom.Page ()).wireUi ()}
});
</script>
View
@@ -139,7 +139,7 @@ <h1 class="document-title">
<div class="bar highNumbersGood"><div class="barFull" style="width:100%;"></div></div>100.0%
</td>
<td class="numericalValue">
- <div class="bar highNumbersGood"><div class="barFull" style="width:95%;"></div></div>95.0%
+ <div class="bar highNumbersGood"><div class="barFull" style="width:100%;"></div></div>100.0%
</td>
<td class="numericalValue">
<div class="bar highNumbersGood"><div class="barFull" style="width:38%;"></div></div>38.0%
@@ -148,8 +148,8 @@ <h1 class="document-title">
<div class="bar highNumbersGood"><div class="barFull" style="width:17%;"></div></div>1
</td>
<td class="numericalValue">
- <div class="bar "><div class="barFull" style="width:85%;"></div></div>
- 12869
+ <div class="bar "><div class="barFull" style="width:86%;"></div></div>
+ 12991
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:43%;"></div></div>
@@ -365,7 +365,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:33%;"></div></div>
- 5063
+ 5075
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:7%;"></div></div>
@@ -509,7 +509,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:17%;"></div></div>
- 2772
+ 2768
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -1517,7 +1517,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:100%;"></div></div>
- 15109
+ 15107
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:11%;"></div></div>
@@ -1877,7 +1877,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:7%;"></div></div>
- 1258
+ 1270
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -2525,7 +2525,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:8%;"></div></div>
- 1423
+ 1419
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -2921,7 +2921,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:13%;"></div></div>
- 2148
+ 2144
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -3245,7 +3245,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:10%;"></div></div>
- 1764
+ 1751
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -3461,7 +3461,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:9%;"></div></div>
- 1576
+ 1572
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -3677,7 +3677,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:32%;"></div></div>
- 4989
+ 4987
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -3749,7 +3749,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:12%;"></div></div>
- 2047
+ 2039
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -3821,7 +3821,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:15%;"></div></div>
- 2443
+ 2437
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -3929,7 +3929,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:36%;"></div></div>
- 5590
+ 5586
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:9%;"></div></div>
@@ -4145,7 +4145,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:5%;"></div></div>
- 989
+ 985
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:2%;"></div></div>
@@ -4181,7 +4181,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:4%;"></div></div>
- 832
+ 828
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -4469,7 +4469,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:9%;"></div></div>
- 1549
+ 1545
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -4505,7 +4505,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:7%;"></div></div>
- 1238
+ 1234
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -4901,7 +4901,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:35%;"></div></div>
- 5447
+ 5445
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:2%;"></div></div>
@@ -4973,7 +4973,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:11%;"></div></div>
- 1846
+ 1842
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:2%;"></div></div>
@@ -5009,7 +5009,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:4%;"></div></div>
- 822
+ 818
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -5153,7 +5153,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:30%;"></div></div>
- 4655
+ 4651
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -5441,7 +5441,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:7%;"></div></div>
- 1240
+ 1236
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -5765,7 +5765,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:22%;"></div></div>
- 3454
+ 3450
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -5873,7 +5873,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:16%;"></div></div>
- 2657
+ 2653
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -6089,7 +6089,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:8%;"></div></div>
- 1472
+ 1468
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -6125,7 +6125,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:17%;"></div></div>
- 2813
+ 2809
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:7%;"></div></div>
@@ -6413,7 +6413,7 @@ <h1 class="document-title">
</td>
<td class="numericalValue">
<div class="bar "><div class="barFull" style="width:21%;"></div></div>
- 3347
+ 3335
</td>
<td class="numericalValue">
<div class="bar highNumbersImportance"><div class="barFull" style="width:0%;"></div></div>
@@ -6918,7 +6918,7 @@ <h1 class="document-title">
'Uize.Tooltip'
],
builder:function () {
- var page = window.page = new UizeDotCom.Page;
+ var page = window.page = UizeDotCom.Page ();
page.wireUi ();
View
@@ -220,7 +220,7 @@ Uize.module ({
'Uize.Tooltip'
],
builder:function () {
- var page = window.page = new UizeDotCom.Page;
+ var page = window.page = UizeDotCom.Page ();
page.wireUi ();
@@ -817,9 +817,9 @@ <h1 class="heading1" title="13. Code to Factor Out"><span class="headingNumber">
<p>Code to factor out of widget classes into non-Web specific modules...</p>
<table class="list">
- <tr valign="top"><td><span style="white-space:nowrap;"><span class="bullet"></span> </span></td><td><code><a href="../reference/Uize.Widget.ImagePort.html">Uize.Widget.ImagePort</a></code> - pure rectangle scaling math should be factored out into a new Uize.Math.RectScaler module</td></tr>
- <tr valign="top"><td><span style="white-space:nowrap;"><span class="bullet"></span> </span></td><td><code><a href="../reference/Uize.Widget.Population.html">Uize.Widget.Population</a></code> - pure population string functionality should be migrated into a new Uize.String.Population module (or Uize.Template.Population?)</td></tr>
- <tr valign="top"><td><span style="white-space:nowrap;"><span class="bullet"></span> </span></td><td><code><a href="../reference/Uize.Widget.Tree.html">Uize.Widget.Tree</a></code> - model stuff for the data structure that represents a tree (Uize.Data.Tree?)</td></tr>
+ <tr valign="top"><td><span style="white-space:nowrap;"><span class="bullet"></span> </span></td><td><code><a href="../reference/Uize.Widget.ImagePort.html">Uize.Widget.ImagePort</a></code> - pure rectangle scaling math should be factored out into a new <code>Uize.Math.RectScaler</code> module</td></tr>
+ <tr valign="top"><td><span style="white-space:nowrap;"><span class="bullet"></span> </span></td><td><code><a href="../reference/Uize.Widget.Population.html">Uize.Widget.Population</a></code> - pure population string functionality should be migrated into a new <code>Uize.String.Population</code> module (or <code>Uize.Template.Population</code>?)</td></tr>
+ <tr valign="top"><td><span style="white-space:nowrap;"><span class="bullet"></span> </span></td><td><code><a href="../reference/Uize.Widget.Tree.html">Uize.Widget.Tree</a></code> - model stuff for the data structure that represents a tree (<code>Uize.Data.Tree</code>?)</td></tr>
</table>
</div>
@@ -2030,7 +2030,7 @@ <h3 class="heading3" title="37. Things to Add to Documentation -&gt; 37.1. - mor
'UizeDotCom.Page.Doc.library',
'UizeDotCom.Page.Doc'
],
- builder:function () {(window.page = new UizeDotCom.Page.Doc).wireUi ()}
+ builder:function () {(window.page = UizeDotCom.Page.Doc ()).wireUi ()}
});
</script>
Oops, something went wrong.

0 comments on commit aeb0b7d

Please sign in to comment.